|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that supply information about SQL functionality.
Applications should use the ISQLSyntax interface to help them construct SQL queries and where clauses against ArcSDE Geodatabases that are database system independent.
| Method Summary | |
boolean |
getDelimitedIdentifierCase()
True if DBMS's quoted identifiers are case sensitive. |
java.lang.String |
getFunctionName(int sqlFunc)
DBMS dependent SQL function names. |
boolean |
getIdentifierCase()
True if DBMS's identifiers are case sensitive. |
java.lang.String |
getInvalidCharacters()
The list of invalid characters used in literals (if any). |
java.lang.String |
getInvalidStartingCharacters()
The list of invalid characters used in literals (if any). |
IEnumBSTR |
getKeywords()
The list of DBMS specific reserved keywords. |
java.lang.String |
getSpecialCharacter(int sqlSC)
Special DBMS dependent SQL characters. |
boolean |
getStringComparisonCase()
True if string comparisons are case sensitive. |
int |
getSupportedClauses()
Supported SQL clauses. |
int |
getSupportedPredicates()
Supported SQL predicates. |
void |
parseColumnName(java.lang.String fullName,
java.lang.String[] dbName,
java.lang.String[] ownerName,
java.lang.String[] tableName,
java.lang.String[] columnName)
Given a column name, determine its qualification parts. |
void |
parseTableName(java.lang.String fullName,
java.lang.String[] dbName,
java.lang.String[] ownerName,
java.lang.String[] tableName)
Given a table name, determine its qualification parts. |
java.lang.String |
qualifyColumnName(java.lang.String tableName,
java.lang.String columnName)
Given a table name and column name, returns its fully qualified name. |
java.lang.String |
qualifyTableName(java.lang.String dbName,
java.lang.String ownerName,
java.lang.String tableName)
Given a database, owner, and table name, return its fully qualified name. |
| Method Detail |
public java.lang.String qualifyTableName(java.lang.String dbName,
java.lang.String ownerName,
java.lang.String tableName)
throws java.io.IOException,
AutomationException
Applications should use the QualifyTableName and QualifyColumnName methods to construct fully qualified dataset and column names.
dbName - The dbName (in)ownerName - The ownerName (in)tableName - The tableName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String qualifyColumnName(java.lang.String tableName,
java.lang.String columnName)
throws java.io.IOException,
AutomationException
Applications should use the QualifyTableName and QualifyColumnName methods to construct fully qualified dataset and column names.
tableName - The tableName (in)columnName - The columnName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void parseTableName(java.lang.String fullName,
java.lang.String[] dbName,
java.lang.String[] ownerName,
java.lang.String[] tableName)
throws java.io.IOException,
AutomationException
Applications should use the ParseTableName method to split the fully qualified name of a table into its components (database, owner, table). ParseTableName can also be used to return the components of any fully qualified name of a dataset such as feature classes, feature datasets, geometric networks and topologies.
Applications that wish to be RDBMS independent should not assume that ‘.’ is the delimiter used to separate the components of a fully qualified dataset name. Use the QualifyTableName method to determine the qualified name of a dataset for a given workspace.
The FullName parameter refers to the fully qualified name of the dataset and is returned by the IDataset::Name property for a dataset in a geodatabase and the IDatasetName::Name property for a dataset name object. Both methods return the fully qualified name for the dataset.
Empty strings will be returned for arguments that do not apply to the underlying DBMS. For example, supplying a FullName parameter of "MyTable" to a Personal or File Geodatabase will result in:
dbName = ""
ownerName = ""
TableName = "MyTable"
While supplying a FullName parameter of "gdb.MyTable" to an ArcSDE Geodatabase on Oracle will result in:
dbName = ""
ownerName = "gdb"
TableName = "MyTable"
fullName - The fullName (in)dbName - The dbName (out: use single element array)ownerName - The ownerName (out: use single element array)tableName - The tableName (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void parseColumnName(java.lang.String fullName,
java.lang.String[] dbName,
java.lang.String[] ownerName,
java.lang.String[] tableName,
java.lang.String[] columnName)
throws java.io.IOException,
AutomationException
Applications should use the ParseColumnName method to split the fully qualified name for a column in a table into its components (database, owner, table, column).
Applications that wish to be RDBMS independent should not assume that ‘.’ is the delimiter used to separate the components of a fully qualified dataset name. Use the QualifyColumnName method to determine the qualified name of a column of a table for a given workspace.
The FullName paramter can be returned from the IDataset::Name property for a dataset in a Geodatabase and the IDatasetName::Name property for a dataset name object. Both methods return the fully qualified name for the dataset (the name object for the dataset is itself obtained using the IDataset::FullName property).
Empty strings will be returned for arguments that do not apply to the underlying DBMS. For example, supplying a FullName parameter of "gdb.Greeley_Parcels_1.AREA" to an ArcSDE Geodatabase on Oracle will result in:
dbName = ""
ownerName = "gdb"
TableName = "Greeley_Parcels_1"
columnName = "AREA"
fullName - The fullName (in)dbName - The dbName (out: use single element array)ownerName - The ownerName (out: use single element array)tableName - The tableName (out: use single element array)columnName - The columnName (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getFunctionName(int sqlFunc)
throws java.io.IOException,
AutomationException
sqlFunc - A com.esri.arcgis.geodatabase.esriSQLFunctionName constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getSpecialCharacter(int sqlSC)
throws java.io.IOException,
AutomationException
The GetSpecialCharacter can be used to return the DBMS dependent character that represents an SQL special character, including the following:
• esriSQL_WildcardManyMatch ( % in SQL_92, * in Jet 4.0)
• esriSQL_WildcardSingleMatch ( _ in SQL_92, ? in Jet 4.0)
• esriSQL_DelimitedIdentifierPrefix ( " in SQL_92, [ in Jet 4.0)
• esriSQL_DelimitedIdentifierSuffix (" in SQL_92, ] in Jet 4.0)
sqlSC - A com.esri.arcgis.geodatabase.esriSQLSpecialCharacters constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSupportedPredicates()
throws java.io.IOException,
AutomationException
GetSupportedPredicates returns a Long value that indicates which of the esriSQLPredicates are supported.
A value of -1 for either Personal or ArcSDE geodatabases, indicates that all predicates are supported for the Workspace object used as the query interface for ISQLSyntax . A value of 0 indicates that no predicates are supported for the Workspace .
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSupportedClauses()
throws java.io.IOException,
AutomationException
GetSupportedClauses returns a Long value that indicates which of the esriSQLClauses are supported.
A value of -1 for either Personal or ArcSDE geodatabases, indicates that all clauses are supported for the Workspace object used as the query interface for ISQLSyntax . A value of 0 indicates that no clauses are supported for the Workspace .
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean getIdentifierCase()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean getDelimitedIdentifierCase()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean getStringComparisonCase()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getKeywords()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getInvalidCharacters()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getInvalidStartingCharacters()
throws java.io.IOException,
AutomationException
java.io.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 | |||||||||