Class SetObjectBinder<T>
java.lang.Object
org.hibernate.type.descriptor.jdbc.BasicBinder<T>
org.hibernate.type.descriptor.jdbc.internal.SetObjectBinder<T>
- All Implemented Interfaces:
Serializable,ValueBinder<T>
Support for binding values directly through `setObject` JDBC driver calls.
- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSetObjectBinder(JavaType<T> javaType, JdbcType jdbcType, Class<?> baseClass, int jdbcTypeCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoBind(CallableStatement st, T value, String name, WrapperOptions options) Perform the binding.protected voiddoBind(PreparedStatement st, T value, int index, WrapperOptions options) Perform the binding.protected voiddoBindNull(CallableStatement st, String name, WrapperOptions options) Perform the null binding.protected voiddoBindNull(PreparedStatement st, int index, WrapperOptions options) Perform the null binding.protected Objectnormalize(T value, WrapperOptions options) Methods inherited from class org.hibernate.type.descriptor.jdbc.BasicBinder
bind, bind, getBindValue, getJavaType, getJdbcType
-
Constructor Details
-
SetObjectBinder
-
-
Method Details
-
doBind
protected void doBind(PreparedStatement st, T value, int index, WrapperOptions options) throws SQLException Description copied from class:BasicBinderPerform the binding. Safe to assume that value is not null.- Specified by:
doBindin classBasicBinder<T>- Parameters:
st- The prepared statementvalue- The value to bind (not null).index- The index at which to bindoptions- The binding options- Throws:
SQLException- Indicates a problem binding to the prepared statement.
-
normalize
-
doBind
protected void doBind(CallableStatement st, T value, String name, WrapperOptions options) throws SQLException Description copied from class:BasicBinderPerform the binding. Safe to assume that value is not null.- Specified by:
doBindin classBasicBinder<T>- Parameters:
st- The CallableStatementvalue- The value to bind (not null).name- The name at which to bindoptions- The binding options- Throws:
SQLException- Indicates a problem binding to the callable statement.
-
doBindNull
protected void doBindNull(PreparedStatement st, int index, WrapperOptions options) throws SQLException Description copied from class:BasicBinderPerform the null binding.- Overrides:
doBindNullin classBasicBinder<T>- Parameters:
st- The prepared statementindex- The index at which to bindoptions- The binding options- Throws:
SQLException- Indicates a problem binding to the prepared statement.
-
doBindNull
protected void doBindNull(CallableStatement st, String name, WrapperOptions options) throws SQLException Description copied from class:BasicBinderPerform the null binding.- Overrides:
doBindNullin classBasicBinder<T>- Parameters:
st- The CallableStatementname- The name at which to bindoptions- The binding options- Throws:
SQLException- Indicates a problem binding to the callable statement.
-