|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.datamanagementtools.MakeQueryTable
public class MakeQueryTable
This tool applies an SQL query to a database and the results are represented in a layer or table view. The query can be used to join several tables or return a subset of columns or rows from the original data in the database. The Make Query Table tool is contained in the Data Management Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
MakeQueryTable()
Creates the Make Query Table tool with defaults. |
|
MakeQueryTable(Object inTable,
Object outTable,
String inKeyFieldOption)
Creates the Make Query Table tool with the required parameters. |
Method Summary | |
---|---|
Object |
getInField()
Returns the Fields parameter of this tool . |
Object |
getInKeyField()
Returns the Key Fields parameter of this tool . |
String |
getInKeyFieldOption()
Returns the Key Field Options parameter of this tool . |
Object |
getInTable()
Returns the Input Tables parameter of this tool . |
Object |
getOutTable()
Returns the Table Name parameter of this tool . |
String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
String |
getToolboxName()
Returns the name of the tool box containing this tool. |
String |
getToolName()
Returns the name of this tool. |
Object |
getWhereClause()
Returns the Expression parameter of this tool . |
void |
setInField(Object inField)
Sets the Fields parameter of this tool . |
void |
setInKeyField(Object inKeyField)
Sets the Key Fields parameter of this tool . |
void |
setInKeyFieldOption(String inKeyFieldOption)
Sets the Key Field Options parameter of this tool . |
void |
setInTable(Object inTable)
Sets the Input Tables parameter of this tool . |
void |
setOutTable(Object outTable)
Sets the Table Name parameter of this tool . |
void |
setWhereClause(Object whereClause)
Sets the Expression 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 |
---|
public MakeQueryTable()
Initializes the array of tool parameters with the default values specified when the tool was created.
public MakeQueryTable(Object inTable, Object outTable, String inKeyFieldOption)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
inTable
- the name of the table or tables to be used in the query. If several tables are listed, the Expression parameter can be used to define how they are to be joined. the input table can be from an ArcSDE geodatabase, a file geodatabase, a personal geodatabase, or an OLE DB connection.outTable
- the name of the layer or table view that will be created by the tool.inKeyFieldOption
- indicates how an ObjectID field will be generated, if at all, for the query. The default is USE_KEY_FIELDS.Method Detail |
---|
public Object getInTable()
public void setInTable(Object inTable)
inTable
- the name of the table or tables to be used in the query. If several tables are listed, the Expression parameter can be used to define how they are to be joined. the input table can be from an ArcSDE geodatabase, a file geodatabase, a personal geodatabase, or an OLE DB connection.public Object getOutTable()
public void setOutTable(Object outTable)
outTable
- the name of the layer or table view that will be created by the tool.public String getInKeyFieldOption()
public void setInKeyFieldOption(String inKeyFieldOption)
inKeyFieldOption
- indicates how an ObjectID field will be generated, if at all, for the query. The default is USE_KEY_FIELDS.public Object getInKeyField()
public void setInKeyField(Object inKeyField)
inKeyField
- specifies a field or combination of fields that can be used to uniquely identify a row in the query. This parameter is used only when the USE_KEY_FIELDS option is set. the Add Field button, which is used only in ModelBuilder, allows you to add expected field(s) so you can complete the dialog and continue to build your model.public Object getInField()
public void setInField(Object inField)
inField
- the fields to include in the layer or table view. If an alias is set for a field, this is the name that appears. If no fields are specified, all fields from all tables are included.public Object getWhereClause()
public void setWhereClause(Object whereClause)
whereClause
- an SQL expression used to select a subset of records. The syntax for the expression differs slightly depending on the data source. For example, if you're querying file or ArcSDE geodatabases, shapefiles, coverages, dBase, or INFO tables, enclose field names in double quotes: "MY_FIELD" if you're querying personal geodatabases, enclose fields in square brackets: [MY_FIELD] in the Python Window enclose the {where_clause} in parentheses to ensure the spaces (which are delimiters between parameters) are correctly interpreted. for more information on SQL syntax and how it differs between data sources, see SQL Reference.public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |