|
|||||||||||
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.ReadOnlySpatialExtenderDataSource
Allows connections to a DB2 Database given an arbitrary SQL String.
This allows the datasource to be configured to select data from a db2 join, and even allows selecting data from temporary tables. An Example may be:
SELECT mktregion.profit Profit, db2gse.st_AsBinary(County.shape) FROM mktregion, county WHERE mktregion.fips = county.fips
Field Summary | |
java.lang.String |
myDatabaseQuery
The string to apply to select the data from DB2. |
Fields inherited from class gistoolkit.datasources.db2spatialextender.SpatialExtenderDataSource |
MAX_DB2_INT, myDatabaseName, myEnvelope |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
ReadOnlySpatialExtenderDataSource()
SpatialExtenderDataSource constructor comment. |
Method Summary | |
java.sql.Connection |
connect()
Connects this datasource to the database, calls the connect in the super class. |
Node |
getNode()
Get the configuration information for this data source |
boolean |
getPreread()
Returns the preread flag. |
java.lang.String |
getSQLString()
retrieve the sql string that defines the layer. |
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 |
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. |
void |
setSQLString(java.lang.String inQuery)
sets the sql string that defines this layer. |
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 ReadOnlySpatialExtenderDataSource()
Method Detail |
public java.lang.String getSQLString()
public void setSQLString(java.lang.String inQuery)
public void setPreread(boolean inPreread)
public boolean getPreread()
public java.sql.Connection connect() throws java.lang.Exception
connect
in class SpatialExtenderDataSource
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 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 |