org.hibernate.spatial.dialect.oracle
Class SDOGeometryValueBinder
java.lang.Object
org.hibernate.spatial.dialect.oracle.SDOGeometryValueBinder
- All Implemented Interfaces:
- org.hibernate.type.descriptor.ValueBinder<com.vividsolutions.jts.geom.Geometry>
public class SDOGeometryValueBinder
- extends java.lang.Object
- implements org.hibernate.type.descriptor.ValueBinder<com.vividsolutions.jts.geom.Geometry>
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 |
store(org.hibernate.spatial.dialect.oracle.SDOGeometry geom,
java.sql.Connection conn)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDOGeometryValueBinder
public SDOGeometryValueBinder(OracleJDBCTypeFactory typeFactory)
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 statementoptions
- The options.
- Throws:
java.sql.SQLException
- Indicates a JDBC error occurred.
getGeometryFactory
public MGeometryFactory getGeometryFactory()
store
public java.lang.Object store(org.hibernate.spatial.dialect.oracle.SDOGeometry geom,
java.sql.Connection conn)
throws java.sql.SQLException,
FinderException
- Throws:
java.sql.SQLException
FinderException