Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 entity
        isDelete - Are we in the middle of a delete action?
        isEarlyInsert - Is this an early insert (INSERT generated id strategy)?
        session - The session
        persister - The EntityPersister for self
    • 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