|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.wsrf.WSAG4JPersistenceFacade
public class WSAG4JPersistenceFacade
Field Summary | |
---|---|
protected List<PersistentAgreementFactory> |
factoriesOL
An ordered list with the available agreement factories. |
protected Map<String,PersistentAgreementFactory> |
persistentFactories
A map that contains the available persistent agreement factory which are identified by their factory id. |
Constructor Summary | |
---|---|
WSAG4JPersistenceFacade(WsagEngine[] engines)
Creates a new facade for the given WSAG4J engines. |
Method Summary | |
---|---|
PersistentAgreementFactory |
find(String factoryId)
looks up a factory with the given id. |
WsagEngine[] |
getEngines()
Returns the WSAG4J engine instances used by this facade. |
void |
initialize()
|
PersistentAgreementFactory[] |
list()
Lists all agreement factories. |
void |
remove(String factoryId)
Removes the factory with the given ID. |
void |
save()
Saves all factories. |
void |
saveAgreementFactories(PersistentAgreementFactory[] factories)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,PersistentAgreementFactory> persistentFactories
protected List<PersistentAgreementFactory> factoriesOL
Constructor Detail |
---|
public WSAG4JPersistenceFacade(WsagEngine[] engines)
engines
- the available WSAG4J enginesMethod Detail |
---|
public void initialize()
IAgreementFactoryHome#initialize()
public PersistentAgreementFactory find(String factoryId) throws Exception
find
in interface IAgreementFactoryHome
factoryId
- the id of the factory to find
Exception
- an error occurred while looking up the factory.IAgreementFactoryHome.find(String)
public PersistentAgreementFactory[] list() throws Exception
IAgreementFactoryHome
list
in interface IAgreementFactoryHome
Exception
- indicates an error while generating the factory listIAgreementFactoryHome.list()
public void remove(String factoryId) throws Exception
IAgreementFactoryHome
remove
in interface IAgreementFactoryHome
factoryId
- removes the factory with the given id from the persistence layer
Exception
- an error occurred while removing the factoryIAgreementFactoryHome.remove(java.lang.String)
public void save() throws Exception
Exception
- indicates an error while saving the factoriespublic void saveAgreementFactories(PersistentAgreementFactory[] factories) throws Exception
saveAgreementFactories
in interface IAgreementFactoryHome
factories
- the factories to save
Exception
- indicates an error while saving the factoriesIAgreementFactoryHome.saveAgreementFactories(org.ogf.graap.wsag.server.persistence.PersistentAgreementFactory[])
public WsagEngine[] getEngines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |