|
|||||||||||
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
gistoolkit.datasources.oracle.ReadOnlyOracleDataSource
Class used to allow selects from an oracle database. This class uses the Oracle Locator features that are shipped with oracle databases 8i and above. Complex queries can be generated with this class that involve sub tables, sorts, multiple table joins, and attribute where clauses. This gives the user a great deal of flexability when retrieving information from the database. Because it would be very dificult or imposible to properly update the tables, updates are not allowed with this data source.
Field Summary | |
java.lang.String |
myDatabaseQuery
The string to apply to select the data from DB2. |
Fields inherited from class gistoolkit.datasources.oracle.OracleDataSource |
myCon, myDatabaseName, myEnvelope, myStmt |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
ReadOnlyOracleDataSource()
SpatialExtenderDataSource constructor comment. |
Method Summary | |
java.sql.Connection |
connect()
Connects this datasource to the database, calls the connect in the super class. |
java.lang.String |
getDatabaseQuery()
retrieve the sql string that defines the layer. |
Node |
getNode()
Get the configuration information for this data source |
boolean |
getPreread()
Returns the preread flag. |
Style |
getStyle()
Get the style to use with this datasource. |
GISDataset |
readDataset(Envelope inEnvelope)
Reads only the objects from the data source that intersect these Envelope. |
GISDataset |
readShapes(Envelope inEnvelope)
Reads the objects from the database that fall within the given Envelope. |
void |
setDatabaseQuery(java.lang.String inQuery)
sets the sql string that defines this layer. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
void |
setPreread(boolean inPreread)
Sets the preread flag to tell this data source to preread the entire contents of the layer, and keep them in memory, essentially caching them, until the data source is disposed. |
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, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, 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 |
Methods inherited from interface gistoolkit.datasources.DataSource |
addDataSourceListener, commit, delete, getEnvelope, getFilter, getFromProjection, getName, getToProjection, insert, isUpdateable, readDataset, removeDataSourceListener, rollback, setFilter, setFromProjection, setName, setToProjection, update |
Field Detail |
public java.lang.String myDatabaseQuery
Constructor Detail |
public ReadOnlyOracleDataSource()
Method Detail |
public java.lang.String getDatabaseQuery()
public void setDatabaseQuery(java.lang.String inQuery)
public void setPreread(boolean inPreread)
public boolean getPreread()
public java.sql.Connection connect() throws java.lang.Exception
connect
in class OracleDataSource
java.lang.Exception
public GISDataset readDataset(Envelope inEnvelope) throws java.lang.Exception
readDataset
in interface DataSource
readDataset
in class SimpleDataSource
java.lang.Exception
public GISDataset readShapes(Envelope inEnvelope) throws java.lang.Exception
readShapes
in class SimpleDataSource
java.lang.Exception
public Node getNode()
getNode
in interface DataSource
getNode
in class OracleDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class OracleDataSource
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 |