|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.demac.process.base.persistence.ProcessPersistenceService
public abstract class ProcessPersistenceService
The ProcessPersistenceService loads a process and it's extensional data from the persistence storage only once. This is needed, because there can be concurrent actions an the same process. If two Threads would both load the process data direct from the storage, they would overwrite the changes of the other Thread.
Constructor Summary | |
---|---|
ProcessPersistenceService()
|
Method Summary | |
---|---|
abstract AmplifiedPackage |
getProcess(int id)
Gets an AmplifiedPackage of the process. |
static ProcessPersistenceService |
getProcessPersistenceService()
|
abstract void |
updateProcess(AmplifiedPackage ap)
Saves the state of the process in the persistence storage |
abstract void |
updateProcess(DataSet ds,
Package pack)
Saves the state of the process in the persistence storage, but leaves the data-extensions untouched |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessPersistenceService()
Method Detail |
---|
public static ProcessPersistenceService getProcessPersistenceService()
null
if the service has not been started yetpublic abstract AmplifiedPackage getProcess(int id) throws ParserException
id
- storage id in the persistence storage
ParserException
public abstract void updateProcess(AmplifiedPackage ap) throws StorageException
ap
- Process
StorageException
public abstract void updateProcess(DataSet ds, Package pack) throws StorageException
ds
- DataSet, where the process is storedpack
- Process
StorageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |