|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.mysql.MySQLSpatialRDBMSMapping
public abstract class MySQLSpatialRDBMSMapping
Abstract base class for all MySQL spatial mappings. Contains helper methods that convert WKB (Well Known Binary) data to MySQL spatial objects and vice versa.
| Field Summary | |
|---|---|
protected static int |
SRID_LENGTH
|
| Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr |
| Constructor Summary | |
|---|---|
MySQLSpatialRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
|
|
MySQLSpatialRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
|
|
| Method Summary | |
|---|---|
protected void |
initialize()
|
protected int |
mysqlBinaryToSrid(byte[] mysqlBinary)
Extracts the SRID of a spatial object in MySQL binary format. |
protected byte[] |
mysqlBinaryToWkb(byte[] mysqlBinary)
Converts a spatial object from MySQL binary format to WKB. |
protected byte[] |
wkbToMysqlBinary(byte[] wkb,
int srid)
Converts a spatial object from WKB to MySQL binary format. |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
equals, failureMessage, getBoolean, getByte, getChar, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getObject, getShort, getString, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int SRID_LENGTH
| Constructor Detail |
|---|
public MySQLSpatialRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
public MySQLSpatialRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
| Method Detail |
|---|
protected void initialize()
protected byte[] mysqlBinaryToWkb(byte[] mysqlBinary)
throws java.sql.SQLException
mysqlBinary - A spatial object in MySQL binary format.
java.sql.SQLException - If the object contains invalid data.
protected int mysqlBinaryToSrid(byte[] mysqlBinary)
throws java.sql.SQLException
mysqlBinary - A spatial object in MySQL binary format.
java.sql.SQLException - If the object contains invalid data.
protected byte[] wkbToMysqlBinary(byte[] wkb,
int srid)
throws java.sql.SQLException
wkb - A spatial object in WKB format.srid - The SRID of the spatial object.
java.sql.SQLException - If the object contains invalid data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||