Interface InsertCoordinator
-
- All Superinterfaces:
MutationCoordinator
- All Known Implementing Classes:
InsertCoordinatorStandard
public interface InsertCoordinator extends MutationCoordinator
Coordinates the inserting of an entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable GeneratedValues
insert(Object entity, Object[] values, SharedSessionContractImplementor session)
Persist an entity instance with a generated identifier.@Nullable GeneratedValues
insert(Object entity, Object id, Object[] values, SharedSessionContractImplementor session)
Persist an entity instance using the provided identifier.-
Methods inherited from interface org.hibernate.persister.entity.mutation.MutationCoordinator
getStaticMutationOperationGroup
-
-
-
-
Method Detail
-
insert
@Nullable GeneratedValues insert(Object entity, Object[] values, SharedSessionContractImplementor session)
Persist an entity instance with a generated identifier.- Returns:
- The generated values if any,
null
otherwise.
-
insert
@Nullable GeneratedValues insert(Object entity, Object id, Object[] values, SharedSessionContractImplementor session)
Persist an entity instance using the provided identifier.- Returns:
- The generated values if any,
null
otherwise.
-
-