proprietary.datasources.arcsde
Class ArcSDEDataSource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended bygistoolkit.datasources.SimpleDBDataSource
          extended byproprietary.datasources.arcsde.ArcSDEDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
UpdateableArcSDEDataSource

public class ArcSDEDataSource
extends SimpleDBDataSource

Retrieves data from an ArcSDEDataSource.

Version:
Author:
ithaqua

Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
 
Constructor Summary
ArcSDEDataSource()
          Creates new ArcSDEDataSource
 
Method Summary
 void connect()
          Connect to the datasource to ensure that it is operational
 java.lang.String getDatabaseName()
          Retrieve the name of the database with which to connect
 double getMaxX()
          Get the maximum X value to be sent to the database.
 double getMaxY()
          Get the maximum Y value to be sent to the database.
 double getMinX()
          Get the minimum X value to be sent to the database.
 double getMinY()
          Get the minimum X value to be sent to the database.
 Node getNode()
          Get the configuration information for this data source
 java.lang.String getPassword()
          Retrieve the password of the user to use for verification when connecting to the database
 int getPortNumber()
          Retrieve the port number where the ARCSDE service is listening
 java.lang.String getServername()
          Retrieve the name of the server where the SDE process is running
 Style getStyle()
          Get the style to use with this datasource.
 java.lang.String getTableName()
          Retrieve the name of the table where the data for this data source is stored
 java.lang.String getUsername()
          Retrieve the username to use when connecting to the SDE database
 void load(java.util.Properties inProperties)
          Initialize the data source from the properties.
static void main(java.lang.String[] arg)
           
 Envelope readEnvelope()
          Returns the bounding rectangle of all the shapes in the Data Source.
protected  GISDataset readShapes(Envelope inEnvelope)
          Reads all the objects from the shape file, and populates the layer with them.
 void setDatabaseName(java.lang.String inDatabaseName)
          Set the name of the database with which to connect.
 void setMaxX(double inMaxX)
          Set the maximum X value to be sent to the database.
 void setMaxY(double inMaxY)
          Set the maximum X value to be sent to the database.
 void setMinX(double inMinX)
          Set the minimum X value to be sent to the database.
 void setMinY(double inMinY)
          Set the minimum Y value to be sent to the database.
 void setNode(Node inNode)
          Set the configuration information for this data source
 void setPassword(java.lang.String inPassword)
          Set the password of the user to verify for connection to the database
 void setPortNumber(int inPortNumber)
          Set the port number where the ARCSDE service is listening
 void setServername(java.lang.String inServername)
          Set the name of the server where the SDE processes is running
 void setTableName(java.lang.String inTableName)
          Set the name of the table where the data for this data source is stored
 void setUsername(java.lang.String inUsername)
          Set the username to use when verifying the connection to the database
 
Methods inherited from class gistoolkit.datasources.SimpleDBDataSource
getFilter, getFilterSQL, getSQLConverter, setFilter
 
Methods inherited from class gistoolkit.datasources.SimpleDataSource
addDataSourceListener, clearCache, commit, delete, doCommit, doDelete, doInsert, doRollback, doUpdate, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFromProjection, getName, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, rollback, setCache, setCached, setFromProjection, setName, setProjection, setToProjection, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcSDEDataSource

public ArcSDEDataSource()
Creates new ArcSDEDataSource

Method Detail

setServername

public void setServername(java.lang.String inServername)
Set the name of the server where the SDE processes is running


getServername

public java.lang.String getServername()
Retrieve the name of the server where the SDE process is running


setPortNumber

public void setPortNumber(int inPortNumber)
Set the port number where the ARCSDE service is listening


getPortNumber

public int getPortNumber()
Retrieve the port number where the ARCSDE service is listening


setDatabaseName

public void setDatabaseName(java.lang.String inDatabaseName)
Set the name of the database with which to connect.


getDatabaseName

public java.lang.String getDatabaseName()
Retrieve the name of the database with which to connect


setTableName

public void setTableName(java.lang.String inTableName)
Set the name of the table where the data for this data source is stored


getTableName

public java.lang.String getTableName()
Retrieve the name of the table where the data for this data source is stored


setUsername

public void setUsername(java.lang.String inUsername)
Set the username to use when verifying the connection to the database


getUsername

public java.lang.String getUsername()
Retrieve the username to use when connecting to the SDE database


setPassword

public void setPassword(java.lang.String inPassword)
Set the password of the user to verify for connection to the database


getPassword

public java.lang.String getPassword()
Retrieve the password of the user to use for verification when connecting to the database


setMinX

public void setMinX(double inMinX)
Set the minimum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


getMinX

public double getMinX()
Get the minimum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


setMaxX

public void setMaxX(double inMaxX)
Set the maximum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


getMaxX

public double getMaxX()
Get the maximum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


setMinY

public void setMinY(double inMinY)
Set the minimum Y value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


getMinY

public double getMinY()
Get the minimum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


setMaxY

public void setMaxY(double inMaxY)
Set the maximum X value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


getMaxY

public double getMaxY()
Get the maximum Y value to be sent to the database. This is to avoid the problems with the ESRI envelope methods


connect

public void connect()
             throws java.lang.Exception
Connect to the datasource to ensure that it is operational

Throws:
java.lang.Exception

readEnvelope

public Envelope readEnvelope()
                      throws java.lang.Exception
Returns the bounding rectangle of all the shapes in the Data Source.

Specified by:
readEnvelope in class SimpleDataSource
Throws:
java.lang.Exception

readShapes

protected GISDataset readShapes(Envelope inEnvelope)
                         throws java.lang.Exception
Reads all the objects from the shape file, and populates the layer with them.

Specified by:
readShapes in class SimpleDataSource
Throws:
java.lang.Exception

load

public void load(java.util.Properties inProperties)
Initialize the data source from the properties.


getNode

public Node getNode()
Get the configuration information for this data source

Specified by:
getNode in interface DataSource
Overrides:
getNode in class SimpleDataSource

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this data source

Specified by:
setNode in interface DataSource
Overrides:
setNode in class SimpleDataSource
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] arg)

getStyle

public Style getStyle()
Get the style to use with this datasource.

Specified by:
getStyle in interface DataSource
Overrides:
getStyle in class SimpleDataSource