AbstractStandardBasicType nullSafeSet - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for AbstractStandardBasicType nullSafeSet method.

This code example shows how to use the following methods:nullSafeSet
            if (value == null) { 
                st.setNull(index, ((AbstractSingleColumnStandardBasicType<?>) type).sqlType());
            else { 
                Object identifier = value instanceof String ? value : identifierMethod.invoke(value, new Object[0]);
                type.nullSafeSet(st, identifier, index, null);
        catch (Exception e) {
            throw new HibernateException("Exception while invoking identifierMethod '" + identifierMethod.getName() + "' of " +
                    "enumeration class '" + enumClass + "'", e);
    public int[] sqlTypes() { 
        return sqlTypes;
    public Object assemble(Serializable cached, Object owner) throws HibernateException {
        return cached;
nullSafeSet Method Overview
Bind a value represented by an instance of the mapped class to the JDBC prepared statement.
See Code Examples for other Hibernate ORM AbstractStandardBasicType Methods: