Package org.hibernate.engine.internal

Examples of org.hibernate.engine.internal.Nullability


   */
  protected final void nullifyTransientReferencesIfNotAlready() {
    if ( ! areTransientReferencesNullified ) {
      new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() )
          .nullifyTransientReferences( getState(), getPersister().getPropertyTypes() );
      new Nullability( getSession() ).checkNullability( getState(), getPersister(), false );
      areTransientReferencesNullified = true;
    }
  }
View Full Code Here


    cascadeBeforeDelete( session, persister, entity, entityEntry, transientEntities );

    new ForeignKeys.Nullifier( entity, true, false, session )
        .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes );
    new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, true );
    persistenceContext.getNullifiableEntityKeys().add( key );

    if ( isOrphanRemovalBeforeUpdates ) {
      // TODO: The removeOrphan concept is a temporary "hack" for HHH-6484.  This should be removed once action/task
      // ordering is improved.
View Full Code Here

      dirtyProperties = ArrayHelper.EMPTY_INT_ARRAY;
    }

    // check nullability but do not doAfterTransactionCompletion command execute
    // we'll use scheduled updates for that.
    new Nullability( session ).checkNullability( values, persister, true );

    // schedule the update
    // note that we intentionally do _not_ pass in currentPersistentState!
    session.getActionQueue().addAction(
        new EntityUpdateAction(
View Full Code Here

      dirtyProperties = ArrayHelper.EMPTY_INT_ARRAY;
    }

    // check nullability but do not doAfterTransactionCompletion command execute
    // we'll use scheduled updates for that.
    new Nullability(session).checkNullability( values, persister, true );

    // schedule the update
    // note that we intentionally do _not_ pass in currentPersistentState!
    session.getActionQueue().addAction(
        new EntityUpdateAction(
View Full Code Here

        source
    );

    new ForeignKeys.Nullifier( entity, false, useIdentityColumn, source )
        .nullifyTransientReferences( values, types );
    new Nullability( source ).checkNullability( values, persister, false );

    if ( useIdentityColumn ) {
      EntityIdentityInsertAction insert = new EntityIdentityInsertAction(
          values, entity, persister, source, shouldDelayIdentityInserts
      );
View Full Code Here

    cascadeBeforeDelete( session, persister, entity, entityEntry, transientEntities );

    new ForeignKeys.Nullifier( entity, true, false, session )
        .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes );
    new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, true );
    persistenceContext.getNullifiableEntityKeys().add( key );

    // Ensures that containing deletions happen before sub-deletions
    session.getActionQueue().addAction(
        new EntityDeleteAction(
View Full Code Here

      dirtyProperties = ArrayHelper.EMPTY_INT_ARRAY;
    }

    // check nullability but do not doAfterTransactionCompletion command execute
    // we'll use scheduled updates for that.
    new Nullability(session).checkNullability( values, persister, true );

    // schedule the update
    // note that we intentionally do _not_ pass in currentPersistentState!
    session.getActionQueue().addAction(
        new EntityUpdateAction(
View Full Code Here

    cascadeBeforeDelete( session, persister, entity, entityEntry, transientEntities );

    new ForeignKeys.Nullifier( entity, true, false, session )
        .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes );
    new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, true );
    persistenceContext.getNullifiableEntityKeys().add( key );

    if (isOrphanRemovalBeforeUpdates) {
      // TODO: The removeOrphan concept is a temporary "hack" for HHH-6484.  This should be removed once action/task
      // ordering is improved.
View Full Code Here

      dirtyProperties = ArrayHelper.EMPTY_INT_ARRAY;
    }

    // check nullability but do not doAfterTransactionCompletion command execute
    // we'll use scheduled updates for that.
    new Nullability(session).checkNullability( values, persister, true );

    // schedule the update
    // note that we intentionally do _not_ pass in currentPersistentState!
    session.getActionQueue().addAction(
        new EntityUpdateAction(
View Full Code Here

   */
  protected final void nullifyTransientReferencesIfNotAlready() {
    if ( ! areTransientReferencesNullified ) {
      new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() )
          .nullifyTransientReferences( getState(), getPersister().getPropertyTypes() );
      new Nullability( getSession() ).checkNullability( getState(), getPersister(), false );
      areTransientReferencesNullified = true;
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.internal.Nullability

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.