|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.SchemaChanges
public class SchemaChanges
ESRI Schema Changes object.
Constructor Summary | |
---|---|
SchemaChanges()
Constructs a SchemaChanges using ArcGIS Engine. |
|
SchemaChanges(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SchemaChanges theSchemaChanges = (SchemaChanges) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IEnumSchemaChange |
getChanges()
An enumeration of the replica schema changes. |
static String |
getClsid()
getClsid. |
IGPReplica |
getFromReplica()
The replica thatis the source of the schema changes. |
IGPReplica |
getToReplica()
The replica that is the target for the schema changes. |
int |
hashCode()
the hashcode for this object |
void |
init(IReplica replica,
IWorkspaceName targetWorkspaceName)
Initializes the object using the replica and the target replica workspace. |
void |
initFromSchemaDifferencesDocument(String xmlFile,
IWorkspaceName targetWorkspaceName)
Initializes the object using a schema differences document and a target replica workspace. |
void |
initFromSchemaDocument(String xmlFile,
IWorkspaceName targetWorkspaceName)
Initializes the object using a replica schema document and a target 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 SchemaChanges() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SchemaChanges(Object obj) throws IOException
SchemaChanges theSchemaChanges = (SchemaChanges) obj;
obj
to SchemaChanges
.
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 IEnumSchemaChange getChanges() throws IOException, AutomationException
The GetChanges method returns the schema changes from the SchemaChanges object.
This method returns a reference to an object that implements IEnumSchemaChange. See the IEnumSchemaChange interface for more information.
getChanges
in interface ISchemaChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPReplica getFromReplica() throws IOException, AutomationException
This method returns the replica that is the source of the schema changes. This replica is returned as a reference to an object that implements IGPReplica. See the GPReplica coclass for more information.
getFromReplica
in interface ISchemaChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPReplica getToReplica() throws IOException, AutomationException
This method returns the replica that is the target for the schema changes. This replica is returned as a reference to an object that implements IGPReplica. See the GPReplica coclass for more information.
getToReplica
in interface ISchemaChanges
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(IReplica replica, IWorkspaceName targetWorkspaceName) throws IOException, AutomationException
The init method initializes the SchemaChanges object in a connected environment. Once the SchemaChanges object has been initialized, you can inspect schema differences between parent and child replicas.
The Replica parameter is the replica which is the source of the comparison. The targetWorkspaceName is the workspace name of the relative replica to which you would like to compare the Replica schema to.
For example, imagine you make a few schema changes to the child replica, such as dropping a table. and/or adding a field. Now you would like to inspect the schema differences between the child and parent replica. Pass in the Child replica for the Replica parameter and the parent replica workspace name as the targetWorkspaceName to initialize the schemaChanges object. You may now use method ISchemaChanges::GetChanges method to inspect the schema differences. See the SchemaChanges::ISchemaChanges interface for more information. You can apply any schema differences to the replica associated with the targetWorkspaceName by using methods on the ISchemaChangeInfo interface.
init
in interface ISchemaChangesInit
replica
- A reference to a com.esri.arcgis.geodatabase.IReplica (in)targetWorkspaceName
- 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 initFromSchemaDocument(String xmlFile, IWorkspaceName targetWorkspaceName) throws IOException, AutomationException
Initializes SchemaChanges object from a replica schema document. Once the SchemaChanges object has been initialized, you can inspect schema differences between replica schema defined in the xmlfile and it's relative replica.
The xmlfile is the replica schema document of one replica. The targetWorkspaceName is the workspace name of the relative replica.
initFromSchemaDocument
in interface ISchemaChangesInit
xmlFile
- The xmlFile (in)targetWorkspaceName
- 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 initFromSchemaDifferencesDocument(String xmlFile, IWorkspaceName targetWorkspaceName) throws IOException, AutomationException
This method initializes a SchemaChanges object from a schema differences document.
The xmlfile is the schema differences document. The targetWorkspaceName is the workspace name of the replica you are making the comparison to.
initFromSchemaDifferencesDocument
in interface ISchemaChangesInit
xmlFile
- The xmlFile (in)targetWorkspaceName
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
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 |