com.vividsolutions.jump.workbench.ui.plugin.datastore
Class DataStoreDataSource

java.lang.Object
  extended by com.vividsolutions.jump.io.datasource.DataSource
      extended by com.vividsolutions.jump.workbench.ui.plugin.datastore.DataStoreDataSource
All Implemented Interfaces:
WorkbenchContextReference

public class DataStoreDataSource
extends DataSource
implements WorkbenchContextReference

Adapts the DataStore API to the DataSource API.


Field Summary
static java.lang.String CACHING_KEY
           
static java.lang.String CONNECTION_DESCRIPTOR_KEY
           
static java.lang.String DATASET_NAME_KEY
           
static java.lang.String GEOMETRY_ATTRIBUTE_NAME_KEY
           
static java.lang.String WHERE_CLAUSE_KEY
           
 
Fields inherited from class com.vividsolutions.jump.io.datasource.DataSource
COORDINATE_SYSTEM_KEY, FILE_KEY
 
Constructor Summary
DataStoreDataSource()
           
DataStoreDataSource(java.lang.String datasetName, java.lang.String geometryAttributeName, java.lang.String whereClause, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
           
 
Method Summary
 Connection getConnection()
          Creates a new Connection to this DataSource.
 boolean isWritable()
           
 void setWorkbenchContext(WorkbenchContext context)
           
 
Methods inherited from class com.vividsolutions.jump.io.datasource.DataSource
getProperties, installCoordinateSystem, isReadable, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASET_NAME_KEY

public static final java.lang.String DATASET_NAME_KEY
See Also:
Constant Field Values

GEOMETRY_ATTRIBUTE_NAME_KEY

public static final java.lang.String GEOMETRY_ATTRIBUTE_NAME_KEY
See Also:
Constant Field Values

WHERE_CLAUSE_KEY

public static final java.lang.String WHERE_CLAUSE_KEY
See Also:
Constant Field Values

CACHING_KEY

public static final java.lang.String CACHING_KEY
See Also:
Constant Field Values

CONNECTION_DESCRIPTOR_KEY

public static final java.lang.String CONNECTION_DESCRIPTOR_KEY
See Also:
Constant Field Values
Constructor Detail

DataStoreDataSource

public DataStoreDataSource()

DataStoreDataSource

public DataStoreDataSource(java.lang.String datasetName,
                           java.lang.String geometryAttributeName,
                           java.lang.String whereClause,
                           ConnectionDescriptor connectionDescriptor,
                           boolean caching,
                           WorkbenchContext context)
Method Detail

isWritable

public boolean isWritable()
Overrides:
isWritable in class DataSource

getConnection

public Connection getConnection()
Description copied from class: DataSource
Creates a new Connection to this DataSource.

Specified by:
getConnection in class DataSource

setWorkbenchContext

public void setWorkbenchContext(WorkbenchContext context)
Specified by:
setWorkbenchContext in interface WorkbenchContextReference