|
|||||||||
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.ISqlWorkspaceProxy
public class ISqlWorkspaceProxy
Query layer workspace interface
This interface is used to create query classes and query cursors, and to retrieve information about SQL workspaces.
A SQL workspace is a relational database that may or may not be a geodatabase. After creating a workspace with the SqlWorkspaceFactory class (and the IWorkspaceFactory interface), this interface is used to retrieve data in a read-only manner as query classes and query cursors. Query classes can be used much like tables or feature classes from other data sources; through ArcMap, they are exposed as "Query Layers".
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISqlWorkspaceProxy()
|
|
ISqlWorkspaceProxy(Object obj)
|
protected |
ISqlWorkspaceProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
checkDatasetName(String name,
IQueryDescription pQueryDescription,
String[] pNewName)
Returns unique name in the workspace. |
void |
getColumns(String tableName,
IStringArray[] ppColumnName,
IStringArray[] ppColumnType,
IVariantArray[] ppIsNullable,
ILongArray[] ppSize,
ILongArray[] ppPrecision,
ILongArray[] ppScale)
Returns column information for a table. |
IQueryDescription |
getQueryDescription(String query)
Get query properties including spatial based on the first record of the query. |
IStringArray |
getTables()
Returns names of all the table. |
ITable |
openQueryClass(String name,
IQueryDescription pQueryDescription)
Returns a table or a feature class based on a query. |
ICursor |
openQueryCursor(String query)
Returns a cursor based on a query. |
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 ISqlWorkspaceProxy()
public ISqlWorkspaceProxy(Object obj) throws IOException
IOException
protected ISqlWorkspaceProxy(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 IQueryDescription getQueryDescription(String query) throws IOException, AutomationException
getQueryDescription
in interface ISqlWorkspace
query
- The query (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable openQueryClass(String name, IQueryDescription pQueryDescription) throws IOException, AutomationException
If ID mapping was defined in the query description passed into this method, the returned query class will include a virtual column containing unique IDs. Aside from cases where conflicts will occur, this column is named "ESRI_OID".
openQueryClass
in interface ISqlWorkspace
name
- The name (in)pQueryDescription
- A reference to a com.esri.arcgis.geodatabase.IQueryDescription (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICursor openQueryCursor(String query) throws IOException, AutomationException
A query cursor generally behaves like a non-recycling search cursor that returns read-only rows.
openQueryCursor
in interface ISqlWorkspace
query
- The query (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getTables() throws IOException, AutomationException
getTables
in interface ISqlWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getColumns(String tableName, IStringArray[] ppColumnName, IStringArray[] ppColumnType, IVariantArray[] ppIsNullable, ILongArray[] ppSize, ILongArray[] ppPrecision, ILongArray[] ppScale) throws IOException, AutomationException
getColumns
in interface ISqlWorkspace
tableName
- The tableName (in)ppColumnName
- A reference to a com.esri.arcgis.system.IStringArray (out: use single element array)ppColumnType
- A reference to a com.esri.arcgis.system.IStringArray (out: use single element array)ppIsNullable
- A reference to a com.esri.arcgis.system.IVariantArray (out: use single element array)ppSize
- A reference to a com.esri.arcgis.system.ILongArray (out: use single element array)ppPrecision
- A reference to a com.esri.arcgis.system.ILongArray (out: use single element array)ppScale
- A reference to a com.esri.arcgis.system.ILongArray (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void checkDatasetName(String name, IQueryDescription pQueryDescription, String[] pNewName) throws IOException, AutomationException
checkDatasetName
in interface ISqlWorkspace
name
- The name (in)pQueryDescription
- A reference to a com.esri.arcgis.geodatabase.IQueryDescription (in)pNewName
- The pNewName (out: use single element array)
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 |