Package org.hibernate.action.internal

Examples of org.hibernate.action.internal.OrphanRemovalAction


    if ( isOrphanRemovalBeforeUpdates ) {
      // TODO: The removeOrphan concept is a temporary "hack" for HHH-6484.  This should be removed once action/task
      // ordering is improved.
      session.getActionQueue().addAction(
          new OrphanRemovalAction(
              entityEntry.getId(),
              deletedState,
              version,
              entity,
              persister,
View Full Code Here


    if (isOrphanRemovalBeforeUpdates) {
      // TODO: The removeOrphan concept is a temporary "hack" for HHH-6484.  This should be removed once action/task
      // ordering is improved.
      session.getActionQueue().addAction(
          new OrphanRemovalAction(
              entityEntry.getId(),
              deletedState,
              version,
              entity,
              persister,
View Full Code Here

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] orphanRemoval entries", queueSize );
    rtn.orphanRemovals = new ArrayList<OrphanRemovalAction>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      OrphanRemovalAction action = ( OrphanRemovalAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.orphanRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] updates entries", queueSize );
    rtn.updates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      EntityAction action = ( EntityAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.updates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionUpdates entries", queueSize );
    rtn.collectionUpdates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = (CollectionAction) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionUpdates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionRemovals entries", queueSize );
    rtn.collectionRemovals = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionCreations entries", queueSize );
    rtn.collectionCreations = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionCreations.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionQueuedOps entries", queueSize );
    rtn.collectionQueuedOps = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionQueuedOps.add( action );
    }
    return rtn;
  }
View Full Code Here

    if (isOrphanRemovalBeforeUpdates) {
      // TODO: The removeOrphan concept is a temporary "hack" for HHH-6484.  This should be removed once action/task
      // ordering is improved.
      session.getActionQueue().addAction(
          new OrphanRemovalAction(
              entityEntry.getId(),
              deletedState,
              version,
              entity,
              persister,
View Full Code Here

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] orphanRemoval entries", queueSize );
    rtn.orphanRemovals = new ArrayList<OrphanRemovalAction>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      OrphanRemovalAction action = ( OrphanRemovalAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.orphanRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] updates entries", queueSize );
    rtn.updates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      EntityAction action = ( EntityAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.updates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionUpdates entries", queueSize );
    rtn.collectionUpdates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = (CollectionAction) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionUpdates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionRemovals entries", queueSize );
    rtn.collectionRemovals = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionCreations entries", queueSize );
    rtn.collectionCreations = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionCreations.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionQueuedOps entries", queueSize );
    rtn.collectionQueuedOps = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionQueuedOps.add( action );
    }
    return rtn;
  }
View Full Code Here

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] orphanRemoval entries", queueSize );
    rtn.orphanRemovals = new ArrayList<OrphanRemovalAction>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      OrphanRemovalAction action = ( OrphanRemovalAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.orphanRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] updates entries", queueSize );
    rtn.updates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      EntityAction action = ( EntityAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.updates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionUpdates entries", queueSize );
    rtn.collectionUpdates = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = (CollectionAction) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionUpdates.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionRemovals entries", queueSize );
    rtn.collectionRemovals = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionRemovals.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionCreations entries", queueSize );
    rtn.collectionCreations = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionCreations.add( action );
    }

    queueSize = ois.readInt();
    LOG.tracev( "Starting deserialization of [{0}] collectionQueuedOps entries", queueSize );
    rtn.collectionQueuedOps = new ArrayList<Executable>( queueSize );
    for ( int i = 0; i < queueSize; i++ ) {
      CollectionAction action = ( CollectionAction ) ois.readObject();
      action.afterDeserialize( session );
      rtn.collectionQueuedOps.add( action );
    }
    return rtn;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.action.internal.OrphanRemovalAction

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.