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.
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHORT_CIRCUIT_INDICATOR
public static final java.io.Serializable SHORT_CIRCUIT_INDICATOR
POST_INSERT_INDICATOR
public static final java.io.Serializable POST_INSERT_INDICATOR
getGeneratedIdentity
public static java.io.Serializable getGeneratedIdentity(java.sql.ResultSet rs,
Type type)
throws java.sql.SQLException,
HibernateException
- Get the generated identifier when using identity columns
- Parameters:
rs
- The result set from which to extract the the generated identity.type
- The expected type mapping for the identity value.
- Returns:
- The generated identity value
- Throws:
java.sql.SQLException
- Can be thrown while accessing the result set
HibernateException
- Indicates a problem reading back a generated identity value.
get
public static java.io.Serializable get(java.sql.ResultSet rs,
Type type)
throws java.sql.SQLException,
IdentifierGenerationException
- Throws:
java.sql.SQLException
IdentifierGenerationException
create
public static IdentifierGenerator create(java.lang.String strategy,
Type type,
java.util.Properties params,
Dialect dialect)
throws MappingException
- Throws:
MappingException
getIdentifierGeneratorClass
public static java.lang.Class getIdentifierGeneratorClass(java.lang.String strategy,
Dialect dialect)
createNumber
public static java.lang.Number createNumber(long value,
java.lang.Class clazz)
throws IdentifierGenerationException
- Throws:
IdentifierGenerationException
Copyright © 2008 Hibernate.org. All Rights Reserved.