All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.sdoQuery

java.lang.Object
   |
   +----sdoOracle.sdoQuery

public class sdoQuery
extends Object
Class sdoQuery implements the SDO layer query.

See Also:
sdoInfo, sdoGeometryList, sdoGIDList

Constructor Index

 o sdoQuery()
Constructs a new sdoLayer object.
 o sdoQuery(sdoLayer, Connection, String)
Constructs a new sdoLayer object with the input parameters.

Method Index

 o GetAllObjects()
Returns all geometry collections with points and keep in memory.
 o GetAllObjects(boolean)
Returns all layer geometry with points or not.
 o GetObject(long)
Returns the list of geometries for the input id.
 o GetObjects(double, double, double, double, int, boolean)
Returns a list of geometries that overlap or are inside the input rectangle.
 o GetObjects(String, long, String)
Returns a list of geometries that match the input relation mask to the input gid (collection of geometries).
 o GetObjects(WPoint, double)
Returns a list of geometries that interacts with input point.
 o GetObjects(WPointList, int, boolean)
Returns a list of geometries that interacts with input geometry that must be a closed list of points.
 o GetRelation(long, long)
Returns the relation between two gid's (collection of geometries).
 o getSDOdata()
Returns SDO data in memory.
 o getSDOgids()
Returns SDO GID list in memory.
 o GetTiles(double, double, double, double, String)
Returns tiles that interacts with input mbr.
 o GetTiles(long, String)
Returns tiles for input gid (collection of geometries).
 o Interact(long, long)
Identifies if two gid's (collection of geometries) have interaction.
 o Interact(long, String, long)
Identifies if two gid's (collection of geometries) of different layers have interaction.
 o Interact(long, WPointList, short)
Identifies if input gid (collection of geometries) have interaction with the input geometry represented by a list of points.
 o setSDOdata(sdoGeometryList)
Associates SDO data in memory to read from.
 o setSDOgids(sdoGIDList)
Associates SDO GID list in memory to read from.
 o setSDOinfo(sdoInfo)
Associates SDO layer information.
 o setSDOschema(boolean)
Associates SDO layer schema.
 o setShowInfo(boolean)
Whether or not to show selectivity information.
 o setTextArea(sdoTextArea, sdoErrorWindow)
Associates a text area to write information.

Constructors

 o sdoQuery
 public sdoQuery()
Constructs a new sdoLayer object.

 o sdoQuery
 public sdoQuery(sdoLayer parent,
                 Connection conn,
                 String table)
Constructs a new sdoLayer object with the input parameters.

Methods

 o setTextArea
 public void setTextArea(sdoTextArea text,
                         sdoErrorWindow error)
Associates a text area to write information. This method is just for debug. Will be eliminated later.

Parameters:
text - sdoTextArea object.
error - sdoErrorWindow object.
 o setShowInfo
 public void setShowInfo(boolean showInfo)
Whether or not to show selectivity information.

Parameters:
showInfo - boolean variable.
 o setSDOinfo
 public void setSDOinfo(sdoInfo info)
Associates SDO layer information.

Parameters:
info - sdoInfo object of current SDO layer.
 o setSDOschema
 public void setSDOschema(boolean isHybrid)
Associates SDO layer schema.

Parameters:
isHybrid - if current layer has hybrid schema.
 o setSDOdata
 public void setSDOdata(sdoGeometryList data)
Associates SDO data in memory to read from.

Parameters:
data - sdoGeometryList object.
 o getSDOdata
 public sdoGeometryList getSDOdata()
Returns SDO data in memory.

Returns:
returns sdoGeometryList object.
 o setSDOgids
 public void setSDOgids(sdoGIDList gids)
Associates SDO GID list in memory to read from.

Parameters:
gids - sdoGIDList object.
 o getSDOgids
 public sdoGIDList getSDOgids()
Returns SDO GID list in memory.

Returns:
returns sdoGIDList object.
 o GetAllObjects
 public sdoGIDList GetAllObjects()
Returns all geometry collections with points and keep in memory. The method FreeData must be called in order to liberate this memory.

Returns:
returns a sdoGIDList object or null.
 o GetAllObjects
 public sdoGeometryList GetAllObjects(boolean points)
Returns all layer geometry with points or not. If data is in memory, then the input parameter has no effect and the current list in memory is returned.

Returns:
returns a sdoGeometryList object or null.
 o GetObject
 public sdoGeometryList GetObject(long id)
Returns the list of geometries for the input id.

Returns:
returns a sdoGeometryList object.
 o GetObjects
 public sdoGeometryList GetObjects(String layer,
                                   long id,
                                   String relationmask)
Returns a list of geometries that match the input relation mask to the input gid (collection of geometries). The mask value can be a conbination of several relations, such as "INSIDE+OVERLAP". Refer to SDO manual about sdo_geom.relate function.

Returns:
returns a sdoGeometryList object,
 o GetObjects
 public sdoGeometryList GetObjects(double x1,
                                   double y1,
                                   double x2,
                                   double y2,
                                   int filter,
                                   boolean points)
Returns a list of geometries that overlap or are inside the input rectangle. The input parameter filter specify if primary or secondary filter has to be applied. If the input box contains the whole data, then the parameter filter is not used, therefore the primary or secondary filter are not used. If data is already in memory, input parameters "filter" and "points" have no effect. This method assumes that the query layer has been created with CreateQueryWindow method of sdoWorkspace class.

Returns:
returns a sdoGeometryList object or null.
 o GetObjects
 public sdoGeometryList GetObjects(WPointList coords,
                                   int filter,
                                   boolean points)
Returns a list of geometries that interacts with input geometry that must be a closed list of points. Primary or secondary filter can be used, as well the points may be loaded or not. Even if data is in memory this method goes to the database and returns a new list of geometries. This method assumes that the query layer has been created with CreateQueryWindow method of sdoWorkspace class.

Returns:
returns a sdoGeometryList object or null.
 o GetObjects
 public sdoGeometryList GetObjects(WPoint wc,
                                   double tol)
Returns a list of geometries that interacts with input point. This method has not been implemented yet.

Returns:
returns a sdoGeometryList object or null.
 o GetTiles
 public BoxList GetTiles(double xmin,
                         double ymin,
                         double xmax,
                         double ymax,
                         String tile_type)
Returns tiles that interacts with input mbr. Note: the hhcellbndry function doesn't work well with the input box, so for now the input parameters have no effect.

Returns:
returns a BoxList object or null.
 o GetTiles
 public BoxList GetTiles(long gid,
                         String tile_type)
Returns tiles for input gid (collection of geometries).

Returns:
returns a BoxList object or null.
 o GetRelation
 public String GetRelation(long gid1,
                           long gid2)
Returns the relation between two gid's (collection of geometries). Refer to SDO manual about sdo_geom.relate function.

Returns:
returns a String object with the spatial relation.
 o Interact
 public String Interact(long gid1,
                        long gid2)
Identifies if two gid's (collection of geometries) have interaction. Refer to SDO manual about sdo_geom.interact function.

Returns:
returns a String object with 'TRUE' or 'FALSE'.
 o Interact
 public String Interact(long gid1,
                        String layer2,
                        long gid2)
Identifies if two gid's (collection of geometries) of different layers have interaction. Refer to SDO manual about sdo_geom.interact function.

Returns:
returns a String object with 'TRUE' or 'FALSE'.
 o Interact
 public String Interact(long gid1,
                        WPointList coords,
                        short etype)
Identifies if input gid (collection of geometries) have interaction with the input geometry represented by a list of points. Refer to SDO manual about sdo_geom.interact function.

Returns:
returns a String object with 'TRUE' or 'FALSE'.

All Packages  Class Hierarchy  This Package  Previous  Next  Index