|
|||||||||||
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
gistoolkit.datasources.db2spatialextender.UpdateableSpatialExtenderDataSource
Allowing joins in a map is very powerfull, but it gets into some very harry issues when it comes to updating, deleting, and otherwise modifying the base data. To facilitate a more direct and intuative approach to the problem, this datasource was created.
Field Summary | |
(package private) int |
tempMaxInt
|
Fields inherited from class gistoolkit.datasources.db2spatialextender.SpatialExtenderDataSource |
MAX_DB2_INT, myDatabaseName, myEnvelope |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
UpdateableSpatialExtenderDataSource()
Creates new UpdatableSpatialExtenderDataSource |
Method Summary | |
java.sql.Connection |
connect()
Connects this datasource to the database, calls the connect in the super class. |
void |
doCommit()
Commit all changes since the last commit. |
void |
doDelete(Record inRecord)
Delete this record from the database. |
void |
doInsert(Record inRecord)
Inserts the given record into the datasource. |
void |
doRollback()
Rollback any changes to this datasource since the last commit. |
void |
doUpdate(Record inRecord)
Update the data source with the changed record. |
java.lang.String |
getDatabaseTableName()
Return the table name from which to retrieve data from spatial extender |
Node |
getNode()
Get the configuration information for this data source |
Style |
getStyle()
Get the style to use with this datasource. |
boolean |
isUpdateable()
Returns true. |
GISDataset |
readShapes(Envelope inEnvelope)
Reads the objects from the database that fall within the given Envelope. |
void |
releaseUpdateConnection()
Return the update connection. |
java.sql.Connection |
requestUpdateConnection()
Get a connection that can be used for updates. |
void |
setDatabaseTableName(java.lang.String inDatabaseTableName)
set the table name from which to retrieve data from spatial extender |
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, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFromProjection, getToProjection, getValidShapeTypes, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, readDataset, 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 |
int tempMaxInt
Constructor Detail |
public UpdateableSpatialExtenderDataSource()
Method Detail |
public java.lang.String getDatabaseTableName()
public void setDatabaseTableName(java.lang.String inDatabaseTableName)
public java.sql.Connection connect() throws java.lang.Exception
connect
in class SpatialExtenderDataSource
java.lang.Exception
public java.sql.Connection requestUpdateConnection() throws java.sql.SQLException
java.sql.SQLException
public void releaseUpdateConnection() throws java.sql.SQLException
java.sql.SQLException
public void doInsert(Record inRecord) throws java.lang.Exception
doInsert
in class SimpleDataSource
java.lang.Exception
public void doUpdate(Record inRecord) throws java.lang.Exception
doUpdate
in class SimpleDataSource
java.lang.Exception
public void doDelete(Record inRecord) throws java.lang.Exception
doDelete
in class SimpleDataSource
java.lang.Exception
public void doCommit() throws java.lang.Exception
doCommit
in class SimpleDataSource
java.lang.Exception
public void doRollback() throws java.lang.Exception
doRollback
in class SimpleDataSource
java.lang.Exception
public GISDataset readShapes(Envelope inEnvelope) throws java.lang.Exception
readShapes
in class SimpleDataSource
java.lang.Exception
public boolean isUpdateable()
isUpdateable
in interface DataSource
isUpdateable
in class SimpleDataSource
public Node getNode()
getNode
in interface DataSource
getNode
in class SpatialExtenderDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class SpatialExtenderDataSource
java.lang.Exception
public Style getStyle()
getStyle
in interface DataSource
getStyle
in class SimpleDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |