Code example for AbstractStandardBasicType

Methods: nullSafeSet

0
            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;