public class ScopeDAOImpl extends OpenJPADAO implements ScopeDAO
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DELETE_SCOPES_BY_SCOPE_IDS |
static java.lang.String |
SELECT_SCOPE_IDS_BY_INSTANCE |
static java.lang.String |
SELECT_SCOPE_IDS_BY_PROCESS |
| Constructor and Description |
|---|
ScopeDAOImpl() |
ScopeDAOImpl(ScopeDAOImpl parentScope,
java.lang.String name,
int scopeModelId,
ProcessInstanceDAOImpl pi) |
| Modifier and Type | Method and Description |
|---|---|
PartnerLinkDAO |
createPartnerLink(int plinkModelId,
java.lang.String pLinkName,
java.lang.String myRole,
java.lang.String partnerRole)
Create a storage space for partner link values for the scope.
|
java.util.Collection<ScopeDAO> |
getChildScopes() |
CorrelationSetDAO |
getCorrelationSet(java.lang.String corrSetName)
Get a correlation set by name.
|
java.util.Collection<CorrelationSetDAO> |
getCorrelationSets()
Gets all correlation sets for this scope
|
int |
getModelId()
Get the scope model id from the object
|
java.lang.String |
getName()
Get scope name (from the definition / or auto-generated).
|
ScopeDAO |
getParentScope()
Get the parent scope.
|
PartnerLinkDAO |
getPartnerLink(int plinkModelId)
Get the parnter link storage object associated with this scope instance
and the provided partner link model id.
|
java.util.Collection<PartnerLinkDAO> |
getPartnerLinks()
Get all partner link storage object associated with this scope instance.
|
ProcessInstanceDAO |
getProcessInstance()
Get the process instance to which this scope belongs.
|
java.lang.Long |
getScopeInstanceId()
Get the unique identifier for this scope instance.
|
ScopeStateEnum |
getState()
Get current state of the scope.
|
XmlDataDAO |
getVariable(java.lang.String varName)
Get a variable by name.
|
java.util.Collection<XmlDataDAO> |
getVariables()
Get a colleciton of all the variables belonging to this scope.
|
java.util.List<BpelEvent> |
listEvents()
Get an ordered list of events associated with this scope.
|
void |
setState(ScopeStateEnum state)
Set current state of the scope.
|
batchUpdateByIds, getConn, getEM, getSingleResultpublic static final java.lang.String SELECT_SCOPE_IDS_BY_PROCESS
public static final java.lang.String SELECT_SCOPE_IDS_BY_INSTANCE
public static final java.lang.String DELETE_SCOPES_BY_SCOPE_IDS
public ScopeDAOImpl()
public ScopeDAOImpl(ScopeDAOImpl parentScope, java.lang.String name, int scopeModelId, ProcessInstanceDAOImpl pi)
public PartnerLinkDAO createPartnerLink(int plinkModelId, java.lang.String pLinkName, java.lang.String myRole, java.lang.String partnerRole)
ScopeDAOcreatePartnerLink in interface ScopeDAOplinkModelId - partner link model idpLinkName - partner link namePartnerLinkDAO object representing the created endpoint referencepublic java.util.Collection<ScopeDAO> getChildScopes()
getChildScopes in interface ScopeDAOpublic CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
ScopeDAOgetCorrelationSet in interface ScopeDAOcorrSetName - correlation set namepublic java.util.Collection<CorrelationSetDAO> getCorrelationSets()
ScopeDAOgetCorrelationSets in interface ScopeDAOpublic int getModelId()
ScopeDAOgetModelId in interface ScopeDAOpublic java.lang.String getName()
ScopeDAOpublic ScopeDAO getParentScope()
ScopeDAOgetParentScope in interface ScopeDAOpublic PartnerLinkDAO getPartnerLink(int plinkModelId)
ScopeDAOgetPartnerLink in interface ScopeDAOplinkModelId - partner link model idPartnerLinkDAO object representing the requested endpoint referencepublic java.util.Collection<PartnerLinkDAO> getPartnerLinks()
ScopeDAOgetPartnerLinks in interface ScopeDAOPartnerLinkDAO objectspublic ProcessInstanceDAO getProcessInstance()
ScopeDAOgetProcessInstance in interface ScopeDAOProcessInstanceDAOpublic java.lang.Long getScopeInstanceId()
ScopeDAOgetScopeInstanceId in interface ScopeDAOpublic ScopeStateEnum getState()
ScopeDAOpublic XmlDataDAO getVariable(java.lang.String varName)
ScopeDAOgetVariable in interface ScopeDAOvarName - variable nameXmlDataDAO object representing the requested variablepublic java.util.Collection<XmlDataDAO> getVariables()
ScopeDAOgetVariables in interface ScopeDAOpublic java.util.List<BpelEvent> listEvents()
ScopeDAOlistEvents in interface ScopeDAOpublic void setState(ScopeStateEnum state)
ScopeDAO