public class DataStoreQueryDataSource extends DataSource implements WorkbenchContextReference
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECTION_DESCRIPTOR_KEY |
static java.lang.String |
DATASET_NAME_KEY |
static java.util.regex.Pattern |
PATTERN_FENCE |
static java.util.regex.Pattern |
PATTERN_SELECTION |
static java.util.regex.Pattern |
PATTERN_VIEW |
static java.lang.String |
PRIMARY_KEY_KEY |
static java.lang.String |
SQL_QUERY_KEY |
COORDINATE_SYSTEM_KEY, FILE_KEY
Constructor and Description |
---|
DataStoreQueryDataSource() |
DataStoreQueryDataSource(java.lang.String datasetName,
java.lang.String query,
ConnectionDescriptor connectionDescriptor,
WorkbenchContext context) |
DataStoreQueryDataSource(WorkbenchContext context)
Constructor used by the SaveToPostGISPlugIn.
|
Modifier and Type | Method and Description |
---|---|
protected FeatureCollection |
createFeatureCollection() |
protected static java.lang.String |
expandQuery(java.lang.String query,
PlugInContext context) |
Connection |
getConnection()
Creates a new Connection to this DataSource.
|
protected WorkbenchContext |
getWorkbenchContext() |
boolean |
isWritable() |
void |
setWorkbenchContext(WorkbenchContext context) |
getProperties, installCoordinateSystem, isReadable, setProperties
public static final java.lang.String DATASET_NAME_KEY
public static final java.lang.String SQL_QUERY_KEY
public static final java.lang.String CONNECTION_DESCRIPTOR_KEY
public static final java.lang.String PRIMARY_KEY_KEY
public static final java.util.regex.Pattern PATTERN_FENCE
public static final java.util.regex.Pattern PATTERN_SELECTION
public static final java.util.regex.Pattern PATTERN_VIEW
public DataStoreQueryDataSource()
public DataStoreQueryDataSource(WorkbenchContext context)
public DataStoreQueryDataSource(java.lang.String datasetName, java.lang.String query, ConnectionDescriptor connectionDescriptor, WorkbenchContext context)
protected WorkbenchContext getWorkbenchContext()
public boolean isWritable()
isWritable
in class DataSource
public Connection getConnection()
DataSource
getConnection
in class DataSource
protected FeatureCollection createFeatureCollection()
public void setWorkbenchContext(WorkbenchContext context)
setWorkbenchContext
in interface WorkbenchContextReference
protected static java.lang.String expandQuery(java.lang.String query, PlugInContext context)