|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.server.persistence.impl.PersistentAgreementContainer
@Entity public class PersistentAgreementContainer
Entity class for the agreement persistence. 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 | |
---|---|
PersistentAgreementContainer()
The default constructor is required by the JPA2 environment. |
|
PersistentAgreementContainer(Agreement agreement,
String factoryId)
Creates a new PersistentAgreementContainer for the given agreement and agreement factory id. |
Method Summary | |
---|---|
static PersistentAgreementContainer |
createContainer(Agreement agreement,
String factoryId)
Creates a new persistent container that stores the agreement properties document and the agreement execution context. |
void |
deleteContainer()
Deletes this container instance. |
String |
getAgreementClassName()
|
String |
getAgreementFactoryId()
|
String |
getAgreementId()
|
PersistenceAgreementContextType |
getPersistedAgreementContextType()
|
AgreementStateType |
getState()
|
static PersistentAgreementContainer[] |
listContainers()
Creates a list of all persistent agreement containers. |
static PersistentAgreementContainer[] |
listContainers(String agreementFactoryId)
Lists all persistent agreement containers for a given factory |
static PersistentAgreementContainer |
loadContainer(String agreementId)
Loads a persistent container for the given agreement id and agreement factory id. |
static PersistentAgreementContainer |
loadContainer(String agreementId,
String agreementFactoryId)
Loads a persistent container for the given agreement id and agreement factory id. |
void |
saveContainer()
Save the container instance. |
void |
setAgreementClassName(String agreementClassName)
|
void |
setAgreementFactoryId(String agreementFactoryId)
|
void |
setPersistedAgreementContextType(PersistenceAgreementContextType persistenceAgreementContextType)
|
void |
setState(AgreementStateType state)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersistentAgreementContainer()
public PersistentAgreementContainer(Agreement agreement, String factoryId)
PersistentAgreementContainer
for the given agreement and agreement factory id.
agreement
- the agreement for which the container will be createdfactoryId
- the id of the factory that created the agreementMethod Detail |
---|
public String getAgreementId()
public String getAgreementFactoryId()
public void setAgreementFactoryId(String agreementFactoryId)
agreementFactoryId
- the factory id to setpublic AgreementStateType getState()
public void setState(AgreementStateType state)
state
- the agreement state to setpublic String getAgreementClassName()
public void setAgreementClassName(String agreementClassName)
agreementClassName
- the agreement implementation class name to setpublic PersistenceAgreementContextType getPersistedAgreementContextType()
public void setPersistedAgreementContextType(PersistenceAgreementContextType persistenceAgreementContextType)
persistenceAgreementContextType
- the context of the persistent agreement to setpublic static PersistentAgreementContainer createContainer(Agreement agreement, String factoryId) throws AgreementFactoryException
agreement
- the agreementfactoryId
- the id of the factory that created the agreement
AgreementFactoryException
- indicates that the persistent container could not be createdpublic static PersistentAgreementContainer loadContainer(String agreementId, String agreementFactoryId) throws AgreementFactoryException
agreementId
- the id of the agreement to loadagreementFactoryId
- the id of the factory that created the agreement
AgreementFactoryException
- indicates that the agreement could not be loadedpublic static PersistentAgreementContainer loadContainer(String agreementId) throws AgreementFactoryException
agreementId
- the id of the agreement to load
AgreementFactoryException
- indicates that the agreement with the given id could not be loadedpublic static PersistentAgreementContainer[] listContainers() throws AgreementFactoryException
AgreementFactoryException
- indicates an error while listing the agreement containerspublic static PersistentAgreementContainer[] listContainers(String agreementFactoryId) throws AgreementFactoryException
agreementFactoryId
- the factory id
AgreementFactoryException
- indicates an error while listing the persistent containers for the given factory idpublic void saveContainer() throws AgreementFactoryException
AgreementFactoryException
- indicates an error saving the containerpublic void deleteContainer() throws AgreementFactoryException
AgreementFactoryException
- indicates an error while deleting the containerpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |