|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.wsrf.persistence.AgreementEprContainer
@Entity public class AgreementEprContainer
Entity class for the agreement persistence. It is used to build the relationship between an agreement and an EPR. It defines the entity fields (the tables' columns), the named-queries used to access the stored data, and the corresponding getter/setter methods.
Constructor Summary | |
---|---|
AgreementEprContainer()
The default constructor is required by the JPA2 environment. |
|
AgreementEprContainer(String agreementId,
EndpointReferenceType epr)
Used to create an instance of this entity ba hand. |
Method Summary | |
---|---|
static EndpointReferenceType |
findEPRForAgreement(String agreementId)
Finds the EPR for the agreement with the given id. |
String |
getAgreementFactoryId()
|
String |
getAgreementId()
|
EndpointReferenceType |
getEpr()
Returns the EPR of the persisted resourse. |
String |
getEprAddress()
|
void |
setAgreementFactoryId(String agreementFactoryId)
|
void |
setAgreementId(String agreementId)
|
void |
setEpr(EndpointReferenceType epr)
|
void |
setEprAddress(String eprAddress)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgreementEprContainer()
public AgreementEprContainer(String agreementId, EndpointReferenceType epr)
agreementId
- ID of the agreement.epr
- EPR of the agreement.Method Detail |
---|
public String getAgreementId()
public void setAgreementId(String agreementId)
agreementId
- the agreement id to setpublic EndpointReferenceType getEpr() throws PersistedResourceException
PersistedResourceException
- indicates that the persisted EPR could not be de-serializedpublic void setEpr(EndpointReferenceType epr)
epr
- the agreement endpoint reference to setpublic String getAgreementFactoryId()
public void setAgreementFactoryId(String agreementFactoryId)
agreementFactoryId
- the agreement factory id to setpublic String getEprAddress()
public void setEprAddress(String eprAddress)
eprAddress
- the address of the EPR to setpublic static EndpointReferenceType findEPRForAgreement(String agreementId) throws Exception
agreementId
- identifies the agreement for which the EPR is resolved
Exception
- an exception if the agreement was not found or an other error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |