Class AbstractSingleColumnStandardBasicType<T>

    • Method Detail

      • nullSafeSet

        public final void nullSafeSet​(java.sql.PreparedStatement st,
                                      java.lang.Object value,
                                      int index,
                                      boolean[] settable,
                                      SharedSessionContractImplementor session)
                               throws HibernateException,
                                      java.sql.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
        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
        java.sql.SQLException - An error from the JDBC driver