com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class SynchronizeChanges

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.datamanagementtools.SynchronizeChanges
All Implemented Interfaces:
GPTool

public class SynchronizeChanges
extends AbstractGPTool

Synchronizes updates between two replica geodatabases in a direction specified by the user. The Synchronize Changes tool is contained in the Data Management Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
SynchronizeChanges()
          Creates the Synchronize Changes tool with defaults.
SynchronizeChanges(java.lang.Object geodatabase1, java.lang.String inReplica, java.lang.Object geodatabase2, java.lang.String inDirection, java.lang.String conflictPolicy, java.lang.String conflictDefinition, java.lang.String reconcile)
          Creates the Synchronize Changes tool with the required parameters.
 
Method Summary
 java.lang.String getConflictDefinition()
          Returns the Conflict Definition parameter of this tool .
 java.lang.String getConflictPolicy()
          Returns the Conflict Resolution Policy parameter of this tool .
 java.lang.Object getGeodatabase1()
          Returns the Geodatabase 1 parameter of this tool .
 java.lang.Object getGeodatabase2()
          Returns the Geodatabase 2 parameter of this tool .
 java.lang.String getInDirection()
          Returns the Direction parameter of this tool .
 java.lang.String getInReplica()
          Returns the Replica parameter of this tool .
 java.lang.Object getOutGeodatabase1()
          Returns the Output Geodatabase 1 parameter of this tool (Read only).
 java.lang.Object getOutGeodatabase2()
          Returns the Output Geodatabase 2 parameter of this tool (Read only).
 java.lang.String getReconcile()
          Returns the Reconcile with the Parent Version (Single Generation only) parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setConflictDefinition(java.lang.String conflictDefinition)
          Sets the Conflict Definition parameter of this tool .
 void setConflictPolicy(java.lang.String conflictPolicy)
          Sets the Conflict Resolution Policy parameter of this tool .
 void setGeodatabase1(java.lang.Object geodatabase1)
          Sets the Geodatabase 1 parameter of this tool .
 void setGeodatabase2(java.lang.Object geodatabase2)
          Sets the Geodatabase 2 parameter of this tool .
 void setInDirection(java.lang.String inDirection)
          Sets the Direction parameter of this tool .
 void setInReplica(java.lang.String inReplica)
          Sets the Replica parameter of this tool .
 void setReconcile(java.lang.String reconcile)
          Sets the Reconcile with the Parent Version (Single Generation only) parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SynchronizeChanges

public SynchronizeChanges()
Creates the Synchronize Changes tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


SynchronizeChanges

public SynchronizeChanges(java.lang.Object geodatabase1,
                          java.lang.String inReplica,
                          java.lang.Object geodatabase2,
                          java.lang.String inDirection,
                          java.lang.String conflictPolicy,
                          java.lang.String conflictDefinition,
                          java.lang.String reconcile)
Creates the Synchronize Changes tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
geodatabase1 - the geodatabase hosting the replica to synchronize. The geodatabase may be local or remote.
inReplica - a valid replica with a parent contained within one input geodatabase and a child in the other input geodatabase.
geodatabase2 - the geodatabase hosting the relative replica. The geodatabase may be local or remote.
inDirection - the direction in which you want changes to be sent: from geodatabase 1 to geodatabase 2, from geodatabase 2 to geodatabase 1, or to send changes in both directions. For check-out/check-in replicas or one-way replicas there is only one appropriate direction. If the replica is two-way then any of the three choices are available.
conflictPolicy - specifies how conflicts are resolved when they are encountered.
conflictDefinition - specifies how you would like to define conflicts:
reconcile - indicates whether to automatically reconcile once data changes are sent to the parent replica if there are no conflicts present. This option is only available for check-out/check-in replicas.
Method Detail

getGeodatabase1

public java.lang.Object getGeodatabase1()
Returns the Geodatabase 1 parameter of this tool . This parameter is the geodatabase hosting the replica to synchronize. The geodatabase may be local or remote. This is a required parameter.

Returns:
the Geodatabase 1

setGeodatabase1

public void setGeodatabase1(java.lang.Object geodatabase1)
Sets the Geodatabase 1 parameter of this tool . This parameter is the geodatabase hosting the replica to synchronize. The geodatabase may be local or remote. This is a required parameter.

Parameters:
geodatabase1 - the geodatabase hosting the replica to synchronize. The geodatabase may be local or remote.

getInReplica

public java.lang.String getInReplica()
Returns the Replica parameter of this tool . This parameter is a valid replica with a parent contained within one input geodatabase and a child in the other input geodatabase. This is a required parameter.

Returns:
the Replica

setInReplica

public void setInReplica(java.lang.String inReplica)
Sets the Replica parameter of this tool . This parameter is a valid replica with a parent contained within one input geodatabase and a child in the other input geodatabase. This is a required parameter.

Parameters:
inReplica - a valid replica with a parent contained within one input geodatabase and a child in the other input geodatabase.

getGeodatabase2

public java.lang.Object getGeodatabase2()
Returns the Geodatabase 2 parameter of this tool . This parameter is the geodatabase hosting the relative replica. The geodatabase may be local or remote. This is a required parameter.

Returns:
the Geodatabase 2

setGeodatabase2

public void setGeodatabase2(java.lang.Object geodatabase2)
Sets the Geodatabase 2 parameter of this tool . This parameter is the geodatabase hosting the relative replica. The geodatabase may be local or remote. This is a required parameter.

Parameters:
geodatabase2 - the geodatabase hosting the relative replica. The geodatabase may be local or remote.

getInDirection

public java.lang.String getInDirection()
Returns the Direction parameter of this tool . This parameter is the direction in which you want changes to be sent: from geodatabase 1 to geodatabase 2, from geodatabase 2 to geodatabase 1, or to send changes in both directions. For check-out/check-in replicas or one-way replicas there is only one appropriate direction. If the replica is two-way then any of the three choices are available. This is a required parameter.

Returns:
the Direction

setInDirection

public void setInDirection(java.lang.String inDirection)
Sets the Direction parameter of this tool . This parameter is the direction in which you want changes to be sent: from geodatabase 1 to geodatabase 2, from geodatabase 2 to geodatabase 1, or to send changes in both directions. For check-out/check-in replicas or one-way replicas there is only one appropriate direction. If the replica is two-way then any of the three choices are available. This is a required parameter.

Parameters:
inDirection - the direction in which you want changes to be sent: from geodatabase 1 to geodatabase 2, from geodatabase 2 to geodatabase 1, or to send changes in both directions. For check-out/check-in replicas or one-way replicas there is only one appropriate direction. If the replica is two-way then any of the three choices are available.

getConflictPolicy

public java.lang.String getConflictPolicy()
Returns the Conflict Resolution Policy parameter of this tool . This parameter is specifies how conflicts are resolved when they are encountered. This is a required parameter.

Returns:
the Conflict Resolution Policy

setConflictPolicy

public void setConflictPolicy(java.lang.String conflictPolicy)
Sets the Conflict Resolution Policy parameter of this tool . This parameter is specifies how conflicts are resolved when they are encountered. This is a required parameter.

Parameters:
conflictPolicy - specifies how conflicts are resolved when they are encountered.

getConflictDefinition

public java.lang.String getConflictDefinition()
Returns the Conflict Definition parameter of this tool . This parameter is specifies how you would like to define conflicts: This is a required parameter.

Returns:
the Conflict Definition

setConflictDefinition

public void setConflictDefinition(java.lang.String conflictDefinition)
Sets the Conflict Definition parameter of this tool . This parameter is specifies how you would like to define conflicts: This is a required parameter.

Parameters:
conflictDefinition - specifies how you would like to define conflicts:

getReconcile

public java.lang.String getReconcile()
Returns the Reconcile with the Parent Version (Single Generation only) parameter of this tool . This parameter is indicates whether to automatically reconcile once data changes are sent to the parent replica if there are no conflicts present. This option is only available for check-out/check-in replicas. This is a required parameter.

Returns:
the Reconcile with the Parent Version (Single Generation only)

setReconcile

public void setReconcile(java.lang.String reconcile)
Sets the Reconcile with the Parent Version (Single Generation only) parameter of this tool . This parameter is indicates whether to automatically reconcile once data changes are sent to the parent replica if there are no conflicts present. This option is only available for check-out/check-in replicas. This is a required parameter.

Parameters:
reconcile - indicates whether to automatically reconcile once data changes are sent to the parent replica if there are no conflicts present. This option is only available for check-out/check-in replicas.

getOutGeodatabase1

public java.lang.Object getOutGeodatabase1()
Returns the Output Geodatabase 1 parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Geodatabase 1

getOutGeodatabase2

public java.lang.Object getOutGeodatabase2()
Returns the Output Geodatabase 2 parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Geodatabase 2

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias