org.hibernate.id
Class IdentifierGeneratorFactory
java.lang.Object
org.hibernate.id.IdentifierGeneratorFactory
public final class IdentifierGeneratorFactory
extends java.lang.Object
Factory and helper methods for IdentifierGenerator framework.
POST_INSERT_INDICATOR
public static final Serializable POST_INSERT_INDICATOR
SHORT_CIRCUIT_INDICATOR
public static final Serializable SHORT_CIRCUIT_INDICATOR
getGeneratedIdentity
public static Serializable getGeneratedIdentity(ResultSet rs,
Type type)
throws SQLException,
HibernateException
Get the generated identifier when using identity columns
rs
- The result set from which to extract the the generated identity.type
- The expected type mapping for the identity value.
- The generated identity value
getIdentifierGeneratorClass
public static Class getIdentifierGeneratorClass(String strategy,
Dialect dialect)