|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQueryDef
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
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
String getTables() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTables(String tables) throws IOException, AutomationException
tables
- The tables (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getSubFields() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSubFields(String subFields) throws IOException, AutomationException
subFields
- The subFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWhereClause() throws IOException, AutomationException
For more information about where clauses, see IQueryFilter.WhereClause.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setWhereClause(String whereClause) throws IOException, AutomationException
For more information about where clauses, see IQueryFilter.WhereClause.
whereClause
- The whereClause (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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 |