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:
  • Constructor Details

    • SetObjectBinder

      public SetObjectBinder(JavaType<T> javaType, JdbcType jdbcType, Class<?> baseClass, int jdbcTypeCode)
  • 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 class BasicBinder<T>
      Parameters:
      st - The prepared statement
      value - The value to bind (not null).
      index - The index at which to bind
      options - 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: BasicBinder
      Perform the binding. Safe to assume that value is not null.
      Specified by:
      doBind in class BasicBinder<T>
      Parameters:
      st - The CallableStatement
      value - The value to bind (not null).
      name - The name at which to bind
      options - 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 class BasicBinder<T>
      Parameters:
      st - The prepared statement
      index - The index at which to bind
      options - 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 class BasicBinder<T>
      Parameters:
      st - The CallableStatement
      name - The name at which to bind
      options - The binding options
      Throws:
      SQLException - Indicates a problem binding to the callable statement.