Code example for NullableType

Methods: sqlType

0
    { 
        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);
        } 
    }