Code example for AbstractStandardBasicType

Methods: get

0
    public Class<? extends Enum> returnedClass() {
        return enumClass;
    } 
 
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
        Object identifier = type.get(rs, names[0], null);
        if (rs.wasNull()) {
            return null; 
        } 
 
        try { 
            return valueOfMethod.invoke(enumClass, new Object[] {identifier});
        } 
        catch (Exception e) {
            throw new HibernateException("Exception while invoking valueOf method '" + valueOfMethod.getName() + "' of " +
                    "enumeration class '" + enumClass + "'", e);
        } 
    } 
 
    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
Stop searching for code, let great code find you!  Add Codota to your java IDE