org.hibernate.spatial.dialect.sqlserver
Class SqlServer2008GeometryValueBinder

java.lang.Object
  extended by org.hibernate.spatial.dialect.sqlserver.SqlServer2008GeometryValueBinder
All Implemented Interfaces:
org.hibernate.type.descriptor.ValueBinder<com.vividsolutions.jts.geom.Geometry>

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


Constructor Summary
SqlServer2008GeometryValueBinder()
           
 
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.
 MGeometryFactory getGeometryFactory()
           
 java.lang.Object toNative(com.vividsolutions.jts.geom.Geometry geom, java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlServer2008GeometryValueBinder

public SqlServer2008GeometryValueBinder()
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.

getGeometryFactory

public MGeometryFactory getGeometryFactory()

toNative

public java.lang.Object toNative(com.vividsolutions.jts.geom.Geometry geom,
                                 java.sql.Connection connection)