|
|||||||||
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.IQueryDefProxy
public class IQueryDefProxy
Provides access to members that control attribute based queries.
IQueryDef sets the parameters needed to create an attribute query. The name of the table and a string defining the where clause are required. An optional list of columns may be included to specify the columns to be retrieved. If no columns are specified, all columns will be returned.
IQueryDef only can be used with ArcSDE, Personal and File Geodatabase data sources. QueryDef cursor are not supported on historical representations of datasets.
The IQueryDef interface allows the definition of an attribute query based on one or more tables. Multiple table joins may be defined through the use of this interface.
In order to access the geometry of a feature returned by the query the shape field must be included in the SubFields definition.
If multiple feature classes are specified in the IQueryDef.Tables property it is the application developer's responsibility to ensure that only one shape attribute is specified in the IQueryDef.SubFields property.
IQueryFilter
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IQueryDefProxy()
|
|
IQueryDefProxy(Object obj)
|
protected |
IQueryDefProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
ICursor |
evaluate()
Evaluate the query and return a cursor on the result set. |
String |
getSubFields()
The comma delimited list of field names for the query. |
String |
getTables()
The comma delimited list of table names for the query. |
String |
getWhereClause()
The where clause for the query. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setSubFields(String subFields)
The comma delimited list of field names for the query. |
void |
setTables(String tables)
The comma delimited list of table names for the query. |
void |
setWhereClause(String whereClause)
The where clause for the query. |
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 IQueryDefProxy()
public IQueryDefProxy(Object obj) throws IOException
IOException
protected IQueryDefProxy(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 getTables() throws IOException, AutomationException
getTables
in interface IQueryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTables(String tables) throws IOException, AutomationException
setTables
in interface IQueryDef
tables
- The tables (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSubFields() throws IOException, AutomationException
getSubFields
in interface IQueryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSubFields(String subFields) throws IOException, AutomationException
setSubFields
in interface IQueryDef
subFields
- The subFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWhereClause() throws IOException, AutomationException
For more information about where clauses, see IQueryFilter.WhereClause.
getWhereClause
in interface IQueryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWhereClause(String whereClause) throws IOException, AutomationException
For more information about where clauses, see IQueryFilter.WhereClause.
setWhereClause
in interface IQueryDef
whereClause
- The whereClause (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICursor evaluate() throws IOException, AutomationException
The IQueryDef interface is used to set up and define the query and also provides an Evaluate method that is used to execute the query, returning a cursor.
evaluate
in interface IQueryDef
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 |