org.hibernate.spatial.dialect
Class AbstractJTSGeometryValueBinder

java.lang.Object
  extended by org.hibernate.spatial.dialect.AbstractJTSGeometryValueBinder
All Implemented Interfaces:
org.hibernate.type.descriptor.ValueBinder<com.vividsolutions.jts.geom.Geometry>
Direct Known Subclasses:
GeoDBValueBinder, MySQLGeometryValueBinder, PGGeometryValueBinder

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


Constructor Summary
AbstractJTSGeometryValueBinder()
           
 
Method Summary
 void bind(java.sql.PreparedStatement st, com.vividsolutions.jts.geom.Geometry value, int index, org.hibernate.type.descriptor.WrapperOptions options)
          Bind a value to a prepared statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJTSGeometryValueBinder

public AbstractJTSGeometryValueBinder()
Method Detail

bind

public void bind(java.sql.PreparedStatement st,
                 com.vividsolutions.jts.geom.Geometry value,
                 int index,
                 org.hibernate.type.descriptor.WrapperOptions options)
          throws java.sql.SQLException
Description copied from interface: org.hibernate.type.descriptor.ValueBinder
Bind a value to a prepared statement.

Specified by:
bind in interface org.hibernate.type.descriptor.ValueBinder<com.vividsolutions.jts.geom.Geometry>
Parameters:
st - The prepared statement to which to bind the value.
value - The value to bind.
index - The position at which to bind the value within the prepared statement
options - The options.
Throws:
java.sql.SQLException - Indicates a JDBC error occurred.