public abstract class DataSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COORDINATE_SYSTEM_KEY
Coordinate-system property, used for files and other DataSources that
have a single CoordinateSystem
|
static java.lang.String |
FILE_KEY
Filename property, used for file-based DataSources
|
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
abstract Connection |
getConnection()
Creates a new Connection to this DataSource.
|
java.util.Map |
getProperties() |
FeatureCollection |
installCoordinateSystem(FeatureCollection queryResult,
CoordinateSystemRegistry registry) |
boolean |
isReadable() |
boolean |
isWritable() |
void |
setProperties(java.util.Map properties)
Sets properties required to open a DataSource, such as username, password,
filename, coordinate system, etc.
|
public static final java.lang.String FILE_KEY
public static final java.lang.String COORDINATE_SYSTEM_KEY
public void setProperties(java.util.Map properties)
public java.util.Map getProperties()
public abstract Connection getConnection()
public boolean isReadable()
public boolean isWritable()
public FeatureCollection installCoordinateSystem(FeatureCollection queryResult, CoordinateSystemRegistry registry)