public abstract class MySQLSpatialRDBMSMapping
extends org.datanucleus.store.rdbms.mapping.datastore.AbstractDatastoreMapping
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SRID_LENGTH |
| Constructor and Description |
|---|
MySQLSpatialRDBMSMapping(org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping mapping,
org.datanucleus.store.rdbms.RDBMSStoreManager storeMgr,
org.datanucleus.store.rdbms.table.Column col) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, 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, setStringprotected static final int SRID_LENGTH
public MySQLSpatialRDBMSMapping(org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping mapping,
org.datanucleus.store.rdbms.RDBMSStoreManager storeMgr,
org.datanucleus.store.rdbms.table.Column col)
protected void initialize()
protected byte[] mysqlBinaryToWkb(byte[] mysqlBinary)
throws SQLException
mysqlBinary - A spatial object in MySQL binary format.SQLException - If the object contains invalid data.protected int mysqlBinaryToSrid(byte[] mysqlBinary)
throws SQLException
mysqlBinary - A spatial object in MySQL binary format.SQLException - If the object contains invalid data.protected byte[] wkbToMysqlBinary(byte[] wkb,
int srid)
throws SQLException
wkb - A spatial object in WKB format.srid - The SRID of the spatial object.SQLException - If the object contains invalid data.Copyright © 2015. All rights reserved.