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>
public class SetObjectBinder<T> extends BasicBinder<T>
Support for binding values directly through `setObject` JDBC driver calls.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetObjectBinder(JavaType<T> javaType, JdbcType jdbcType, Class<?> baseClass, int jdbcTypeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
protected Object normalize(T value, WrapperOptions options)
-
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.
-
-