|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.ArchivingDataChanges
public class ArchivingDataChanges
Constructor Summary | |
---|---|
ArchivingDataChanges()
Constructs a ArchivingDataChanges using ArcGIS Engine. |
|
ArchivingDataChanges(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ArchivingDataChanges theArchivingDataChanges = (ArchivingDataChanges) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IDifferenceCursor |
extract(String tableName,
int changeType)
Lists the edits in each feature class or table. |
int |
getChangesModelType()
Geodabase model type, simple or full. |
static String |
getClsid()
getClsid. |
void |
getGenerationNumbers(int[] sourceGenBegin,
int[] sourceGenEnd,
int[] targetGen)
Source and target generation numbers for replica. |
IEnumModifiedClassInfo |
getModifiedClassesInfo()
Returns an enumeration listing of the feature classes and tables with edits. |
int |
getParentReplicaID()
ID for the replica in the parent geodatabase. |
IWorkspaceName |
getParentWorkspaceName()
Workspace of the master geodatabase. |
String |
getReplicaGuid()
GUID identifying the child/parent replica pair. |
int |
getReplicaState()
The state of the replica that is the source of the data changes. |
IWorkspace |
getWorkspace()
The workspace holding the replica from which the changes are being reported. |
int |
hashCode()
the hashcode for this object |
void |
init(IReplica replica,
IWorkspaceName checkoutWorkspace)
Initializes the class by using the replica and the replica workspace. |
void |
init2(IReplica replica,
IWorkspaceName checkoutWorkspace,
int genOption)
Initializes the class by using the replica, generation option and the replica workspace. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ArchivingDataChanges() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ArchivingDataChanges(Object obj) throws IOException
ArchivingDataChanges theArchivingDataChanges = (ArchivingDataChanges) obj;
obj
to ArchivingDataChanges
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void getGenerationNumbers(int[] sourceGenBegin, int[] sourceGenEnd, int[] targetGen) throws IOException, AutomationException
getGenerationNumbers
in interface IDataChanges3
sourceGenBegin
- The sourceGenBegin (out: use single element array)sourceGenEnd
- The sourceGenEnd (out: use single element array)targetGen
- The targetGen (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getReplicaState() throws IOException, AutomationException
Returns the replica state which is the source of the data changes. The replica can be in a sending data state, sending acknowledgement state, or a waiting for data state. See the esriReplicaState enumeration for more information.
getReplicaState
in interface IDataChanges3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getChangesModelType() throws IOException, AutomationException
Returns the model type of delta file or a replica.
A full model type delta file indicates that all reactive geodatabase behavior was executed at edit time.
A simple model type delta file assumes that the edits were not made by a reactive geodatabase editor.
See the DataChangesExporter coclass for more information on delta files. A check-out is always a full model type.
getChangesModelType
in interface IDataChanges2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumModifiedClassInfo getModifiedClassesInfo() throws IOException, AutomationException
The GetModifiedClassesInfo method returns an enumeration of the datasets that have been edited. For replicas (check-out replicas, two way and one way replicas), datasets that have been replicated but not edited are not included.
getModifiedClassesInfo
in interface IDataChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDifferenceCursor extract(String tableName, int changeType) throws IOException, AutomationException
The Extract method returns a difference cursor of the rows inserted, updated or deleted. The tablename can be any class that implements ITableName such as a feature class name, table name or attributed relationship class name. The changeType enumeration is used to specify the type of changes to return.
If using this interface with a DeltaDataChanges coclass, initializing the coclass with random access may be significant. See DeltaDataChanges::IDeltaDataChangesInit2 for more information.
extract
in interface IDataChanges
tableName
- The tableName (in)changeType
- A com.esri.arcgis.geodatabasedistributed.esriDataChangeType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName getParentWorkspaceName() throws IOException, AutomationException
The ParentWorkspaceName property returns the workspace name of the parent geodatabase. This property is only valid for CheckoutDataChanges coclasses, DeltaDataChanges coclasses, and ReplicationDataChanges initialized using delta databases (mdb file) or delta file geodatabases (gdb file). A delta XML file does not store this information.
getParentWorkspaceName
in interface IDataChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getParentReplicaID() throws IOException, AutomationException
This property returns the parent replica ID.
The ParentReplicaID and ReplicaGUID properties identify the replica on the parent geodatabase. These properties are only valid for the CheckoutDataChanges coclass, DeltaDataChanges coclass, and the ReplicationDataChanges coclass when initialized for a replica. Both properties can be used to identify the replica, however, ReplicaGUID is unique across all databases.
getParentReplicaID
in interface IDataChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getReplicaGuid() throws IOException, AutomationException
This property returns the replica's GUID.
The ParentReplicaID and ReplicaGUID properties identify the replica on the parent geodatabase. These properties are only valid for the CheckoutDataChanges coclass, DeltaDataChanges coclass, and the ReplicationDataChanges coclass when initialized for a replica. Both properties can be used to identify the replica, however, ReplicaGUID is unique across all databases.
getReplicaGuid
in interface IDataChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(IReplica replica, IWorkspaceName checkoutWorkspace) throws IOException, AutomationException
The init method takes a checkoutWorkspace and a Replica. See IWorkspaceReplicas to see how to get a replica object.
This method is used to initialize replication data changes for check-out replicas. To initialize replication data changes for two way or one way replicas use the IReplicaDataChangesInit2::Init2 method.
init
in interface IReplicaDataChangesInit
replica
- A reference to a com.esri.arcgis.geodatabase.IReplica (in)checkoutWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init2(IReplica replica, IWorkspaceName checkoutWorkspace, int genOption) throws IOException, AutomationException
This method is used to initialize replication data changes for two way or one way replicas. To initialize replication data changes for check-outs use the IReplicaDataChangesInit::Init method.
The init2 method takes a replica geodatabase, a Replica, and a GenOption. The Replica defines the replica from which to export the data changes. See IWorkspaceReplicas to see how to get a replica object. See the esriExportGenerationsOption enumeration for more information.
The GenOption parameter uses the esriExportGenerationsOption enumeration to specify what data changes to export. You may choose to export only unacknowledged data change, new data changes, all data changes, or no data changes. See the esriExportGenerationsOptions enumeration for more information.
init2
in interface IReplicaDataChangesInit2
replica
- A reference to a com.esri.arcgis.geodatabase.IReplica (in)checkoutWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)genOption
- A com.esri.arcgis.geodatabasedistributed.esriExportGenerationsOption constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getWorkspace() throws IOException, AutomationException
Returns a workspace object which references the replica geodatabase that is the source of the changes.
getWorkspace
in interface IReplicaDataChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |