Package org.hibernate.engine.internal
Class ForeignKeys.Nullifier
- java.lang.Object
-
- org.hibernate.engine.internal.ForeignKeys.Nullifier
-
- Enclosing class:
- ForeignKeys
public static class ForeignKeys.Nullifier extends Object
Delegate for handling nullifying ("null"ing-out) non-cascaded associations
-
-
Constructor Summary
Constructors Constructor Description Nullifier(Object self, boolean isDelete, boolean isEarlyInsert, SharedSessionContractImplementor session, EntityPersister persister)
Constructs a Nullifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
nullifyTransientReferences(Object[] values)
Nullify all references to entities that have not yet been inserted in the database, where the foreign key points toward that entity.
-
-
-
Constructor Detail
-
Nullifier
public Nullifier(Object self, boolean isDelete, boolean isEarlyInsert, SharedSessionContractImplementor session, EntityPersister persister)
Constructs a Nullifier- Parameters:
self
- The entityisDelete
- Are we in the middle of a delete action?isEarlyInsert
- Is this an early insert (INSERT generated id strategy)?session
- The sessionpersister
- The EntityPersister forself
-
-
Method Detail
-
nullifyTransientReferences
public void nullifyTransientReferences(Object[] values)
Nullify all references to entities that have not yet been inserted in the database, where the foreign key points toward that entity.- Parameters:
values
- The entity attribute values
-
-