Top Description Interfaces Classes
[default module]

Package org.hibernate.persister.collection.mutation

Annotations
@Incubating
Imports
org.hibernate.Incubating

Defines support for performing mutation operations against collections.

API Note

The names used here are logical. E.g. "inserting a row" may actually execute an UPDATE statement instead of an INSERT. This is generally delineated based on whether there is a collection table involved or not. In terms of our usual model, this breaks down to the distinction between org.hibernate.persister.collection.BasicCollectionPersister and org.hibernate.persister.collection.OneToManyPersister.

Interface Summary

Modifier and TypeInterface and Description
public interface
public interface
CollectionOperationCoordinator

Base contract for coordination of collection mutation operations

public interface
DeleteRowsCoordinator

Coordinates the deletion of entries removed from the collection -

  • For collections with a collection-table, deletes rows from the collection table.
  • For one-to-many, unsets the collection-key for the matched row in the association table.
public interface
InsertRowsCoordinator

Coordinates the logical insertion of collection entries which are not yet persistent.

public interface
OperationProducer

Callback for producing a JdbcMutationOperation given a collection-table reference

public interface
RemoveCoordinator

Removes the collection:

  • For collections with a collection-table, this will execute a DELETE based on the collection-key
  • For one-to-many collections, this executes an UPDATE to unset the collection-key on the association table
public interface

Class Summary

Modifier and TypeClass and Description
public abstract class
public class
public class
DeleteRowsCoordinatorNoOp

DeleteRowsCoordinator implementation for cases where deletion is not enabled

public class
public class
public class
public class
public class
public class
public class
RemoveCoordinatorStandard

Handles complete removal of a collection by its key

public class
public class
RowMutationOperations

Composition of the MutationOperation references for a collection mapping.

public class
public class
public class
UpdateRowsCoordinatorStandard

UpdateRowsCoordinator implementation for cases with a separate collection table

public class