|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeState
public class SeState
Field Summary | |
---|---|
static int |
SE_BASE_STATE_ID
|
static int |
SE_DEFAULT_STATE_ID
|
static int |
SE_NULL_STATE_ID
|
static int |
SE_STATE_DIFF_DELETE
|
static int |
SE_STATE_DIFF_INSERT
Returns all features that were inserted into the source state and that never existed in the differences state. |
static int |
SE_STATE_DIFF_INSERT_RESTORE
|
static int |
SE_STATE_DIFF_NOCHANGE_DELETE
Returns all features that haven't changed in the source state, but have been deleted in the differences state. |
static int |
SE_STATE_DIFF_NOCHANGE_UPDATE
Returns all features that haven't changed in the source state, but have been updated in the differences state. |
static int |
SE_STATE_DIFF_NOCHECK
Returns all features in the source state. |
static int |
SE_STATE_DIFF_RESTORE
|
static int |
SE_STATE_DIFF_UPDATE
|
static int |
SE_STATE_DIFF_UPDATE_DELETE
Returns all features that have been updated in the source state but deleted in the difference states. |
static int |
SE_STATE_DIFF_UPDATE_NOCHANGE
Returns all features that have been updated in the source state, but unchanged in the differences state. |
static int |
SE_STATE_DIFF_UPDATE_UPDATE
Returns all features that have been updated in both the source and difference states. |
static int |
SE_STATE_FOR_PREDEFINED
|
static int |
SE_VERSION_ACCESS_PRIVATE
|
static int |
SE_VERSION_ACCESS_PROTECTED
|
static int |
SE_VERSION_ACCESS_PUBLIC
|
Constructor Summary | |
---|---|
SeState(SeConnection conn)
SeState constructor with an SeConnection object. |
|
SeState(SeConnection conn,
SeObjectId stateId)
SeState constructor with an SeConnection and state Id that retrives the state information for specified ID. |
|
SeState(SeConnection conn,
SeObjectId stateId,
boolean getLineage)
SeState constructor with an SeConnection and state Id that retrives the state information for specified ID. |
Method Summary | |
---|---|
int |
archiveTables(SeObjectId lowStateId,
SeObjectId highStateId,
int archiveTIme)
Archives rows on the archiving tables modified between low and high states. |
java.lang.Object |
clone()
Clones the SeState object. |
void |
close()
Closes the state. |
void |
compressTree()
Compresses an instance's state tree by removing all states that aren't referenced by a version. |
void |
create(SeObjectId parentId)
Creates a child state from an existing state. |
void |
delete()
Deletes a state. |
void |
deleteRange(SeObjectId lowStateId,
SeObjectId highStateId)
Deletes a connected range of states. |
void |
freeLock()
Releases the lock on a state. |
java.util.Date |
getClosingTime()
Returns the closing date and time of a state. |
java.util.Date |
getCreationTime()
Returns the creation date and time of a state. |
SeObjectId |
getId()
Returns the state ID. |
SeObjectId[] |
getLineage()
Returns the lineage of a state as an array consisting of an ordered list of state ids, from the base state to the state's immediate parent. |
java.lang.String |
getOwner()
Returns the state's owner. |
SeObjectId |
getParentId()
Returns the state ID of the parent. |
boolean |
isOpen()
Returns TRUE if state is open. |
void |
lock()
Locks a state. |
void |
merge(SeObjectId parentStateId,
SeObjectId changesStateId)
Merges two states to form a new state. |
void |
open()
Opens a state. |
void |
saveToBase(SeObjectId highStateId,
boolean commitEachTable)
Save changes to base state. |
void |
setId(SeObjectId stateId)
Set's the state ID. |
void |
trimTree(SeObjectId lowStateId,
SeObjectId highStateId)
Trims the instance's state tree between two specified states. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SE_BASE_STATE_ID
public static final int SE_NULL_STATE_ID
public static final int SE_DEFAULT_STATE_ID
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 int SE_STATE_DIFF_NOCHECK
public static final int SE_STATE_DIFF_NOCHANGE_UPDATE
public static final int SE_STATE_DIFF_NOCHANGE_DELETE
public static final int SE_STATE_DIFF_UPDATE_NOCHANGE
public static final int SE_STATE_DIFF_UPDATE_UPDATE
public static final int SE_STATE_DIFF_UPDATE_DELETE
public static final int SE_STATE_DIFF_INSERT
public static final int SE_STATE_DIFF_RESTORE
public static final int SE_STATE_DIFF_INSERT_RESTORE
public static final int SE_STATE_DIFF_UPDATE
public static final int SE_STATE_DIFF_DELETE
public static final int SE_STATE_FOR_PREDEFINED
Constructor Detail |
---|
public SeState(SeConnection conn) throws SeException
conn
- SeConnection object handle.
SeException
public SeState(SeConnection conn, SeObjectId stateId) throws SeException
conn
- SeConnection object handle.stateId
- the state ID.
SeException
SeException
public SeState(SeConnection conn, SeObjectId stateId, boolean getLineage) throws SeException
conn
- SeConnection object handle.stateId
- the state ID.getLineage
- if true, fetch the state's lineage information,
if false, leave it off.
SeException
SeException
Method Detail |
---|
public void close() throws SeException
SeException
public void saveToBase(SeObjectId highStateId, boolean commitEachTable) throws SeException
highStateId
- The state to save to.commitEachTable
- Commit after each table is saved?
SeException
public void compressTree() throws SeException
Currently, only the DBA can perform this operation.
The ArcSDE compress method must be invoked in a session that does not perform edits. This is because when a session (ArcSDE Connection) is opened to edit a state(s), it places MARK locks on the state(s) which remain in place until the session (connection) is closed. If the compress function is invoked on the same session that edited states, the compress operation will not compress the states with locks on them. When compressing an ArcSDE database using the APIs it is always best to create a new session specifically for the purpose of compress.
SeException
public void create(SeObjectId parentId) throws SeException
parentId
- the parent state ID.
SeException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
SeState
object.
clone
in class java.lang.Object
SeState
as type Object
.
java.lang.CloneNotSupportedException
- if an error occurspublic void delete() throws SeException
SeException
public void deleteRange(SeObjectId lowStateId, SeObjectId highStateId) throws SeException
lowStateId
- the ID of the first state to delete.highStateId
- the ID of the last state to delete.
SeException
public void lock() throws SeException
SeException
public void freeLock() throws SeException
SeException
public void merge(SeObjectId parentStateId, SeObjectId changesStateId) throws SeException
parentStateId
- the parent state ID.changesStateId
- the state ID of changed state.
SeException
public void open() throws SeException
SeException
public void trimTree(SeObjectId lowStateId, SeObjectId highStateId) throws SeException
lowStateId
- the ID of the first state to delete.highStateId
- the ID of the last state to delete.
SeException
public java.util.Date getClosingTime()
public java.util.Date getCreationTime()
public SeObjectId getId()
public void setId(SeObjectId stateId) throws SeException
SeException
public SeObjectId getParentId()
public SeObjectId[] getLineage()
public int archiveTables(SeObjectId lowStateId, SeObjectId highStateId, int archiveTIme) throws SeException
lowStateId
- SeState The low state for archiving.highStateId
- SeState The high state for archiving.archiveTIme
- int Time archive occurred.
SeException
public java.lang.String getOwner()
public boolean isOpen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |