Top Description Inners Fields Constructors Methods
org.hibernate.id

public final Class IdentifierGeneratorHelper

extends Object
Class Inheritance
Annotations
@Internal
Imports
org.hibernate.HibernateException, .Internal, org.hibernate.dialect.Dialect, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.util.StringHelper, org.hibernate.metamodel.mapping.JdbcMapping, .SqlTypedMapping, org.hibernate.metamodel.model.domain.NavigableRole, org.hibernate.type.descriptor.WrapperOptions, java.io.Serializable, java.math.BigDecimal, .BigInteger, .RoundingMode, java.sql.PreparedStatement, .ResultSet, .ResultSetMetaData, .SQLException, java.util.Objects

Factory and helper methods for IdentifierGenerator framework.
Authors
Gavin King, Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger
public static final Serializable
POST_INSERT_INDICATOR

Marker object returned from IdentifierGenerator#generate to indicate that the entity's identifier will be generated as part of the database insertion.

public static final Serializable
SHORT_CIRCUIT_INDICATOR

Marker object returned from IdentifierGenerator#generate to indicate that we should short-circuit any continued generated id checking.

Constructor Summary

AccessConstructor and Description
private
IdentifierGeneratorHelper()

Disallow instantiation of IdentifierGeneratorHelper.

Method Summary

Modifier and TypeMethod and Description
private static int
private static boolean
equal(String keyColumnName, String alias, Dialect dialect)

public static BigDecimal
public static BigInteger
public static long
public static Object

Returns:

The generated identity value
getGeneratedIdentity
(String path, ResultSet
The result set from which to extract the generated identity
resultSet
,
PostInsertIdentityPersister persister, WrapperOptions
The session
wrapperOptions
)

Get the generated identifier when using identity columns

public static IntegralDataTypeHolder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait