org.hibernate.spatial.dialect
Class AbstractJTSGeometryValueExtractor

java.lang.Object
  extended by org.hibernate.spatial.dialect.AbstractJTSGeometryValueExtractor
All Implemented Interfaces:
org.hibernate.type.descriptor.ValueExtractor<com.vividsolutions.jts.geom.Geometry>
Direct Known Subclasses:
GeoDBValueExtractor, MySQLGeometryValueExtractor, PGGeometryValueExtractor, SDOGeometryValueExtractor, SqlServer2008GeometryValueExtractor

public abstract class AbstractJTSGeometryValueExtractor
extends java.lang.Object
implements org.hibernate.type.descriptor.ValueExtractor<com.vividsolutions.jts.geom.Geometry>


Constructor Summary
AbstractJTSGeometryValueExtractor()
           
 
Method Summary
 com.vividsolutions.jts.geom.Geometry extract(java.sql.ResultSet rs, java.lang.String name, org.hibernate.type.descriptor.WrapperOptions options)
          Extract value from result set
abstract  com.vividsolutions.jts.geom.Geometry toJTS(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJTSGeometryValueExtractor

public AbstractJTSGeometryValueExtractor()
Method Detail

extract

public com.vividsolutions.jts.geom.Geometry extract(java.sql.ResultSet rs,
                                                    java.lang.String name,
                                                    org.hibernate.type.descriptor.WrapperOptions options)
                                             throws java.sql.SQLException
Description copied from interface: org.hibernate.type.descriptor.ValueExtractor
Extract value from result set

Specified by:
extract in interface org.hibernate.type.descriptor.ValueExtractor<com.vividsolutions.jts.geom.Geometry>
Parameters:
rs - The result set from which to extract the value
name - The name by which to extract the value from the result set
options - The options
Returns:
The extracted value
Throws:
java.sql.SQLException - Indicates a JDBC error occurred.

toJTS

public abstract com.vividsolutions.jts.geom.Geometry toJTS(java.lang.Object object)