Class DataStoreDataSource
- java.lang.Object
-
- com.vividsolutions.jump.io.datasource.DataSource
-
- com.vividsolutions.jump.workbench.ui.plugin.datastore.DataStoreQueryDataSource
-
- com.vividsolutions.jump.workbench.ui.plugin.datastore.DataStoreDataSource
-
- All Implemented Interfaces:
WorkbenchContextReference
- Direct Known Subclasses:
WritableDataStoreDataSource
public class DataStoreDataSource extends DataStoreQueryDataSource implements WorkbenchContextReference
Adapts the DataStore API to the DataSource API.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHING_KEY
protected WorkbenchContext
context
static String
DATASET_NAME_KEY
static String
GEOMETRY_ATTRIBUTE_NAME_KEY
static String
MAX_FEATURES_KEY
static String
WHERE_CLAUSE_KEY
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.plugin.datastore.DataStoreQueryDataSource
CONNECTION_DESCRIPTOR_KEY, PATTERN_FENCE, PATTERN_SELECTION, PATTERN_VIEW, PRIMARY_KEY_KEY, SQL_QUERY_KEY
-
Fields inherited from class com.vividsolutions.jump.io.datasource.DataSource
CHARSET_KEY, COMPRESSED_KEY, COORDINATE_SYSTEM_CODE, COORDINATE_SYSTEM_KEY, COORDINATE_SYSTEM_REGISTRY, FILE_KEY, URI_KEY
-
-
Constructor Summary
Constructors Constructor Description DataStoreDataSource()
DataStoreDataSource(String datasetName, String geometryAttributeName, String whereClause, int maxFeatures, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
DataStoreDataSource(String datasetName, String geometryAttributeName, String whereClause, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FeatureCollection
createFeatureCollection()
Connection
getConnection()
Creates a new Connection to this DataSource.protected WorkbenchContext
getWorkbenchContext()
boolean
isWritable()
void
setMaxFeature(int maxFeatures)
void
setWhereClause(String whereClause)
void
setWorkbenchContext(WorkbenchContext context)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.plugin.datastore.DataStoreQueryDataSource
expandQuery
-
Methods inherited from class com.vividsolutions.jump.io.datasource.DataSource
getProperties, installCoordinateSystem, isDisabled, isReadable, setDisabled, setProperties
-
-
-
-
Field Detail
-
DATASET_NAME_KEY
public static final String DATASET_NAME_KEY
- See Also:
- Constant Field Values
-
GEOMETRY_ATTRIBUTE_NAME_KEY
public static final String GEOMETRY_ATTRIBUTE_NAME_KEY
- See Also:
- Constant Field Values
-
MAX_FEATURES_KEY
public static final String MAX_FEATURES_KEY
- See Also:
- Constant Field Values
-
WHERE_CLAUSE_KEY
public static final String WHERE_CLAUSE_KEY
- See Also:
- Constant Field Values
-
CACHING_KEY
public static final String CACHING_KEY
- See Also:
- Constant Field Values
-
context
protected WorkbenchContext context
-
-
Constructor Detail
-
DataStoreDataSource
public DataStoreDataSource()
-
DataStoreDataSource
public DataStoreDataSource(String datasetName, String geometryAttributeName, String whereClause, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
-
DataStoreDataSource
public DataStoreDataSource(String datasetName, String geometryAttributeName, String whereClause, int maxFeatures, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
-
-
Method Detail
-
setWhereClause
public void setWhereClause(String whereClause)
-
setMaxFeature
public void setMaxFeature(int maxFeatures)
-
isWritable
public boolean isWritable()
- Overrides:
isWritable
in classDataStoreQueryDataSource
-
getConnection
public Connection getConnection()
Description copied from class:DataSource
Creates a new Connection to this DataSource.- Overrides:
getConnection
in classDataStoreQueryDataSource
- Returns:
- a Connection to connect to this DataSource
-
createFeatureCollection
protected FeatureCollection createFeatureCollection() throws Exception
- Overrides:
createFeatureCollection
in classDataStoreQueryDataSource
- Throws:
Exception
-
getWorkbenchContext
protected WorkbenchContext getWorkbenchContext()
- Overrides:
getWorkbenchContext
in classDataStoreQueryDataSource
-
setWorkbenchContext
public void setWorkbenchContext(WorkbenchContext context)
- Specified by:
setWorkbenchContext
in interfaceWorkbenchContextReference
- Overrides:
setWorkbenchContext
in classDataStoreQueryDataSource
-
-