Interface SingleColumnType<T>

    • Method Detail

      • sqlType

        int sqlType()
      • nullSafeGet

        T nullSafeGet​(java.sql.ResultSet rs,
                      java.lang.String name,
                      SharedSessionContractImplementor session)
               throws HibernateException,
                      java.sql.SQLException
        Get a column value from a result set by name.
        Parameters:
        rs - The result set from which to extract the value.
        name - The name of the value to extract.
        session - The session from which the request originates
        Returns:
        The extracted value.
        Throws:
        HibernateException - Generally some form of mismatch error.
        java.sql.SQLException - Indicates problem making the JDBC call(s).
      • get

        java.lang.Object get​(java.sql.ResultSet rs,
                             java.lang.String name,
                             SharedSessionContractImplementor session)
                      throws HibernateException,
                             java.sql.SQLException
        Get a column value from a result set, without worrying about the possibility of null values.
        Parameters:
        rs - The result set from which to extract the value.
        name - The name of the value to extract.
        session - The session from which the request originates
        Returns:
        The extracted value.
        Throws:
        HibernateException - Generally some form of mismatch error.
        java.sql.SQLException - Indicates problem making the JDBC call(s).