|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISQLSyntax
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 using database-specific clauses, predicates and special characters.
Method Summary | |
---|---|
boolean |
getDelimitedIdentifierCase()
True if DBMS's quoted identifiers are case sensitive. |
String |
getFunctionName(int sqlFunc)
DBMS dependent SQL function names. |
boolean |
getIdentifierCase()
True if DBMS's identifiers are case sensitive. |
String |
getInvalidCharacters()
The list of invalid characters used in literals (if any). |
String |
getInvalidStartingCharacters()
The list of invalid characters used in literals (if any). |
IEnumBSTR |
getKeywords()
The list of DBMS specific reserved keywords. |
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(String fullName,
String[] dbName,
String[] ownerName,
String[] tableName,
String[] columnName)
Given a column name, determine its qualification parts. |
void |
parseTableName(String fullName,
String[] dbName,
String[] ownerName,
String[] tableName)
Given a table name, determine its qualification parts. |
String |
qualifyColumnName(String tableName,
String columnName)
Given a table name and column name, returns its fully qualified name. |
String |
qualifyTableName(String dbName,
String ownerName,
String tableName)
Given a database, owner, and table name, return its fully qualified name. |
Method Detail |
---|
String qualifyTableName(String dbName, String ownerName, String tableName) throws 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String qualifyColumnName(String tableName, String columnName) throws 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void parseTableName(String fullName, String[] dbName, String[] ownerName, String[] tableName) throws 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void parseColumnName(String fullName, String[] dbName, String[] ownerName, String[] tableName, String[] columnName) throws 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFunctionName(int sqlFunc) throws IOException, AutomationException
sqlFunc
- A com.esri.arcgis.geodatabase.esriSQLFunctionName constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getSpecialCharacter(int sqlSC) throws 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSupportedPredicates() throws IOException, AutomationException
GetSupportedPredicates returns a Long value that indicates which of the esriSQLPredicates are supported.
A value of -1 indicates that all predicates are supported by the workspace, while a value of 0 indicates that no predicates are supported by the workspace. Bitwise AND operations can be used with the esriSQLPredicates enumeration's values to determine support for individual predicates.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSupportedClauses() throws IOException, AutomationException
GetSupportedClauses returns a Long value that indicates which of the esriSQLClauses are supported.
A value of -1 indicates that all clauses are supported by the workspace, while a value of 0 indicates that no clauses are supported by the workspace. Bitwise AND operations can be used with the esriSQLClauses enumeration's values to determine support for individual clauses.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean getIdentifierCase() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean getDelimitedIdentifierCase() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean getStringComparisonCase() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR getKeywords() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getInvalidCharacters() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getInvalidStartingCharacters() throws IOException, AutomationException
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 |