|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeVersion
public class SeVersion
This class represents an ArcSDE version in the database. Versions represent different configurations of the database. These different configurations may represent user edit sessions, known database states, and organizational workflow states. Versions may be relatively small sets of changes, such as the correction of a few attribute values. Versions may also be very large sets of changes, such as the design of a subdivision plan. A versioned database allows several users to simultaneously edit the contents of the database. Each user edits their own version of the database, without interference from others. Using versions to separate user edit sessions allows an optimistic conflict model where users freely edit data, receiving notification of collisions only when versions are merged.
Nested Class Summary | |
---|---|
static class |
SeVersion.SeVersionLock
SeVersion inner class that retrieves the version locks information from the server. |
Field Summary | |
---|---|
static java.lang.String |
SE_DEFAULT_VERSION_NAME
The name of the default ArcSDE version. |
static java.lang.String |
SE_QUALIFIED_DEFAULT_VERSION_NAME
The qualified name of the default ArcSDE version. |
static int |
SE_VERSION_ACCESS_PRIVATE
|
static int |
SE_VERSION_ACCESS_PROTECTED
|
static int |
SE_VERSION_ACCESS_PUBLIC
|
static int |
SE_VERSION_EXCLUSIVE_AUTOLOCK
|
static int |
SE_VERSION_EXCLUSIVE_LOCK
|
static int |
SE_VERSION_PROTECTED_MASK
|
static int |
SE_VERSION_PUBLIC_MASK
|
static int |
SE_VERSION_SHARED_LOCK
|
Constructor Summary | |
---|---|
SeVersion(SeConnection conn)
SeVersion constructor, used when creating a new version. |
|
SeVersion(SeConnection conn,
SeObjectId versionId)
SeVersion constructor, retrieves information for an existing version using the specified Version ID. |
|
SeVersion(SeConnection conn,
java.lang.String versionName)
SeVersion constructor, retrieves information for for an existing version, specified by the version name parameter. |
Method Summary | |
---|---|
void |
alter()
Alters a version`s characteristics. |
void |
changeState(SeObjectId newStateId)
Changes the underlying state of a version. |
java.lang.Object |
clone()
Clones the SeVersion object. |
void |
create(boolean uniqueName,
SeVersion version)
Creates a child version from an existing version. |
void |
createInTransaction(boolean uniqueName,
SeVersion version)
creates a new version entry within the context of a user transaction, as the child of the existing version. |
void |
delete()
Deletes a version. |
void |
freeLock()
Releases the lock on a version. |
int |
getAccess()
Returns the access type for a version. |
java.util.Date |
getCreationTime()
Returns the creation time for a version. |
java.lang.String |
getDescription()
Returns the version description. |
SeObjectId |
getId()
Returns the ID of a version. |
void |
getInfo()
Returns version information. |
SeVersion.SeVersionLock[] |
getLocks()
Returns a list of current locks. |
java.lang.String |
getName()
Returns the version name. |
java.lang.String |
getOwner()
Returns the owner of the version. |
SeObjectId |
getParentId()
Returns the parent ID of a version. |
java.lang.String |
getParentName()
Returns the parent version name. |
SeObjectId |
getStateId()
Returns the state ID of a version. |
void |
lock(int lockMode)
Locks a version. |
void |
rename(java.lang.String newVersionName)
Renames a version. |
void |
setAccess(int access)
Returns the access type for a version. |
void |
setDescription(java.lang.String desc)
Sets the version description. |
void |
setId(SeObjectId id)
Sets the ID of a version. |
void |
setName(java.lang.String name)
Sets the version name. |
void |
setOwner(java.lang.String name)
Sets the version owner name. |
void |
setParentId(SeObjectId stateId)
Sets the parent ID of a version. |
void |
setParentName(java.lang.String name)
Sets the parent version name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SE_VERSION_PUBLIC_MASK
public static final int SE_VERSION_PROTECTED_MASK
public static final int SE_VERSION_ACCESS_PUBLIC
public static final int SE_VERSION_ACCESS_PROTECTED
public static final int SE_VERSION_ACCESS_PRIVATE
public static final java.lang.String SE_DEFAULT_VERSION_NAME
SeVersion(SeConnection conn, String versionName)
constructor.
public static final java.lang.String SE_QUALIFIED_DEFAULT_VERSION_NAME
SeVersion(SeConnection conn, String versionName)
constructor.
public static final int SE_VERSION_SHARED_LOCK
public static final int SE_VERSION_EXCLUSIVE_LOCK
public static final int SE_VERSION_EXCLUSIVE_AUTOLOCK
Constructor Detail |
---|
public SeVersion(SeConnection conn) throws SeException
conn
- SeConnection object handle.
SeException
public SeVersion(SeConnection conn, SeObjectId versionId) throws SeException
conn
- SeConnection object handle.versionId
- the version ID.
SeException
public SeVersion(SeConnection conn, java.lang.String versionName) throws SeException
conn
- SeConnection object handle.versionName
- the version name.
SeException
Method Detail |
---|
public void alter() throws SeException
SeException
public void changeState(SeObjectId newStateId) throws SeException
SeException
public void create(boolean uniqueName, SeVersion version) throws SeException
uniqueName
- If the supplied version name is not unique, add a
suffix onto it to make it unique. If this flag is
FALSE and a version of this name already exists,
then the create will fail.version
- the existing version object.
SeException
public void createInTransaction(boolean uniqueName, SeVersion version) throws SeException
uniqueName
- If the supplied version name is not unique, add a
suffix onto it to make it unique. If this flag is
FALSE and a version of this name already exists,
then the create will fail.version
- the existing version object.
SeException
public void delete() throws SeException
SeException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
SeVersion
object.
clone
in class java.lang.Object
SeVersion
as type Object
.
java.lang.CloneNotSupportedException
- if an error occurspublic void getInfo() throws SeException
SeException
public void lock(int lockMode) throws SeException
lockMode
- the lock type.
SeException
public void freeLock() throws SeException
SeException
public SeVersion.SeVersionLock[] getLocks() throws SeException
SeException
public void rename(java.lang.String newVersionName) throws SeException
newVersionName
- the new name of version.
SeException
public int getAccess()
public void setAccess(int access) throws SeException
access
- the access type.
SeException
public java.util.Date getCreationTime()
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
public SeObjectId getId()
public void setId(SeObjectId id)
public java.lang.String getOwner()
public java.lang.String getName()
public void setOwner(java.lang.String name) throws SeException
name
- the name of the owner.
SeException
public void setName(java.lang.String name) throws SeException
name
- the version name.
SeException
public SeObjectId getParentId()
public java.lang.String getParentName()
public void setParentName(java.lang.String name)
name
- the parent version name.public SeObjectId getStateId()
public void setParentId(SeObjectId stateId) throws SeException
stateId
- the state ID of a version.
SeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |