Code example for AbstractSingleColumnStandardBasicType

Methods: nullSafeGet

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