org.ogf.graap.wsag.server.persistence.impl
Class SimplePersistentAgreement

java.lang.Object
  extended by org.ogf.graap.wsag.server.persistence.impl.SimplePersistentAgreement
All Implemented Interfaces:
PersistentAgreement

public class SimplePersistentAgreement
extends Object
implements PersistentAgreement

Default implementation of a persistent agreement. Essentially this agreement is not persisted at all. It implements the PersistentAgreement interface and is superseded by the DatabasePersistentAgreement.

Author:
Oliver Waeldrich

Constructor Summary
SimplePersistentAgreement(Agreement agreement, EndpointReferenceType epr)
           
 
Method Summary
 Agreement getAgreement()
          
 EndpointReferenceType getAgreementEPR()
          
 void load()
          Loads the agreement (based on the persisted /information/state, the configuration/etc.).
 void save()
          Saves/persistes an agreement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePersistentAgreement

public SimplePersistentAgreement(Agreement agreement,
                                 EndpointReferenceType epr)
Parameters:
agreement - the agreement instance
epr - the agreement EPR
Method Detail

getAgreement

public Agreement getAgreement()

Specified by:
getAgreement in interface PersistentAgreement
Returns:
The agreement instance itself.

getAgreementEPR

public EndpointReferenceType getAgreementEPR()

Specified by:
getAgreementEPR in interface PersistentAgreement
Returns:
The EPR of the agreement.

load

public void load()
          throws Exception
Loads the agreement (based on the persisted /information/state, the configuration/etc.).

Specified by:
load in interface PersistentAgreement
Throws:
Exception - indicates an exception while loading the agreement from the database

save

public void save()
          throws Exception
Saves/persistes an agreement.

Specified by:
save in interface PersistentAgreement
Throws:
Exception - indicates an exception while saving the agreement to the database


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.