|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.Datastore org.deegree.io.datastore.sql.AbstractSQLDatastore org.deegree.io.datastore.sql.generic.GenericSQLDatastore
public class GenericSQLDatastore
Datastore
implementation for any SQL database that can be accessed through a jdbc connection (even the
odbc-jdbc bridge is supported) and that supports the storing of BLOBs.
The spatial information is assumed to be stored in a BLOB field as a serialized deegree geometry. It also will be assumed that a spatial index exists and that it has been created using deegree's quadtree api.
org.deegree.io.quadtree
Field Summary |
---|
Fields inherited from class org.deegree.io.datastore.sql.AbstractSQLDatastore |
---|
pool, SRS_UNDEFINED |
Constructor Summary | |
---|---|
GenericSQLDatastore()
|
Method Summary | |
---|---|
Geometry |
convertDBToDeegreeGeometry(java.lang.Object value,
CoordinateSystem targetCS,
java.sql.Connection conn)
Converts a database specific geometry Object from the ResultSet to a deegree
Geometry . |
java.lang.Object |
convertDeegreeToDBGeometry(Geometry geometry,
int nativeSRSCode,
java.sql.Connection conn)
Converts a deegree Geometry to a database specific geometry Object . |
protected GenericSQLTransaction |
createTransaction()
Creates a new SQLTransaction that provides transactional access. |
WhereBuilder |
getWhereBuilder(MappedFeatureType[] rootFts,
java.lang.String[] aliases,
Filter filter,
SortProperty[] sortProperties,
TableAliasGenerator aliasGenerator,
VirtualContentProvider vcProvider)
Overwrite this to return a database specific (spatial capable) WhereBuilder implementation. |
protected FeatureCollection |
performQuery(Query query,
MappedFeatureType[] rootFts,
java.sql.Connection conn)
Performs a Query against the datastore. |
Methods inherited from class org.deegree.io.datastore.sql.AbstractSQLDatastore |
---|
acquireConnection, acquireTransaction, appendGeometryColumnGet, buildSRSTransformCall, buildSRSTransformCall, close, configure, convertFromDBType, determineFidsToLock, getAnnotationParser, getMaxValue, getNativeSRSCode, getSequenceCurrValPlusOffset, getSequenceNextVal, performQuery, performQuery, prepareStatement, releaseConnection, releaseTransaction |
Methods inherited from class org.deegree.io.datastore.Datastore |
---|
bindSchema, canTransformTo, getConfiguration, getFeatureType, getSchemas, transformQuery, transformResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericSQLDatastore()
Method Detail |
---|
public WhereBuilder getWhereBuilder(MappedFeatureType[] rootFts, java.lang.String[] aliases, Filter filter, SortProperty[] sortProperties, TableAliasGenerator aliasGenerator, VirtualContentProvider vcProvider) throws DatastoreException
AbstractSQLDatastore
WhereBuilder
implementation.
getWhereBuilder
in class AbstractSQLDatastore
rootFts
- involved (requested) feature typesaliases
- aliases for the feature types, may be nullfilter
- filter that restricts the matched featuressortProperties
- sort criteria for the result, may be null or emptyaliasGenerator
- used to generate unique table aliases
WhereBuilder
implementation suitable for this datastore
DatastoreException
protected FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts, java.sql.Connection conn) throws DatastoreException
AbstractSQLDatastore
Query
against the datastore.
Note that this method is responsible for the coordinate system tranformation of the input Query
and the
output FeatureCollection
.
performQuery
in class AbstractSQLDatastore
query
- query to be performedrootFts
- the root feature types that are queried, more than one type means that the types are joinedconn
- JDBC connection to use
DatastoreException
public Geometry convertDBToDeegreeGeometry(java.lang.Object value, CoordinateSystem targetCS, java.sql.Connection conn) throws java.sql.SQLException
AbstractSQLDatastore
Object
from the ResultSet
to a deegree
Geometry
.
convertDBToDeegreeGeometry
in class AbstractSQLDatastore
java.sql.SQLException
public java.lang.Object convertDeegreeToDBGeometry(Geometry geometry, int nativeSRSCode, java.sql.Connection conn) throws DatastoreException
AbstractSQLDatastore
Geometry
to a database specific geometry Object
.
convertDeegreeToDBGeometry
in class AbstractSQLDatastore
DatastoreException
protected GenericSQLTransaction createTransaction() throws DatastoreException
AbstractSQLDatastore
SQLTransaction
that provides transactional access.
createTransaction
in class AbstractSQLDatastore
SQLTransaction
instance
DatastoreException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org