|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleDataSource
gistoolkit.datasources.SimpleDBDataSource
gistoolkit.datasources.oracle.OracleDataSource
Abstract class for handling information common to both the read only, and the updateable Oracle datasources. This class connects to an Oracle Database with the OracleLocator option. The OracleLocator is shipped with every Oracle database from 8.1 and up. It is not a part of OracleSpatial, so OracleSpatial is not required for this data source to work.
Field Summary | |
protected java.sql.Connection |
myCon
Connection to the Oracle datasource used for maintaining persistent connections. |
java.lang.String |
myDatabaseName
The name of the database on the DB2 server to connect to. |
protected Envelope |
myEnvelope
The Envelope of the dataset. |
protected java.sql.Statement |
myStmt
Statment used to maintain distributed transactions. |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
OracleDataSource()
Creates new SpatialExtenderDataSource |
Method Summary | |
java.sql.Connection |
connect()
Initializes the connection to the database. |
java.lang.String |
getDatabaseDriver()
Returns the jdbc driver class used for connection to the database. |
java.lang.String |
getDatabaseName()
Returns the name of the Oracle Database. |
java.lang.String |
getDatabasePassword()
Returns the password to use when connecting to the Oracle server. |
int |
getDatabasePort()
Returns the tcpip port to use when connecting to the Oracle server |
java.lang.String |
getDatabaseSchema()
Returns the name of the schema within the Oracle database where the data resides. |
java.lang.String |
getDatabaseServername()
Returns the computer name of the Oracle server. |
java.lang.String |
getDatabaseShapeColumn()
Returns the name of the shape column. |
int |
getDatabaseSpatialReferenceID()
Returns the spatial reference id to use for converting shapes to and from database format. |
java.lang.String |
getDatabaseURLBase()
Returns the url base to use when connecting through the JDBC driver. |
java.lang.String |
getDatabaseUsername()
Returns the username to use when connecting to the Oracle server. |
java.lang.String |
getName()
Return the name of this datasource for display to the user. |
Node |
getNode()
Get the configuration information for this data source |
SQLConverter |
getSQLConverter()
Returns the converter for this Database. |
protected java.lang.String |
getWhereString(Envelope inEnvelope)
Get the where clause based on the Envelope |
protected java.lang.Object |
parseGISToolkitShape(Shape inShape)
Converts the GISToolkit shape into an oracle JDBC struct type. |
protected Shape |
parseSDOStruct(java.lang.Object inObject)
Converts the Oracle JDBC struct type to a GISToolkit shape. |
Envelope |
readEnvelope()
Returns the bounding rectangle of all the shapes in the Data Source. |
void |
setDatabaseDriver(java.lang.String inDatabaseDriver)
Sets the name of the jdbc driver class used for connection to the database. |
void |
setDatabaseName(java.lang.String inDatabaseName)
Sets the name of the Oracle Database. |
void |
setDatabasePassword(java.lang.String inDatabasePassword)
Sets the password to use when connecting to the Oracle server. |
void |
setDatabasePort(int inDatabasePort)
Sets the tcpip port to use when connecting to the Oracle server |
void |
setDatabaseSchema(java.lang.String inDatabaseSchema)
Sets the name of the schema within the Oracle database where the data resides. |
void |
setDatabaseServername(java.lang.String inDatabaseServername)
Sets the name of the Oracle Server computer. |
void |
setDatabaseShapeColumn(java.lang.String inDatabaseShapeColumn)
Sets the name of the shape column. |
void |
setDatabaseSpatialReferenceID(int inDatabaseSpatialReferenceID)
Sets the SpatialReferenceID to use when converting shapes to and from database format. |
void |
setDatabaseSpatialReferenceID(java.lang.String inDatabaseSpatialReferenceID)
Sets the SpatialReferenceID to use when converting shapes to and from database format. |
void |
setDatabaseURLBase(java.lang.String inDatabaseURLBase)
Sets the url base to use when connecting through the JDBC driver. |
void |
setDatabaseUsername(java.lang.String inDatabaseUsername)
Sets the username to use when connecting to the Oracle server. |
void |
setName(java.lang.String inName)
Set the name of this datasource for display purposes. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
Methods inherited from class gistoolkit.datasources.SimpleDBDataSource |
getFilter, getFilterSQL, 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, getStyle, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, readDataset, readDataset, readShapes, removeDataSourceListener, rollback, setCache, setCached, setFromProjection, setProjection, setToProjection, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String myDatabaseName
protected Envelope myEnvelope
protected java.sql.Connection myCon
protected java.sql.Statement myStmt
Constructor Detail |
public OracleDataSource()
Method Detail |
public java.lang.String getName()
getName
in interface DataSource
getName
in class SimpleDataSource
public void setName(java.lang.String inName)
setName
in interface DataSource
setName
in class SimpleDataSource
public java.lang.String getDatabaseURLBase()
public void setDatabaseURLBase(java.lang.String inDatabaseURLBase)
public java.lang.String getDatabaseDriver()
public void setDatabaseDriver(java.lang.String inDatabaseDriver)
public java.lang.String getDatabaseServername()
public void setDatabaseServername(java.lang.String inDatabaseServername)
public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String inDatabaseName)
public java.lang.String getDatabaseSchema()
public void setDatabaseSchema(java.lang.String inDatabaseSchema)
public java.lang.String getDatabaseUsername()
public void setDatabaseUsername(java.lang.String inDatabaseUsername)
public java.lang.String getDatabasePassword()
public void setDatabasePassword(java.lang.String inDatabasePassword)
public int getDatabasePort()
public void setDatabasePort(int inDatabasePort)
public java.lang.String getDatabaseShapeColumn()
public void setDatabaseShapeColumn(java.lang.String inDatabaseShapeColumn)
public int getDatabaseSpatialReferenceID()
public void setDatabaseSpatialReferenceID(int inDatabaseSpatialReferenceID)
public void setDatabaseSpatialReferenceID(java.lang.String inDatabaseSpatialReferenceID)
public java.sql.Connection connect() throws java.lang.Exception
java.lang.Exception
protected Shape parseSDOStruct(java.lang.Object inObject) throws oracle.sdoapi.geom.InvalidGeometryException, oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException
oracle.sdoapi.geom.InvalidGeometryException
oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException
protected java.lang.Object parseGISToolkitShape(Shape inShape) throws oracle.sdoapi.geom.InvalidGeometryException, oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException
oracle.sdoapi.geom.InvalidGeometryException
oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException
public Envelope readEnvelope() throws java.lang.Exception
readEnvelope
in class SimpleDataSource
java.lang.Exception
protected java.lang.String getWhereString(Envelope inEnvelope)
public Node getNode()
getNode
in interface DataSource
getNode
in class SimpleDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class SimpleDataSource
java.lang.Exception
public SQLConverter getSQLConverter()
getSQLConverter
in class SimpleDBDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |