Package org.hibernate.action

Examples of org.hibernate.action.EntityAction


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

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

    queueSize = ois.readInt();
        LOG.trace("Starting deserialization of [" + queueSize + "] updates entries");
    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.trace("Starting deserialization of [" + queueSize + "] collectionUpdates entries");
    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.trace("Starting deserialization of [" + queueSize + "] collectionRemovals entries");
    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.trace("Starting deserialization of [" + queueSize + "] collectionCreations entries");
    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 );
    }
    return rtn;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.action.EntityAction

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.