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

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

public class CreateRelationshipClass
extends AbstractGPTool

This tool creates a relationship class to store an association between fields or features in the origin table and the destination table. The Create Relationship Class 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
CreateRelationshipClass()
          Creates the Create Relationship Class tool with defaults.
CreateRelationshipClass(java.lang.Object originTable, java.lang.Object destinationTable, java.lang.Object outRelationshipClass, java.lang.String relationshipType, java.lang.String forwardLabel, java.lang.String backwardLabel, java.lang.String messageDirection, java.lang.String cardinality, java.lang.String attributed, java.lang.String originPrimaryKey, java.lang.String originForeignKey)
          Creates the Create Relationship Class tool with the required parameters.
 
Method Summary
 java.lang.String getAttributed()
          Returns the Relationship class is attributed parameter of this tool .
 java.lang.String getBackwardLabel()
          Returns the Backward Path label parameter of this tool .
 java.lang.String getCardinality()
          Returns the Cardinality parameter of this tool .
 java.lang.String getDestinationForeignKey()
          Returns the Destination Foreign Key parameter of this tool .
 java.lang.String getDestinationPrimaryKey()
          Returns the Destination Primary Key parameter of this tool .
 java.lang.Object getDestinationTable()
          Returns the Destination Table parameter of this tool .
 java.lang.String getForwardLabel()
          Returns the Forward Path Label parameter of this tool .
 java.lang.String getMessageDirection()
          Returns the Message Direction parameter of this tool .
 java.lang.String getOriginForeignKey()
          Returns the Origin Foreign Key parameter of this tool .
 java.lang.String getOriginPrimaryKey()
          Returns the Origin Primary Key parameter of this tool .
 java.lang.Object getOriginTable()
          Returns the Origin Table parameter of this tool .
 java.lang.Object getOutRelationshipClass()
          Returns the Output Relationship Class parameter of this tool .
 java.lang.String getRelationshipType()
          Returns the Relationship Type 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 setAttributed(java.lang.String attributed)
          Sets the Relationship class is attributed parameter of this tool .
 void setBackwardLabel(java.lang.String backwardLabel)
          Sets the Backward Path label parameter of this tool .
 void setCardinality(java.lang.String cardinality)
          Sets the Cardinality parameter of this tool .
 void setDestinationForeignKey(java.lang.String destinationForeignKey)
          Sets the Destination Foreign Key parameter of this tool .
 void setDestinationPrimaryKey(java.lang.String destinationPrimaryKey)
          Sets the Destination Primary Key parameter of this tool .
 void setDestinationTable(java.lang.Object destinationTable)
          Sets the Destination Table parameter of this tool .
 void setForwardLabel(java.lang.String forwardLabel)
          Sets the Forward Path Label parameter of this tool .
 void setMessageDirection(java.lang.String messageDirection)
          Sets the Message Direction parameter of this tool .
 void setOriginForeignKey(java.lang.String originForeignKey)
          Sets the Origin Foreign Key parameter of this tool .
 void setOriginPrimaryKey(java.lang.String originPrimaryKey)
          Sets the Origin Primary Key parameter of this tool .
 void setOriginTable(java.lang.Object originTable)
          Sets the Origin Table parameter of this tool .
 void setOutRelationshipClass(java.lang.Object outRelationshipClass)
          Sets the Output Relationship Class parameter of this tool .
 void setRelationshipType(java.lang.String relationshipType)
          Sets the Relationship Type 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

CreateRelationshipClass

public CreateRelationshipClass()
Creates the Create Relationship Class tool with defaults.

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


CreateRelationshipClass

public CreateRelationshipClass(java.lang.Object originTable,
                               java.lang.Object destinationTable,
                               java.lang.Object outRelationshipClass,
                               java.lang.String relationshipType,
                               java.lang.String forwardLabel,
                               java.lang.String backwardLabel,
                               java.lang.String messageDirection,
                               java.lang.String cardinality,
                               java.lang.String attributed,
                               java.lang.String originPrimaryKey,
                               java.lang.String originForeignKey)
Creates the Create Relationship Class 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:
originTable - the table or feature class that is associated to the destination table.
destinationTable - the table that is associated to the origin table.
outRelationshipClass - the relationship class that is created.
relationshipType - the type of relationship to create between the origin and destination tables.
forwardLabel - a name to uniquely identify the relationship when navigating from the origin table to the destination table.
backwardLabel - a name to uniquely identify the relationship when navigating from the destination table to the origin table.
messageDirection - the direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted.
cardinality - determines how many relationships exist between rows or features in the origin and rows or features in the destination table.
attributed - specifies if the relationship will have attributes.
originPrimaryKey - the field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table.
originForeignKey - the field in the relationship class table that links it to the Origin Primary Key field in the origin table.
Method Detail

getOriginTable

public java.lang.Object getOriginTable()
Returns the Origin Table parameter of this tool . This parameter is the table or feature class that is associated to the destination table. This is a required parameter.

Returns:
the Origin Table

setOriginTable

public void setOriginTable(java.lang.Object originTable)
Sets the Origin Table parameter of this tool . This parameter is the table or feature class that is associated to the destination table. This is a required parameter.

Parameters:
originTable - the table or feature class that is associated to the destination table.

getDestinationTable

public java.lang.Object getDestinationTable()
Returns the Destination Table parameter of this tool . This parameter is the table that is associated to the origin table. This is a required parameter.

Returns:
the Destination Table

setDestinationTable

public void setDestinationTable(java.lang.Object destinationTable)
Sets the Destination Table parameter of this tool . This parameter is the table that is associated to the origin table. This is a required parameter.

Parameters:
destinationTable - the table that is associated to the origin table.

getOutRelationshipClass

public java.lang.Object getOutRelationshipClass()
Returns the Output Relationship Class parameter of this tool . This parameter is the relationship class that is created. This is a required parameter.

Returns:
the Output Relationship Class

setOutRelationshipClass

public void setOutRelationshipClass(java.lang.Object outRelationshipClass)
Sets the Output Relationship Class parameter of this tool . This parameter is the relationship class that is created. This is a required parameter.

Parameters:
outRelationshipClass - the relationship class that is created.

getRelationshipType

public java.lang.String getRelationshipType()
Returns the Relationship Type parameter of this tool . This parameter is the type of relationship to create between the origin and destination tables. This is a required parameter.

Returns:
the Relationship Type

setRelationshipType

public void setRelationshipType(java.lang.String relationshipType)
Sets the Relationship Type parameter of this tool . This parameter is the type of relationship to create between the origin and destination tables. This is a required parameter.

Parameters:
relationshipType - the type of relationship to create between the origin and destination tables.

getForwardLabel

public java.lang.String getForwardLabel()
Returns the Forward Path Label parameter of this tool . This parameter is a name to uniquely identify the relationship when navigating from the origin table to the destination table. This is a required parameter.

Returns:
the Forward Path Label

setForwardLabel

public void setForwardLabel(java.lang.String forwardLabel)
Sets the Forward Path Label parameter of this tool . This parameter is a name to uniquely identify the relationship when navigating from the origin table to the destination table. This is a required parameter.

Parameters:
forwardLabel - a name to uniquely identify the relationship when navigating from the origin table to the destination table.

getBackwardLabel

public java.lang.String getBackwardLabel()
Returns the Backward Path label parameter of this tool . This parameter is a name to uniquely identify the relationship when navigating from the destination table to the origin table. This is a required parameter.

Returns:
the Backward Path label

setBackwardLabel

public void setBackwardLabel(java.lang.String backwardLabel)
Sets the Backward Path label parameter of this tool . This parameter is a name to uniquely identify the relationship when navigating from the destination table to the origin table. This is a required parameter.

Parameters:
backwardLabel - a name to uniquely identify the relationship when navigating from the destination table to the origin table.

getMessageDirection

public java.lang.String getMessageDirection()
Returns the Message Direction parameter of this tool . This parameter is the direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted. This is a required parameter.

Returns:
the Message Direction

setMessageDirection

public void setMessageDirection(java.lang.String messageDirection)
Sets the Message Direction parameter of this tool . This parameter is the direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted. This is a required parameter.

Parameters:
messageDirection - the direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted.

getCardinality

public java.lang.String getCardinality()
Returns the Cardinality parameter of this tool . This parameter is determines how many relationships exist between rows or features in the origin and rows or features in the destination table. This is a required parameter.

Returns:
the Cardinality

setCardinality

public void setCardinality(java.lang.String cardinality)
Sets the Cardinality parameter of this tool . This parameter is determines how many relationships exist between rows or features in the origin and rows or features in the destination table. This is a required parameter.

Parameters:
cardinality - determines how many relationships exist between rows or features in the origin and rows or features in the destination table.

getAttributed

public java.lang.String getAttributed()
Returns the Relationship class is attributed parameter of this tool . This parameter is specifies if the relationship will have attributes. This is a required parameter.

Returns:
the Relationship class is attributed

setAttributed

public void setAttributed(java.lang.String attributed)
Sets the Relationship class is attributed parameter of this tool . This parameter is specifies if the relationship will have attributes. This is a required parameter.

Parameters:
attributed - specifies if the relationship will have attributes.

getOriginPrimaryKey

public java.lang.String getOriginPrimaryKey()
Returns the Origin Primary Key parameter of this tool . This parameter is the field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table. This is a required parameter.

Returns:
the Origin Primary Key

setOriginPrimaryKey

public void setOriginPrimaryKey(java.lang.String originPrimaryKey)
Sets the Origin Primary Key parameter of this tool . This parameter is the field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table. This is a required parameter.

Parameters:
originPrimaryKey - the field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table.

getOriginForeignKey

public java.lang.String getOriginForeignKey()
Returns the Origin Foreign Key parameter of this tool . This parameter is the field in the relationship class table that links it to the Origin Primary Key field in the origin table. This is a required parameter.

Returns:
the Origin Foreign Key

setOriginForeignKey

public void setOriginForeignKey(java.lang.String originForeignKey)
Sets the Origin Foreign Key parameter of this tool . This parameter is the field in the relationship class table that links it to the Origin Primary Key field in the origin table. This is a required parameter.

Parameters:
originForeignKey - the field in the relationship class table that links it to the Origin Primary Key field in the origin table.

getDestinationPrimaryKey

public java.lang.String getDestinationPrimaryKey()
Returns the Destination Primary Key parameter of this tool . This parameter is the field in the destination table, typically the OID field, that links it to the Destination Foreign Key field in the relationship class table. This is an optional parameter.

Returns:
the Destination Primary Key

setDestinationPrimaryKey

public void setDestinationPrimaryKey(java.lang.String destinationPrimaryKey)
Sets the Destination Primary Key parameter of this tool . This parameter is the field in the destination table, typically the OID field, that links it to the Destination Foreign Key field in the relationship class table. This is an optional parameter.

Parameters:
destinationPrimaryKey - the field in the destination table, typically the OID field, that links it to the Destination Foreign Key field in the relationship class table.

getDestinationForeignKey

public java.lang.String getDestinationForeignKey()
Returns the Destination Foreign Key parameter of this tool . This parameter is the field in the relationship class table that links it to the Destination Primary Key field in the destination table. This is an optional parameter.

Returns:
the Destination Foreign Key

setDestinationForeignKey

public void setDestinationForeignKey(java.lang.String destinationForeignKey)
Sets the Destination Foreign Key parameter of this tool . This parameter is the field in the relationship class table that links it to the Destination Primary Key field in the destination table. This is an optional parameter.

Parameters:
destinationForeignKey - the field in the relationship class table that links it to the Destination Primary Key field in the destination table.

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