org.ogf.graap.wsag.wsrf.persistence
Class WsDatabaseWSAG4JPersistence
java.lang.Object
org.ogf.graap.wsag.wsrf.persistence.WsDatabaseWSAG4JPersistence
- All Implemented Interfaces:
- IWsAgreementFactoryHome
public class WsDatabaseWSAG4JPersistence
- extends Object
- implements IWsAgreementFactoryHome
- Author:
- thomasw
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WsDatabaseWSAG4JPersistence
public WsDatabaseWSAG4JPersistence(IAgreementFactoryHome agreementFactoryHome)
- Parameters:
agreementFactoryHome
- the home implementation of the agreement factory
- Throws:
Exception
initialize
public void initialize()
throws Exception
- Throws:
Exception
find
public WsPersistentAgreementFactory find(String agreementFactoryId)
throws Exception
- Finds an agreement factory with a given id.
- Specified by:
find
in interface IWsAgreementFactoryHome
- Parameters:
agreementFactoryId
- ID of the agreement factory.
- Returns:
- The factory.
- Throws:
Exception
- the agreement was not found
list
public WsPersistentAgreementFactory[] list()
throws Exception
- Lists all agreement factories.
- Specified by:
list
in interface IWsAgreementFactoryHome
- Returns:
- List of all agreement factories.
- Throws:
Exception
- the agreements could not be listed, i.e. a database fault occurred
saveAgreementFactories
public void saveAgreementFactories(WsPersistentAgreementFactory[] wsPersistentAgreementFactories)
throws Exception
-
- Specified by:
saveAgreementFactories
in interface IWsAgreementFactoryHome
- Parameters:
wsPersistentAgreementFactories
- List of factories, which should be saved/persisted.
- Throws:
Exception
- the factories could not be saved at the persistence layer, i.e. due to database failure
remove
public void remove(String agreementFactoryId)
throws Exception
- Removes the factory with the given ID.
- Specified by:
remove
in interface IWsAgreementFactoryHome
- Parameters:
agreementFactoryId
- ID of the factory to remove.
- Throws:
Exception
- the factory could not removed at the persistence layer
getNextEPR
public EndpointReferenceType getNextEPR()
- Returns:
- the next EPR for a factory resource
Copyright © 2008-2012. All Rights Reserved.