org.apache.ode.daohib.bpel
Class ScopeDaoImpl

java.lang.Object
  extended by org.apache.ode.daohib.bpel.HibernateDao
      extended by org.apache.ode.daohib.bpel.ScopeDaoImpl
All Implemented Interfaces:
ScopeDAO

public class ScopeDaoImpl
extends HibernateDao
implements ScopeDAO

Hibernate-based ScopeDAO implementation.


Field Summary
 
Fields inherited from class org.apache.ode.daohib.bpel.HibernateDao
_hobj, _sm
 
Constructor Summary
ScopeDaoImpl(SessionManager sm, HScope scope)
           
 
Method Summary
 void addCorrelationSet()
           
 PartnerLinkDAO createPartnerLink(int modelId, java.lang.String pLinkName, java.lang.String myRole, java.lang.String partnerRole)
           
 java.util.Collection<ScopeDAO> getChildScopes()
           
 java.util.Set<CorrelationSetDAO> getCorrelationDTOs()
           
 CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
           
 java.util.Set<CorrelationSetDAO> getCorrelationSets()
           
 int getModelId()
           
 java.lang.String getName()
           
 ScopeDAO getParentScope()
           
 PartnerLinkDAO getPartnerLink(int plinkId)
           
 java.util.Collection<PartnerLinkDAO> getPartnerLinks()
           
 ProcessInstanceDAO getProcessInstance()
           
 java.lang.Long getScopeInstanceId()
           
 ScopeStateEnum getState()
           
 XmlDataDAO getVariable(java.lang.String varName)
           
 java.util.Collection<XmlDataDAO> getVariables()
           
 java.util.Set<XmlDataDAO> getVariablesDTOs()
           
 boolean isChildrenExist()
           
 boolean isParentExist()
           
 java.util.List<BpelEvent> listEvents()
           
 void setChildScopes(java.util.Collection<ScopeDAO> childrens)
           
 void setCorrelationSets(java.util.List<CorrelationSetDAO> correlationSet)
           
 void setState(ScopeStateEnum state)
           
 void setVariables(java.util.List<XmlDataDAO> variables)
           
 
Methods inherited from class org.apache.ode.daohib.bpel.HibernateDao
deleteByColumn, deleteByIds, equals, getDHandle, getHibernateObj, getId, getSession, hashCode, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeDaoImpl

public ScopeDaoImpl(SessionManager sm,
                    HScope scope)
Method Detail

getCorrelationSet

public CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
Specified by:
getCorrelationSet in interface ScopeDAO
See Also:
ScopeDAO.getCorrelationSet(java.lang.String)

getParentScope

public ScopeDAO getParentScope()
Specified by:
getParentScope in interface ScopeDAO
See Also:
ScopeDAO.getParentScope()

getProcessInstance

public ProcessInstanceDAO getProcessInstance()
Specified by:
getProcessInstance in interface ScopeDAO
See Also:
ScopeDAO.getProcessInstance()

setState

public void setState(ScopeStateEnum state)
Specified by:
setState in interface ScopeDAO
See Also:
ScopeDAO.setState(org.apache.ode.bpel.dao.ScopeStateEnum)

getState

public ScopeStateEnum getState()
Specified by:
getState in interface ScopeDAO
See Also:
ScopeDAO.getState()

getName

public java.lang.String getName()
Specified by:
getName in interface ScopeDAO
See Also:
ScopeDAO.getName()

getVariable

public XmlDataDAO getVariable(java.lang.String varName)
Specified by:
getVariable in interface ScopeDAO
See Also:
ScopeDAO.getVariable(java.lang.String)

createPartnerLink

public PartnerLinkDAO createPartnerLink(int modelId,
                                        java.lang.String pLinkName,
                                        java.lang.String myRole,
                                        java.lang.String partnerRole)
Specified by:
createPartnerLink in interface ScopeDAO

getPartnerLink

public PartnerLinkDAO getPartnerLink(int plinkId)
Specified by:
getPartnerLink in interface ScopeDAO

getPartnerLinks

public java.util.Collection<PartnerLinkDAO> getPartnerLinks()
Specified by:
getPartnerLinks in interface ScopeDAO

isParentExist

public boolean isParentExist()
Specified by:
isParentExist in interface ScopeDAO

getCorrelationDTOs

public java.util.Set<CorrelationSetDAO> getCorrelationDTOs()
Specified by:
getCorrelationDTOs in interface ScopeDAO

getVariablesDTOs

public java.util.Set<XmlDataDAO> getVariablesDTOs()
Specified by:
getVariablesDTOs in interface ScopeDAO

addCorrelationSet

public void addCorrelationSet()
Specified by:
addCorrelationSet in interface ScopeDAO

getScopeInstanceId

public java.lang.Long getScopeInstanceId()
Specified by:
getScopeInstanceId in interface ScopeDAO
See Also:
ScopeDAO.getScopeInstanceId()

getModelId

public int getModelId()
Specified by:
getModelId in interface ScopeDAO
See Also:
ScopeDAO.getModelId()

getCorrelationSets

public java.util.Set<CorrelationSetDAO> getCorrelationSets()
Specified by:
getCorrelationSets in interface ScopeDAO

setCorrelationSets

public void setCorrelationSets(java.util.List<CorrelationSetDAO> correlationSet)
Specified by:
setCorrelationSets in interface ScopeDAO

getChildScopes

public java.util.Collection<ScopeDAO> getChildScopes()
Specified by:
getChildScopes in interface ScopeDAO

setChildScopes

public void setChildScopes(java.util.Collection<ScopeDAO> childrens)
Specified by:
setChildScopes in interface ScopeDAO

isChildrenExist

public boolean isChildrenExist()
Specified by:
isChildrenExist in interface ScopeDAO

getVariables

public java.util.Collection<XmlDataDAO> getVariables()
Specified by:
getVariables in interface ScopeDAO

setVariables

public void setVariables(java.util.List<XmlDataDAO> variables)
Specified by:
setVariables in interface ScopeDAO

listEvents

public java.util.List<BpelEvent> listEvents()
Specified by:
listEvents in interface ScopeDAO


Copyright © 2015 WSO2. All Rights Reserved.