All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.sdoWorkspace

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

public class sdoWorkspace
extends Object
Class sdoWorkspace defines a connection to an Oracle database.

See Also:
sdoLayer

Constructor Index

 o sdoWorkspace()
Constructs a new sdoWorkspace object.
 o sdoWorkspace(Connection, String)
Constructs a new sdoWorkspace object associating the inpu parameters.

Method Index

 o AddLayer(sdoLayer)
Adds a new layer to this workspace.
 o CreateQueryWindow(double, double, double, double, double, double, boolean, int, int)
Creates a window query layer (SDOWINJAVA) that must be populated later, in order to perform spatial queries.
 o Define(Connection, String)
Defines the sdoWorkspace parameteres.
 o First()
Returns the first spatial layer.
 o GetConnection()
Returns the sdoWorkspace connection.
 o GetItem(int)
Returns the sdoLayer object related with input index.
 o GetLayers()
Gets all spatial layers for this sdoWorkspace connection.
 o MaxComDiv(int, int)
Returns the max common divisor of two integers.
 o Next()
Returns the next spatial layer.
 o RemoveLayer(sdoLayer)
Removes an existing layer from this workspace.
 o Size()
Returns the actual number of layers.
 o UserName()
Returns the sdoWorkspace user name.

Constructors

 o sdoWorkspace
 public sdoWorkspace()
Constructs a new sdoWorkspace object.

 o sdoWorkspace
 public sdoWorkspace(Connection conn,
                     String user)
Constructs a new sdoWorkspace object associating the inpu parameters.

Methods

 o Define
 public void Define(Connection conn,
                    String user)
Defines the sdoWorkspace parameteres.

 o UserName
 public String UserName()
Returns the sdoWorkspace user name.

Returns:
returns a String object.
 o GetConnection
 public Connection GetConnection()
Returns the sdoWorkspace connection.

Returns:
returns a Connection object.
 o GetLayers
 public boolean GetLayers()
Gets all spatial layers for this sdoWorkspace connection.

Returns:
returns a boolean value true or false.
 o AddLayer
 public void AddLayer(sdoLayer layer)
Adds a new layer to this workspace.

 o RemoveLayer
 public void RemoveLayer(sdoLayer layer)
Removes an existing layer from this workspace.

 o First
 public sdoLayer First()
Returns the first spatial layer.

Returns:
returns a sdoLayer object or null.
 o Next
 public sdoLayer Next()
Returns the next spatial layer.

Returns:
returns a sdoLayer object or null.
 o Size
 public int Size()
Returns the actual number of layers.

Returns:
returns an integer value.
 o GetItem
 public sdoLayer GetItem(int index)
Returns the sdoLayer object related with input index.

Parameters:
index - position in the list (starts at 0).
Returns:
returns a sdoLayer object or null.
 o CreateQueryWindow
 public boolean CreateQueryWindow(double x1,
                                  double y1,
                                  double x2,
                                  double y2,
                                  double tolx,
                                  double toly,
                                  boolean hybridSchema,
                                  int group_level,
                                  int num_tiles)
Creates a window query layer (SDOWINJAVA) that must be populated later, in order to perform spatial queries. Usually the extension of this layer should be equivalent to the dimension of the layer that you want to query

Returns:
returns a boolean value true or false.
 o MaxComDiv
 public int MaxComDiv(int first,
                      int second)
Returns the max common divisor of two integers.

Returns:
returns an integer.

All Packages  Class Hierarchy  This Package  Previous  Next  Index