Uses of Interface
org.hibernate.generator.values.GeneratedValues
Package
Description
Package defining support for executing mutation SQL statements produced by an
entity persister or
collection
persister.
Contains a framework of strategies for efficient retrieval of
database-generated values.
Contains a framework of strategies for retrieving database-generated ids.
This package abstracts persistence mechanisms for entities.
Defines support for performing mutation operations originating
from persistence-context events.
-
Uses of GeneratedValues in org.hibernate.engine.jdbc.mutation
Modifier and TypeMethodDescriptionMutationExecutor.execute
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session) Perform the execution, returning any generated value.MutationExecutor.execute
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session, Batch.StaleStateMapper staleStateMapper) -
Uses of GeneratedValues in org.hibernate.engine.jdbc.mutation.internal
Modifier and TypeMethodDescriptionfinal GeneratedValues
AbstractMutationExecutor.execute
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session) Templated implementation of execution asAbstractMutationExecutor.performNonBatchedOperations(java.lang.Object, org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker, org.hibernate.engine.jdbc.mutation.OperationResultChecker, org.hibernate.engine.spi.SharedSessionContractImplementor)
AbstractMutationExecutor.performSelfExecutingOperations(org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker, org.hibernate.engine.spi.SharedSessionContractImplementor)
AbstractMutationExecutor.performBatchedOperations(org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker, org.hibernate.engine.jdbc.batch.spi.Batch.StaleStateMapper)
final GeneratedValues
AbstractMutationExecutor.execute
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session, Batch.StaleStateMapper staleStateMapper) protected GeneratedValues
AbstractMutationExecutor.performNonBatchedOperations
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session) protected GeneratedValues
MutationExecutorSingleNonBatched.performNonBatchedOperations
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session) protected GeneratedValues
MutationExecutorStandard.performNonBatchedOperations
(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session) -
Uses of GeneratedValues in org.hibernate.generator.values
Modifier and TypeMethodDescriptionGeneratedValuesMutationDelegate.performMutation
(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session) Perform themutation
and extract the database-generated values. -
Uses of GeneratedValues in org.hibernate.generator.values.internal
Modifier and TypeClassDescriptionclass
Standard implementation forGeneratedValues
usingIdentityHashMap
.Modifier and TypeMethodDescriptionstatic GeneratedValues
GeneratedValuesHelper.getGeneratedValues
(ResultSet resultSet, EntityPersister persister, EventType timing, WrapperOptions wrapperOptions) Reads thegenerated values
for the specifiedResultSet
. -
Uses of GeneratedValues in org.hibernate.id.insert
Modifier and TypeMethodDescriptionprotected abstract GeneratedValues
AbstractReturningDelegate.executeAndExtractReturning
(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) GetGeneratedKeysDelegate.executeAndExtractReturning
(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) protected GeneratedValues
InsertReturningDelegate.executeAndExtractReturning
(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) SybaseJConnGetGeneratedKeysDelegate.executeAndExtractReturning
(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) final GeneratedValues
AbstractReturningDelegate.performInsertReturning
(String sql, SharedSessionContractImplementor session, Binder binder) final GeneratedValues
AbstractSelectingDelegate.performInsertReturning
(String sql, SharedSessionContractImplementor session, Binder binder) InsertGeneratedIdentifierDelegate.performInsertReturning
(String insertSQL, SharedSessionContractImplementor session, Binder binder) Deprecated, for removal: This API element is subject to removal in a future version.Execute the giveninsert
statement and return the generated key value.AbstractReturningDelegate.performMutation
(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session) AbstractSelectingDelegate.performMutation
(PreparedStatementDetails statementDetails, JdbcValueBindings jdbcValueBindings, Object entity, SharedSessionContractImplementor session) GetGeneratedKeysDelegate.performMutation
(PreparedStatementDetails statementDetails, JdbcValueBindings jdbcValueBindings, Object entity, SharedSessionContractImplementor session) -
Uses of GeneratedValues in org.hibernate.metamodel.mapping.internal
Modifier and TypeMethodDescriptionvoid
GeneratedValuesProcessor.processGeneratedValues
(Object entity, Object id, Object[] state, GeneratedValues generatedValues, SharedSessionContractImplementor session) Obtain the generated values, and populate the snapshot and the fields of the entity instance. -
Uses of GeneratedValues in org.hibernate.persister.entity
Modifier and TypeMethodDescriptionvoid
AbstractEntityPersister.processInsertGeneratedProperties
(Object id, Object entity, Object[] state, GeneratedValues generatedValues, SharedSessionContractImplementor session) default void
EntityPersister.processInsertGeneratedProperties
(Object id, Object entity, Object[] state, GeneratedValues generatedValues, SharedSessionContractImplementor session) Retrieve the values of any insert generated properties through the providedGeneratedValues
or, when that's not available, by selecting them back from the database, injecting these generated values into the given entity as well as writing this state to thePersistenceContext
.void
AbstractEntityPersister.processUpdateGeneratedProperties
(Object id, Object entity, Object[] state, GeneratedValues generatedValues, SharedSessionContractImplementor session) void
EntityPersister.processUpdateGeneratedProperties
(Object id, Object entity, Object[] state, GeneratedValues generatedValues, SharedSessionContractImplementor session) Retrieve the values of any update generated properties through the providedGeneratedValues
or, when that's not available, by selecting them back from the database, injecting these generated values into the given entity as well as writing this state to thePersistenceContext
. -
Uses of GeneratedValues in org.hibernate.persister.entity.mutation
Modifier and TypeMethodDescriptionInsertCoordinatorStandard.coordinateInsert
(Object id, Object[] values, Object entity, SharedSessionContractImplementor session) Perform the insert(s).protected GeneratedValues
InsertCoordinatorStandard.doDynamicInserts
(Object id, Object[] values, Object object, SharedSessionContractImplementor session, boolean forceIdentifierBinding) protected GeneratedValues
UpdateCoordinatorStandard.doDynamicUpdate
(Object entity, Object id, Object rowId, Object[] values, Object[] oldValues, UpdateCoordinatorStandard.InclusionChecker dirtinessChecker, UpdateCoordinatorStandard.UpdateValuesAnalysisImpl valuesAnalysis, SharedSessionContractImplementor session) protected GeneratedValues
InsertCoordinatorStandard.doStaticInserts
(Object id, Object[] values, Object object, SharedSessionContractImplementor session) protected GeneratedValues
UpdateCoordinatorStandard.doStaticUpdate
(Object entity, Object id, Object rowId, Object[] values, Object[] oldValues, UpdateCoordinatorStandard.UpdateValuesAnalysisImpl valuesAnalysis, SharedSessionContractImplementor session) protected GeneratedValues
UpdateCoordinatorStandard.doVersionUpdate
(Object entity, Object id, Object version, Object oldVersion, boolean batching, SharedSessionContractImplementor session) protected GeneratedValues
UpdateCoordinatorStandard.doVersionUpdate
(Object entity, Object id, Object version, Object oldVersion, SharedSessionContractImplementor session) @Nullable GeneratedValues
InsertCoordinator.insert
(Object entity, Object[] values, SharedSessionContractImplementor session) Persist an entity instance with a generated identifier.@Nullable GeneratedValues
InsertCoordinator.insert
(Object entity, Object id, Object[] values, SharedSessionContractImplementor session) Persist an entity instance using the provided identifier.@Nullable GeneratedValues
InsertCoordinatorStandard.insert
(Object entity, Object[] values, SharedSessionContractImplementor session) @Nullable GeneratedValues
InsertCoordinatorStandard.insert
(Object entity, Object id, Object[] values, SharedSessionContractImplementor session) protected GeneratedValues
UpdateCoordinatorStandard.performUpdate
(Object entity, Object id, Object rowId, Object[] values, Object oldVersion, Object[] incomingOldValues, boolean hasDirtyCollection, SharedSessionContractImplementor session, EntityVersionMapping versionMapping, int[] dirtyAttributeIndexes, boolean[] attributeUpdateability, boolean forceDynamicUpdate) @Nullable GeneratedValues
UpdateCoordinator.update
(Object entity, Object id, Object rowId, Object[] values, Object oldVersion, Object[] incomingOldValues, int[] dirtyAttributeIndexes, boolean hasDirtyCollection, SharedSessionContractImplementor session) Update a persistent instance.UpdateCoordinatorNoOp.update
(Object entity, Object id, Object rowId, Object[] values, Object oldVersion, Object[] incomingOldValues, int[] dirtyAttributeIndexes, boolean hasDirtyCollection, SharedSessionContractImplementor session) UpdateCoordinatorStandard.update
(Object entity, Object id, Object rowId, Object[] values, Object oldVersion, Object[] incomingOldValues, int[] incomingDirtyAttributeIndexes, boolean hasDirtyCollection, SharedSessionContractImplementor session) Modifier and TypeMethodDescriptionprotected Supplier<GeneratedValues>
UpdateCoordinatorStandard.handlePotentialImplicitForcedVersionIncrement
(Object entity, Object id, Object[] values, Object oldVersion, int[] incomingDirtyAttributeIndexes, SharedSessionContractImplementor session, EntityVersionMapping versionMapping)