org.datanucleus.store.rdbms.mapping.ao2postgis
Class GeometryRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
      extended by org.datanucleus.store.rdbms.mapping.ao2postgis.GeometryRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping
Direct Known Subclasses:
EnvelopeRDBMSMapping, GeometryBagRDBMSMapping, LineRDBMSMapping, MultipointRDBMSMapping, PathRDBMSMapping, PointRDBMSMapping, PolygonRDBMSMapping, PolylineRDBMSMapping, RingRDBMSMapping

public abstract class GeometryRDBMSMapping
extends org.datanucleus.store.rdbms.mapping.RDBMSMapping

Mapping for a ESRI Geometry object to PostGIS.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
GeometryRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
GeometryRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.DatastoreField field)
           
 
Method Summary
 byte[] convertToWkb(java.lang.Object geom)
           
 com.esri.arcgis.geometry.IGeometry getFromWkb(byte[] wkb)
           
abstract  java.lang.Object getObject(java.lang.Object rs, int exprIndex)
           
 int getSRID(java.lang.Object geom)
           
 org.datanucleus.store.rdbms.schema.SQLTypeInfo getTypeInfo()
           
 void setObject(java.lang.Object ps, int exprIndex, java.lang.Object value)
           
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, getBoolean, getByte, getChar, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryRDBMSMapping

public GeometryRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                            org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)

GeometryRDBMSMapping

public GeometryRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                            org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                            org.datanucleus.store.mapped.DatastoreField field)
Method Detail

getTypeInfo

public org.datanucleus.store.rdbms.schema.SQLTypeInfo getTypeInfo()
Specified by:
getTypeInfo in class org.datanucleus.store.rdbms.mapping.RDBMSMapping

getObject

public abstract java.lang.Object getObject(java.lang.Object rs,
                                           int exprIndex)
Specified by:
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getObject in class org.datanucleus.store.rdbms.mapping.RDBMSMapping

setObject

public void setObject(java.lang.Object ps,
                      int exprIndex,
                      java.lang.Object value)
Specified by:
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setObject in class org.datanucleus.store.rdbms.mapping.RDBMSMapping

getFromWkb

public com.esri.arcgis.geometry.IGeometry getFromWkb(byte[] wkb)

convertToWkb

public byte[] convertToWkb(java.lang.Object geom)

getSRID

public int getSRID(java.lang.Object geom)


Copyright © 2009. All Rights Reserved.