Package org.hibernate.type.descriptor
Interface ValueBinder<X>
-
- All Known Implementing Classes:
BasicBinder
public interface ValueBinder<X>Contract for binding values to aPreparedStatement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(java.sql.CallableStatement st, X value, java.lang.String name, WrapperOptions options)Bind a value to a CallableStatement.voidbind(java.sql.PreparedStatement st, X value, int index, WrapperOptions options)Bind a value to a prepared statement.
-
-
-
Method Detail
-
bind
void bind(java.sql.PreparedStatement st, X value, int index, WrapperOptions options) throws java.sql.SQLExceptionBind a value to a prepared statement.- 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.
-
bind
void bind(java.sql.CallableStatement st, X value, java.lang.String name, WrapperOptions options) throws java.sql.SQLExceptionBind a value to a CallableStatement.- Parameters:
st- The prepared statement to which to bind the value.value- The value to bind.name- The name to bind the value within the prepared statementoptions- The options.- Throws:
java.sql.SQLException- Indicates a JDBC error occurred.
-
-