org.deegree.io.datastore.sql.mysql
Class MySQLDatastore
java.lang.Object
org.deegree.io.datastore.Datastore
org.deegree.io.datastore.sql.AbstractSQLDatastore
org.deegree.io.datastore.sql.mysql.MySQLDatastore
public class MySQLDatastore
- extends AbstractSQLDatastore
Datastore
implementation for MySQL spatial databases.
- Version:
- $Revision: 12552 $, $Date: 2008-06-26 12:01:34 +0200 (Do, 26 Jun 2008) $
- Author:
- Markus Schneider , last edited by: $Author: aschmitz $
Method Summary |
void |
appendGeometryColumnGet(StatementBuffer query,
java.lang.String tableAlias,
java.lang.String column)
|
Geometry |
convertDBToDeegreeGeometry(java.lang.Object value,
CoordinateSystem targetCS,
java.sql.Connection conn)
Converts a MySQL specific geometry Object (a byte[] containing WKB) from the ResultSet
to a deegree Geometry . |
byte[] |
convertDeegreeToDBGeometry(Geometry geometry,
int targetSRS,
java.sql.Connection conn)
Converts a deegree Geometry to a MySQL specific geometry object (a byte[] containing WKB). |
MySQLWhereBuilder |
getWhereBuilder(MappedFeatureType[] rootFts,
java.lang.String[] aliases,
Filter filter,
SortProperty[] sortProperties,
TableAliasGenerator aliasGenerator,
VirtualContentProvider vcProvider)
Returns a specific WhereBuilder implementation for MySQL. |
Methods inherited from class org.deegree.io.datastore.sql.AbstractSQLDatastore |
acquireConnection, acquireTransaction, buildSRSTransformCall, buildSRSTransformCall, close, configure, convertFromDBType, createTransaction, determineFidsToLock, getAnnotationParser, getMaxValue, getNativeSRSCode, getSequenceCurrValPlusOffset, getSequenceNextVal, performQuery, performQuery, performQuery, prepareStatement, releaseConnection, releaseTransaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLDatastore
public MySQLDatastore()
getWhereBuilder
public MySQLWhereBuilder getWhereBuilder(MappedFeatureType[] rootFts,
java.lang.String[] aliases,
Filter filter,
SortProperty[] sortProperties,
TableAliasGenerator aliasGenerator,
VirtualContentProvider vcProvider)
throws DatastoreException
- Returns a specific
WhereBuilder
implementation for MySQL.
- Overrides:
getWhereBuilder
in class AbstractSQLDatastore
- Parameters:
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 aliasesvcProvider
-
- Returns:
WhereBuilder
implementation for MySQL
- Throws:
DatastoreException
convertDBToDeegreeGeometry
public Geometry convertDBToDeegreeGeometry(java.lang.Object value,
CoordinateSystem targetCS,
java.sql.Connection conn)
throws java.sql.SQLException
- Converts a MySQL specific geometry
Object
(a byte[] containing WKB) from the ResultSet
to a deegree Geometry
.
- Specified by:
convertDBToDeegreeGeometry
in class AbstractSQLDatastore
- Parameters:
value
- targetCS
- conn
-
- Returns:
- corresponding deegree geometry
- Throws:
java.sql.SQLException
convertDeegreeToDBGeometry
public byte[] convertDeegreeToDBGeometry(Geometry geometry,
int targetSRS,
java.sql.Connection conn)
throws DatastoreException
- Converts a deegree
Geometry
to a MySQL specific geometry object (a byte[] containing WKB).
- Specified by:
convertDeegreeToDBGeometry
in class AbstractSQLDatastore
- Parameters:
geometry
- targetSRS
- conn
-
- Returns:
- corresponding PostGIS specific geometry object
- Throws:
DatastoreException
appendGeometryColumnGet
public void appendGeometryColumnGet(StatementBuffer query,
java.lang.String tableAlias,
java.lang.String column)
- Overrides:
appendGeometryColumnGet
in class AbstractSQLDatastore
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org