Class AbstractSingleColumnStandardBasicType<T>

    • Constructor Detail

      • AbstractSingleColumnStandardBasicType

        public AbstractSingleColumnStandardBasicType​(JdbcType jdbcType,
                                                     JavaType<T> javaTypeDescriptor)
    • Method Detail

      • nullSafeSet

        public final void nullSafeSet​(PreparedStatement st,
                                      Object value,
                                      int index,
                                      boolean[] settable,
                                      SharedSessionContractImplementor session)
                               throws HibernateException,
                                      SQLException
        Description copied from interface: Type
        Bind a value represented by an instance of the mapped class to the JDBC prepared statement, ignoring some columns as dictated by the 'settable' parameter. Implementors should handle the possibility of null values. A multi-column type should bind parameters starting from index.
        Specified by:
        nullSafeSet in interface Type
        Overrides:
        nullSafeSet in class AbstractStandardBasicType<T>
        Parameters:
        st - The JDBC prepared statement to which to bind
        value - the object to write
        index - starting parameter bind index
        settable - an array indicating which columns to bind/ignore
        session - The originating session
        Throws:
        HibernateException - An error from Hibernate
        SQLException - An error from the JDBC driver