Code example for NullableType

Methods: sqlType

0
    } 
 
    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
        try { 
            if (value == null) { 
                st.setNull(index, type.sqlType());
            } else { 
                Object identifier = identifierMethod.invoke(value, new Object[0]);
                type.set(st, identifier, index);
            } 
        } catch (Exception e) {
            throw new HibernateException("Exception while invoking identifierMethod '" + identifierMethod.getName() + "' of " +
                    "enumeration class '" + enumClass + "'", e);
        } 
    } 
 
    public int[] sqlTypes() { 
        return sqlTypes;
    }