|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.persistence.impl.DatabaseAgreementHome
public class DatabaseAgreementHome
Facade for all agreement factories known to the WSAG4J engine.
Database-based implementation of an agreement home. This implementation encapsulates the retrieval of persisted agreements, the re-building of persisted agreements and the deletion of persisted agreements in case of an agreement removal.
Persisted agreements are encapsulated and stored in PersistentAgreementContainer
objects. These
objects store all agreement-related information and are used to re-build the original agreement. To access
the information stored in such a container, DatabasePersistentAgreement
instances are used. This
class is able to provide a transparent access and processing of the required information.
Constructor Summary | |
---|---|
DatabaseAgreementHome(IAgreementFactoryHome factoryHome)
|
Method Summary | |
---|---|
PersistentAgreement |
find(String agreementId)
Finds an agreement with a given ID. |
PersistentAgreement[] |
list()
Lists all agreements. |
PersistentAgreement[] |
list(String agreementFactoryId)
Lists all agreements for one specific agreement factory. |
void |
remove(String agreementId)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseAgreementHome(IAgreementFactoryHome factoryHome)
factoryHome
- the the factory home for resolving and removing the agreement instances.Method Detail |
---|
public PersistentAgreement find(String agreementId) throws PersistedResourceException
find
in interface IAgreementHome
agreementId
- the ID of the agreement
PersistedResourceException
- indicates an exception while loading the agreement from the databasepublic PersistentAgreement[] list() throws Exception
list
in interface IAgreementHome
Exception
- indicates an exception while loading the agreements from the databasepublic PersistentAgreement[] list(String agreementFactoryId) throws Exception
list
in interface IAgreementHome
agreementFactoryId
- the id of the factory for which the agreements should be listed
Exception
- indicates an exception while loading the agreements from the databasepublic void remove(String agreementId) throws PersistedResourceException
remove
in interface IAgreementHome
agreementId
- the ID of the agreement, which should be removed
PersistedResourceException
- indicates an exception while removing the agreement from the databaseIAgreementHome.remove(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |