|
|||||||||||
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.db2spatialextender.SpatialExtenderDataSource
Super class for the Spatial Extender DataSources. Handles connecting to the database retrieving the valid range of x and y values, and serialization of the connection parameters common to SpatialExtenderDataSources.
Field Summary | |
static long |
MAX_DB2_INT
DB2 stores all of these features as posative integers between 0 and the MAX_DB2_INT. |
java.lang.String |
myDatabaseName
The name of the database on the DB2 server to connect to. |
protected Envelope |
myEnvelope
The Envelope of the dataset. |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
SpatialExtenderDataSource()
Creates new SpatialExtenderDataSource |
Method Summary | |
protected Point |
checkMaxPoint(Point inPoint)
Function to ensure that the X and Y of the point are within the allowable limits |
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 DB2 Database. |
java.lang.String |
getDatabasePassword()
Returns the password to use when connecting to the DB2 server. |
int |
getDatabasePort()
Returns the tcpip port to use when connecting to the DB2 server |
java.lang.String |
getDatabaseSchema()
Returns the name of the schema within the DB2 database where the data resides. |
java.lang.String |
getDatabaseServername()
Returns the computer name of the DB2 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 DB2 server. |
java.lang.String |
getJDBCURL()
Returns the correctly formated URL for connecting to a db2 database. |
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 |
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 DB2 Database. |
void |
setDatabasePassword(java.lang.String inDatabasePassword)
Sets the password to use when connecting to the DB2 server. |
void |
setDatabasePort(int inDatabasePort)
Sets the tcpip port to use when connecting to the DB2 server |
void |
setDatabaseSchema(java.lang.String inDatabaseSchema)
Sets the name of the schema within the DB2 database where the data resides. |
void |
setDatabaseServername(java.lang.String inDatabaseServername)
Sets the name of the DB2 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 DB2 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
public static long MAX_DB2_INT
protected Envelope myEnvelope
Constructor Detail |
public SpatialExtenderDataSource()
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)
protected Point checkMaxPoint(Point inPoint)
public java.lang.String getJDBCURL()
public java.sql.Connection connect() throws java.lang.Exception
java.lang.Exception
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 |