com.esri.arcgis.carto
Class QueryByLayer

java.lang.Object
  extended by com.esri.arcgis.carto.QueryByLayer
All Implemented Interfaces:
IQueryByLayer, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class QueryByLayer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IQueryByLayer

Query By Layer Class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
QueryByLayer()
          Constructs a QueryByLayer using ArcGIS Engine.
QueryByLayer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
QueryByLayer theQueryByLayer = (QueryByLayer) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 ISelectionSet select()
          Selects the features based on the input parameters and returns a selection set.
 void setBufferDistance(double rhs1)
          The type of selection method to be performed.
 void setBufferUnits(int rhs1)
          The buffer units.
 void setByLayerByRef(IFeatureLayer rhs1)
          The layer features will be selected from.
 void setFromLayerByRef(IFeatureLayer rhs1)
          Provides access to the methods and properties of QueryByLayer.
 void setLayerSelectionMethod(int rhs1)
          The input layer that contains features to base the selection on.
 void setResultType(int rhs1)
          The result type of the selection where it can be specified that the selection adds to a current selection etc.
 void setUseSelectedFeatures(boolean rhs1)
          Indicates whether selected features will be used.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

QueryByLayer

public QueryByLayer()
             throws IOException,
                    UnknownHostException
Constructs a QueryByLayer using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

QueryByLayer

public QueryByLayer(Object obj)
             throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
QueryByLayer theQueryByLayer = (QueryByLayer) obj;

Construct a QueryByLayer using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to QueryByLayer.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

setFromLayerByRef

public void setFromLayerByRef(IFeatureLayer rhs1)
                       throws IOException,
                              AutomationException
Provides access to the methods and properties of QueryByLayer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setFromLayerByRef in interface IQueryByLayer
Parameters:
rhs1 - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setByLayerByRef

public void setByLayerByRef(IFeatureLayer rhs1)
                     throws IOException,
                            AutomationException
The layer features will be selected from.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setByLayerByRef in interface IQueryByLayer
Parameters:
rhs1 - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLayerSelectionMethod

public void setLayerSelectionMethod(int rhs1)
                             throws IOException,
                                    AutomationException
The input layer that contains features to base the selection on.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setLayerSelectionMethod in interface IQueryByLayer
Parameters:
rhs1 - A com.esri.arcgis.carto.esriLayerSelectionMethod constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBufferDistance

public void setBufferDistance(double rhs1)
                       throws IOException,
                              AutomationException
The type of selection method to be performed.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setBufferDistance in interface IQueryByLayer
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBufferUnits

public void setBufferUnits(int rhs1)
                    throws IOException,
                           AutomationException
The buffer units.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setBufferUnits in interface IQueryByLayer
Parameters:
rhs1 - A com.esri.arcgis.system.esriUnits constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUseSelectedFeatures

public void setUseSelectedFeatures(boolean rhs1)
                            throws IOException,
                                   AutomationException
Indicates whether selected features will be used.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setUseSelectedFeatures in interface IQueryByLayer
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setResultType

public void setResultType(int rhs1)
                   throws IOException,
                          AutomationException
The result type of the selection where it can be specified that the selection adds to a current selection etc.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setResultType in interface IQueryByLayer
Parameters:
rhs1 - A com.esri.arcgis.carto.esriSelectionResultEnum constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

select

public ISelectionSet select()
                     throws IOException,
                            AutomationException
Selects the features based on the input parameters and returns a selection set.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
select in interface IQueryByLayer
Returns:
A reference to a com.esri.arcgis.geodatabase.ISelectionSet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.