Class IdentifierGeneratorHelper
java.lang.Object
org.hibernate.id.IdentifierGeneratorHelper
Factory and helper methods for
IdentifierGenerator framework.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SerializableDeprecated, for removal: This API element is subject to removal in a future version.This is not an elegant way to do anything -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindLong(PreparedStatement preparedStatement, int position, long value) static longextractLong(ResultSet resultSet, long defaultValue) static ObjectgetForeignId(String entityName, String propertyName, SharedSessionContractImplementor sessionImplementor, Object object) getNamingStrategy(Properties params, ServiceRegistry serviceRegistry) static NumbermakeIntegralValue(long value, Class<?> integralType)
-
Field Details
-
SHORT_CIRCUIT_INDICATOR
Deprecated, for removal: This API element is subject to removal in a future version.This is not an elegant way to do anythingMarker object returned fromIdentifierGenerator.generate(SharedSessionContractImplementor, Object)to indicate that we should short-circuit any continued generated id checking. Currently, this is only used in the case of the foreign generator as a way to signal that we should use the associated entity's id value.
-
-
Method Details
-
makeIntegralValue
-
extractLong
- Throws:
SQLException
-
bindLong
public static void bindLong(PreparedStatement preparedStatement, int position, long value) throws SQLException - Throws:
SQLException
-
getNamingStrategy
public static ImplicitDatabaseObjectNamingStrategy getNamingStrategy(Properties params, ServiceRegistry serviceRegistry)
-