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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSetObjectBinder
(JavaType<T> javaType, JdbcType jdbcType, Class<?> baseClass, int jdbcTypeCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBind
(CallableStatement st, T value, String name, WrapperOptions options) Perform the binding.protected void
doBind
(PreparedStatement st, T value, int index, WrapperOptions options) Perform the binding.protected void
doBindNull
(CallableStatement st, String name, WrapperOptions options) Perform the null binding.protected void
doBindNull
(PreparedStatement st, int index, WrapperOptions options) Perform the null binding.protected Object
normalize
(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:BasicBinder
Perform the binding. Safe to assume that value is not null.- Specified by:
doBind
in 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:BasicBinder
Perform the binding. Safe to assume that value is not null.- Specified by:
doBind
in 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:BasicBinder
Perform the null binding.- Overrides:
doBindNull
in 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:BasicBinder
Perform the null binding.- Overrides:
doBindNull
in 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.
-