|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.io.datasource.DataSource
public abstract class DataSource
A file, database, web service, or other source of data. To be savable to a project file, a DataSource must not be an anonymous class (because the class name is recorded in the project file) and it must have a parameterless constructor (so it can be reconstructed by simply being instantiated and having #setProperties called).
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DataSource()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_KEY
public static final java.lang.String COORDINATE_SYSTEM_KEY
| Constructor Detail |
|---|
public DataSource()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||