com.esri.arcgis.geodatabase
Class QueryDef

java.lang.Object
  extended by com.esri.arcgis.geodatabase.QueryDef
All Implemented Interfaces:
IQueryDef, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class QueryDef
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IQueryDef

COM Class 'QueryDef'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'Esri Query Definition object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.IQueryDef
IID, IID97103d51_3a9e_11d1_8816_0000f877762d, xxDummy
 
Constructor Summary
QueryDef(java.lang.Object obj)
          Construct a QueryDef using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 ICursor evaluate()
          Evaluate the query and return a cursor on the result set.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getSubFields()
          The comma delimited list of field names for the query.
 java.lang.String getTables()
          The comma delimited list of table names for the query.
 java.lang.String getWhereClause()
          The where clause for the query.
 int hashCode()
          the hashcode for this object
 void release()
          Release a QueryDef.
 void setSubFields(java.lang.String subFields)
          The comma delimited list of field names for the query.
 void setTables(java.lang.String tables)
          The comma delimited list of table names for the query.
 void setWhereClause(java.lang.String whereClause)
          The where clause for the query.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryDef

public QueryDef(java.lang.Object obj)
         throws java.io.IOException
Construct a QueryDef using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to QueryDef.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
QueryDef o = (QueryDef)obj; // will not work

QueryDef o = new QueryDef(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems QueryDef theQueryDef = (QueryDef) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a QueryDef.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getTables

public java.lang.String getTables()
                           throws java.io.IOException,
                                  AutomationException
The comma delimited list of table names for the query.

Specified by:
getTables in interface IQueryDef
Returns:
The tables
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTables

public void setTables(java.lang.String tables)
               throws java.io.IOException,
                      AutomationException
The comma delimited list of table names for the query.

Specified by:
setTables in interface IQueryDef
Parameters:
tables - The tables (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSubFields

public java.lang.String getSubFields()
                              throws java.io.IOException,
                                     AutomationException
The comma delimited list of field names for the query.

Specified by:
getSubFields in interface IQueryDef
Returns:
The subFields
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSubFields

public void setSubFields(java.lang.String subFields)
                  throws java.io.IOException,
                         AutomationException
The comma delimited list of field names for the query.

Specified by:
setSubFields in interface IQueryDef
Parameters:
subFields - The subFields (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWhereClause

public java.lang.String getWhereClause()
                                throws java.io.IOException,
                                       AutomationException
The where clause for the query.

Specified by:
getWhereClause in interface IQueryDef
Returns:
The whereClause
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWhereClause

public void setWhereClause(java.lang.String whereClause)
                    throws java.io.IOException,
                           AutomationException
The where clause for the query.

Specified by:
setWhereClause in interface IQueryDef
Parameters:
whereClause - The whereClause (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

evaluate

public ICursor evaluate()
                 throws java.io.IOException,
                        AutomationException
Evaluate the query and return a cursor on the result set.

Specified by:
evaluate in interface IQueryDef
Returns:
A reference to a com.esri.arcgis.geodatabase.ICursor
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.