Code example for AbstractSingleColumnStandardBasicType

Methods: sqlType

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