public class DataStoreDataSource extends DataSource implements WorkbenchContextReference
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHING_KEY |
static java.lang.String |
CONNECTION_DESCRIPTOR_KEY |
protected WorkbenchContext |
context |
static java.lang.String |
DATASET_NAME_KEY |
static java.lang.String |
GEOMETRY_ATTRIBUTE_NAME_KEY |
static java.lang.String |
MAX_FEATURES_KEY |
static java.lang.String |
WHERE_CLAUSE_KEY |
COORDINATE_SYSTEM_KEY, FILE_KEY
Constructor and Description |
---|
DataStoreDataSource() |
DataStoreDataSource(java.lang.String datasetName,
java.lang.String geometryAttributeName,
java.lang.String whereClause,
ConnectionDescriptor connectionDescriptor,
boolean caching,
WorkbenchContext context) |
DataStoreDataSource(java.lang.String datasetName,
java.lang.String geometryAttributeName,
java.lang.String whereClause,
int maxFeatures,
ConnectionDescriptor connectionDescriptor,
boolean caching,
WorkbenchContext context) |
Modifier and Type | Method and Description |
---|---|
protected FeatureCollection |
createFeatureCollection() |
Connection |
getConnection()
Creates a new Connection to this DataSource.
|
protected WorkbenchContext |
getWorkbenchContext() |
boolean |
isWritable() |
void |
setMaxFeature(int maxFeatures) |
void |
setWhereClause(java.lang.String whereClause) |
void |
setWorkbenchContext(WorkbenchContext context) |
getProperties, installCoordinateSystem, isReadable, setProperties
public static final java.lang.String DATASET_NAME_KEY
public static final java.lang.String GEOMETRY_ATTRIBUTE_NAME_KEY
public static final java.lang.String MAX_FEATURES_KEY
public static final java.lang.String WHERE_CLAUSE_KEY
public static final java.lang.String CACHING_KEY
public static final java.lang.String CONNECTION_DESCRIPTOR_KEY
protected WorkbenchContext context
public DataStoreDataSource()
public DataStoreDataSource(java.lang.String datasetName, java.lang.String geometryAttributeName, java.lang.String whereClause, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
public DataStoreDataSource(java.lang.String datasetName, java.lang.String geometryAttributeName, java.lang.String whereClause, int maxFeatures, ConnectionDescriptor connectionDescriptor, boolean caching, WorkbenchContext context)
public void setWhereClause(java.lang.String whereClause)
public void setMaxFeature(int maxFeatures)
public boolean isWritable()
isWritable
in class DataSource
public Connection getConnection()
DataSource
getConnection
in class DataSource
protected FeatureCollection createFeatureCollection() throws java.lang.Exception
java.lang.Exception
protected WorkbenchContext getWorkbenchContext()
public void setWorkbenchContext(WorkbenchContext context)
setWorkbenchContext
in interface WorkbenchContextReference