|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAgreementHome
Specification of an agreement home implementation. Implementations are used to retrieve (list and find) agreements and to remove existing agreements.
A global instance of the agreement home implementations stored in the
WsagEngine instance. It can be used to access all agreements known to
the wsag4j-instance.
The default implementation of an agreement home is
DatabaseAgreementHome.
| Method Summary | |
|---|---|
PersistentAgreement |
find(String agreementId)
Finds an agreement with a given ID. |
PersistentAgreement[] |
list()
Lists all agreements. |
PersistentAgreement[] |
list(String agreementFactoryId)
Deprecated. the agreement home is implemented by a specific agreement factory instance |
void |
remove(String agreementId)
Removes the agreement with the given id. |
| Method Detail |
|---|
PersistentAgreement find(String agreementId)
throws PersistedResourceException
agreementId - the ID of the agreement
PersistedResourceException - indicates an exception while loading the agreement from the database
PersistentAgreement[] list()
throws Exception
Exception - indicates an exception while loading the agreements from the database
PersistentAgreement[] list(String agreementFactoryId)
throws Exception
agreementFactoryId - the id of the factory for which the agreements should be listed
Exception - indicates an exception while loading the agreements from the database
void remove(String agreementId)
throws PersistedResourceException
agreementId - the ID of the agreement, which should be removed
PersistedResourceException - indicates an exception while removing the agreement from the database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||