public class ScopeDaoImpl extends HibernateDao implements ScopeDAO
ScopeDAO
implementation._hobj, _sm
Constructor and Description |
---|
ScopeDaoImpl(SessionManager sm,
HScope scope) |
Modifier and Type | Method and Description |
---|---|
PartnerLinkDAO |
createPartnerLink(int modelId,
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.Set<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 plinkId)
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.
|
deleteByColumn, deleteByIds, equals, getDHandle, getHibernateObj, getId, getSession, hashCode, update
public ScopeDaoImpl(SessionManager sm, HScope scope)
public CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
ScopeDAO
getCorrelationSet
in interface ScopeDAO
corrSetName
- correlation set nameScopeDAO.getCorrelationSet(java.lang.String)
public ScopeDAO getParentScope()
ScopeDAO
getParentScope
in interface ScopeDAO
ScopeDAO.getParentScope()
public ProcessInstanceDAO getProcessInstance()
ScopeDAO
getProcessInstance
in interface ScopeDAO
ProcessInstanceDAO
ScopeDAO.getProcessInstance()
public void setState(ScopeStateEnum state)
ScopeDAO
setState
in interface ScopeDAO
state
- new scope stateScopeDAO.setState(org.apache.ode.bpel.dao.ScopeStateEnum)
public ScopeStateEnum getState()
ScopeDAO
getState
in interface ScopeDAO
ScopeDAO.getState()
public java.lang.String getName()
ScopeDAO
getName
in interface ScopeDAO
ScopeDAO.getName()
public XmlDataDAO getVariable(java.lang.String varName)
ScopeDAO
getVariable
in interface ScopeDAO
varName
- variable nameXmlDataDAO
object representing the requested variableScopeDAO.getVariable(java.lang.String)
public PartnerLinkDAO createPartnerLink(int modelId, java.lang.String pLinkName, java.lang.String myRole, java.lang.String partnerRole)
ScopeDAO
createPartnerLink
in interface ScopeDAO
modelId
- partner link model idpLinkName
- partner link namePartnerLinkDAO
object representing the created endpoint referencepublic PartnerLinkDAO getPartnerLink(int plinkId)
ScopeDAO
getPartnerLink
in interface ScopeDAO
plinkId
- partner link model idPartnerLinkDAO
object representing the requested endpoint referencepublic java.util.Collection<PartnerLinkDAO> getPartnerLinks()
ScopeDAO
getPartnerLinks
in interface ScopeDAO
PartnerLinkDAO
objectspublic java.lang.Long getScopeInstanceId()
ScopeDAO
getScopeInstanceId
in interface ScopeDAO
ScopeDAO.getScopeInstanceId()
public int getModelId()
ScopeDAO
getModelId
in interface ScopeDAO
ScopeDAO.getModelId()
public java.util.Set<CorrelationSetDAO> getCorrelationSets()
ScopeDAO
getCorrelationSets
in interface ScopeDAO
public java.util.Collection<ScopeDAO> getChildScopes()
getChildScopes
in interface ScopeDAO
public java.util.Collection<XmlDataDAO> getVariables()
ScopeDAO
getVariables
in interface ScopeDAO
public java.util.List<BpelEvent> listEvents()
ScopeDAO
listEvents
in interface ScopeDAO