Interface InsertRowsCoordinator
-
- All Superinterfaces:
CollectionOperationCoordinator
- All Known Implementing Classes:
InsertRowsCoordinatorNoOp
,InsertRowsCoordinatorStandard
,InsertRowsCoordinatorTablePerSubclass
public interface InsertRowsCoordinator extends CollectionOperationCoordinator
Coordinates the logical insertion of collection entries which are not yet persistent.Insertions are determined by filtering the entries obtained from
PersistentCollection.entries(CollectionPersister)
.A "logical" insertion because the actual SQL used may be an UPDATE in the case of one-to-many mappings to set the foreign-key
- See Also:
CollectionPersister.recreate(org.hibernate.collection.spi.PersistentCollection<?>, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor)
,CollectionPersister.insertRows(org.hibernate.collection.spi.PersistentCollection<?>, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor)
,RowMutationOperations.getInsertRowOperation()
,RowMutationOperations.getInsertRowValues()
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
InsertRowsCoordinator.EntryFilter
A tri-predicate for including / excluding collection entries from iterative processing insideinsertRows(org.hibernate.collection.spi.PersistentCollection<?>, java.lang.Object, org.hibernate.persister.collection.mutation.InsertRowsCoordinator.EntryFilter, org.hibernate.engine.spi.SharedSessionContractImplementor)
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)
Perform the creation.-
Methods inherited from interface org.hibernate.persister.collection.mutation.CollectionOperationCoordinator
getMutationTarget
-
-
-
-
Method Detail
-
insertRows
void insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)
Perform the creation.- API Note:
- `entryChecker` allows simultaneously handling for both "insert" and "recreate" operations based on the checker's inclusion/exclusion of each entry
-
-