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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected WorkbenchContextstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class DataStoreQueryDataSource
CONNECTION_DESCRIPTOR_KEY, PATTERN_FENCE, PATTERN_SELECTION, PATTERN_VIEW, PRIMARY_KEY_KEY, SQL_QUERY_KEYFields inherited from class DataSource
CHARSET_KEY, COMPRESSED_KEY, COORDINATE_SYSTEM_CODE, COORDINATE_SYSTEM_KEY, COORDINATE_SYSTEM_REGISTRY, FILE_KEY, URI_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDataStoreDataSource(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
Modifier and TypeMethodDescriptionprotected FeatureCollectionCreates a new Connection to this DataSource.protected WorkbenchContextbooleanvoidsetMaxFeature(int maxFeatures) voidsetWhereClause(String whereClause) voidsetWorkbenchContext(WorkbenchContext context) Methods inherited from class DataStoreQueryDataSource
expandQueryMethods inherited from class DataSource
getProperties, installCoordinateSystem, isDisabled, isReadable, setDisabled, setProperties
-
Field Details
-
DATASET_NAME_KEY
- See Also:
-
GEOMETRY_ATTRIBUTE_NAME_KEY
- See Also:
-
MAX_FEATURES_KEY
- See Also:
-
WHERE_CLAUSE_KEY
- See Also:
-
CACHING_KEY
- See Also:
-
context
-
-
Constructor Details
-
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 Details
-
setWhereClause
-
setMaxFeature
public void setMaxFeature(int maxFeatures) -
isWritable
public boolean isWritable()- Overrides:
isWritablein classDataStoreQueryDataSource
-
getConnection
Description copied from class:DataSourceCreates a new Connection to this DataSource.- Overrides:
getConnectionin classDataStoreQueryDataSource- Returns:
- a Connection to connect to this DataSource
-
createFeatureCollection
- Overrides:
createFeatureCollectionin classDataStoreQueryDataSource- Throws:
Exception
-
getWorkbenchContext
- Overrides:
getWorkbenchContextin classDataStoreQueryDataSource
-
setWorkbenchContext
- Specified by:
setWorkbenchContextin interfaceWorkbenchContextReference- Overrides:
setWorkbenchContextin classDataStoreQueryDataSource
-