Class ForeignKeys.Nullifier
- java.lang.Object
-
- org.hibernate.reactive.engine.impl.ForeignKeys.Nullifier
-
- Enclosing class:
- ForeignKeys
public static class ForeignKeys.Nullifier extends java.lang.Object
Delegate for handling nullifying ("null"ing-out) non-cascaded associations
-
-
Constructor Summary
Constructors Constructor Description Nullifier(java.lang.Object self, boolean isDelete, boolean isEarlyInsert, org.hibernate.engine.spi.SessionImplementor session, org.hibernate.persister.entity.EntityPersister persister)
Constructs a Nullifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.lang.Void>
nullifyTransientReferences(java.lang.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(java.lang.Object self, boolean isDelete, boolean isEarlyInsert, org.hibernate.engine.spi.SessionImplementor session, org.hibernate.persister.entity.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 java.util.concurrent.CompletionStage<java.lang.Void> nullifyTransientReferences(java.lang.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
-
-