gistoolkit.datasources
Class SimpleJoinDBDataSource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended bygistoolkit.datasources.SimpleJoinDataSource
          extended bygistoolkit.datasources.SimpleJoinDBDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
DB2JoinDataSource, MySQLJoinDataSource, OracleJoinDataSource, PostGISJoinDataSource

public abstract class SimpleJoinDBDataSource
extends SimpleJoinDataSource

Super class for join data sources that are connected to databases. The data source first reads the data from the source datasource, then it compares the data from the join data source to that of the source data source, and throws away any that do not have a match. It also trims the source data source to the envelope. This results in a standard inner join between the source data, and the join data.


Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
myTypes
 
Constructor Summary
SimpleJoinDBDataSource()
          For use with configuration only where the source data source is to be set with the setNode() function.
SimpleJoinDBDataSource(DataSource inSourceDataSource)
          Create a new DB2JoinDataSource with this data source as the source node.
 
Method Summary
 Filter getFilter()
          Retrieve hte filter from the data source.
 java.lang.String getFilterSQL()
          Returns the SQL for the filters.
 SQLConverter getSQLConverter()
          Returns the converter for this Database.
 void setFilter(Filter inFilter)
          Set the filters into this data source.
 
Methods inherited from class gistoolkit.datasources.SimpleJoinDataSource
getDatasourceJoinColumn, getDatasourceRecord, getJoinDataSource, getJoinDataSourceAttributeNames, getJoinDataSourceAttributeTypes, getJoinedDataCached, getNode, getTableJoinColumn, readDataSource, readEnvelope, readShapes, setDatasourceJoinColumn, setJoinedDataCached, setNode, setTableJoinColumn
 
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, getName, getStyle, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, rollback, setCache, setCached, setFromProjection, setName, setProjection, setToProjection, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJoinDBDataSource

public SimpleJoinDBDataSource()
For use with configuration only where the source data source is to be set with the setNode() function.


SimpleJoinDBDataSource

public SimpleJoinDBDataSource(DataSource inSourceDataSource)
Create a new DB2JoinDataSource with this data source as the source node.

Method Detail

getFilterSQL

public java.lang.String getFilterSQL()
Returns the SQL for the filters.


getFilter

public Filter getFilter()
Retrieve hte filter from the data source.

Specified by:
getFilter in interface DataSource
Overrides:
getFilter in class SimpleDataSource

setFilter

public void setFilter(Filter inFilter)
Set the filters into this data source.

Specified by:
setFilter in interface DataSource
Overrides:
setFilter in class SimpleDataSource

getSQLConverter

public SQLConverter getSQLConverter()
Returns the converter for this Database.