org.ow2.jasmine.jadort.service.implementation
Class OperationPersistenceManager

java.lang.Object
  extended by org.ow2.jasmine.jadort.service.implementation.OperationPersistenceManager
Direct Known Subclasses:
ActionManager

public class OperationPersistenceManager
extends java.lang.Object

Contains methods related to the management of the JaDOrT operation's state bean.

Author:
Arda Aydin, Malek Chahine, S. Ali Tokmen

Field Summary
protected  javax.persistence.EntityManager em
           
protected  org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean operation
           
 
Constructor Summary
OperationPersistenceManager()
           
 
Method Summary
protected  void mergeOperation()
          This method merges operation onto the DB.
protected  void refreshOperation()
          This method refreshes operation and should be called when entering any method that uses datum that can be modified in another thread than the stateful bean's.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

protected org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean operation

em

protected javax.persistence.EntityManager em
Constructor Detail

OperationPersistenceManager

public OperationPersistenceManager()
Method Detail

refreshOperation

protected void refreshOperation()
This method refreshes operation and should be called when entering any method that uses datum that can be modified in another thread than the stateful bean's. This is the case when taking any serverProgress action: the OperationStateBean gets updated by the JMSReceiver handler in an asynchronous way.


mergeOperation

protected void mergeOperation()
This method merges operation onto the DB.



Copyright © 2009 OW2 Consortium. All Rights Reserved.