|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.ISQLSyntaxProxy
public class ISQLSyntaxProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISQLSyntaxProxy()
|
|
ISQLSyntaxProxy(Object obj)
|
protected |
ISQLSyntaxProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public ISQLSyntaxProxy()
public ISQLSyntaxProxy(Object obj) throws IOException
IOException
protected ISQLSyntaxProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public 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.
qualifyTableName
in interface ISQLSyntax
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.public 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.
qualifyColumnName
in interface ISQLSyntax
tableName
- The tableName (in)columnName
- The columnName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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"
parseTableName
in interface ISQLSyntax
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.public 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"
parseColumnName
in interface ISQLSyntax
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.public String getFunctionName(int sqlFunc) throws IOException, AutomationException
getFunctionName
in interface ISQLSyntax
sqlFunc
- A com.esri.arcgis.geodatabase.esriSQLFunctionName constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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)
getSpecialCharacter
in interface ISQLSyntax
sqlSC
- A com.esri.arcgis.geodatabase.esriSQLSpecialCharacters constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getSupportedPredicates
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getSupportedClauses
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getIdentifierCase() throws IOException, AutomationException
getIdentifierCase
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getDelimitedIdentifierCase() throws IOException, AutomationException
getDelimitedIdentifierCase
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getStringComparisonCase() throws IOException, AutomationException
getStringComparisonCase
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getKeywords() throws IOException, AutomationException
getKeywords
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getInvalidCharacters() throws IOException, AutomationException
getInvalidCharacters
in interface ISQLSyntax
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getInvalidStartingCharacters() throws IOException, AutomationException
getInvalidStartingCharacters
in interface ISQLSyntax
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 |