org.apache.ode.dao.jpa
Class ScopeDAOImpl

java.lang.Object
  extended by org.apache.ode.dao.jpa.OpenJPADAO
      extended by org.apache.ode.dao.jpa.ScopeDAOImpl
All Implemented Interfaces:
org.apache.ode.bpel.dao.ScopeDAO

public class ScopeDAOImpl
extends OpenJPADAO
implements org.apache.ode.bpel.dao.ScopeDAO


Field Summary
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 Summary
ScopeDAOImpl()
           
ScopeDAOImpl(ScopeDAOImpl parentScope, java.lang.String name, int scopeModelId, ProcessInstanceDAOImpl pi)
           
 
Method Summary
 org.apache.ode.bpel.dao.PartnerLinkDAO createPartnerLink(int plinkModelId, java.lang.String pLinkName, java.lang.String myRole, java.lang.String partnerRole)
           
 java.util.Collection<org.apache.ode.bpel.dao.ScopeDAO> getChildScopes()
           
 org.apache.ode.bpel.dao.CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
           
 java.util.Collection<org.apache.ode.bpel.dao.CorrelationSetDAO> getCorrelationSets()
           
 int getModelId()
           
 java.lang.String getName()
           
 org.apache.ode.bpel.dao.ScopeDAO getParentScope()
           
 org.apache.ode.bpel.dao.PartnerLinkDAO getPartnerLink(int plinkModelId)
           
 java.util.Collection<org.apache.ode.bpel.dao.PartnerLinkDAO> getPartnerLinks()
           
 org.apache.ode.bpel.dao.ProcessInstanceDAO getProcessInstance()
           
 java.lang.Long getScopeInstanceId()
           
 org.apache.ode.bpel.dao.ScopeStateEnum getState()
           
 org.apache.ode.bpel.dao.XmlDataDAO getVariable(java.lang.String varName)
           
 java.util.Collection<org.apache.ode.bpel.dao.XmlDataDAO> getVariables()
           
 java.util.List<org.apache.ode.bpel.evt.BpelEvent> listEvents()
           
 void setState(org.apache.ode.bpel.dao.ScopeStateEnum state)
           
 
Methods inherited from class org.apache.ode.dao.jpa.OpenJPADAO
batchUpdateByIds, getConn, getEM, getSingleResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_SCOPE_IDS_BY_PROCESS

public static final java.lang.String SELECT_SCOPE_IDS_BY_PROCESS
See Also:
Constant Field Values

SELECT_SCOPE_IDS_BY_INSTANCE

public static final java.lang.String SELECT_SCOPE_IDS_BY_INSTANCE
See Also:
Constant Field Values

DELETE_SCOPES_BY_SCOPE_IDS

public static final java.lang.String DELETE_SCOPES_BY_SCOPE_IDS
See Also:
Constant Field Values
Constructor Detail

ScopeDAOImpl

public ScopeDAOImpl()

ScopeDAOImpl

public ScopeDAOImpl(ScopeDAOImpl parentScope,
                    java.lang.String name,
                    int scopeModelId,
                    ProcessInstanceDAOImpl pi)
Method Detail

createPartnerLink

public org.apache.ode.bpel.dao.PartnerLinkDAO createPartnerLink(int plinkModelId,
                                                                java.lang.String pLinkName,
                                                                java.lang.String myRole,
                                                                java.lang.String partnerRole)
Specified by:
createPartnerLink in interface org.apache.ode.bpel.dao.ScopeDAO

getChildScopes

public java.util.Collection<org.apache.ode.bpel.dao.ScopeDAO> getChildScopes()
Specified by:
getChildScopes in interface org.apache.ode.bpel.dao.ScopeDAO

getCorrelationSet

public org.apache.ode.bpel.dao.CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
Specified by:
getCorrelationSet in interface org.apache.ode.bpel.dao.ScopeDAO

getCorrelationSets

public java.util.Collection<org.apache.ode.bpel.dao.CorrelationSetDAO> getCorrelationSets()
Specified by:
getCorrelationSets in interface org.apache.ode.bpel.dao.ScopeDAO

getModelId

public int getModelId()
Specified by:
getModelId in interface org.apache.ode.bpel.dao.ScopeDAO

getName

public java.lang.String getName()
Specified by:
getName in interface org.apache.ode.bpel.dao.ScopeDAO

getParentScope

public org.apache.ode.bpel.dao.ScopeDAO getParentScope()
Specified by:
getParentScope in interface org.apache.ode.bpel.dao.ScopeDAO

getPartnerLink

public org.apache.ode.bpel.dao.PartnerLinkDAO getPartnerLink(int plinkModelId)
Specified by:
getPartnerLink in interface org.apache.ode.bpel.dao.ScopeDAO

getPartnerLinks

public java.util.Collection<org.apache.ode.bpel.dao.PartnerLinkDAO> getPartnerLinks()
Specified by:
getPartnerLinks in interface org.apache.ode.bpel.dao.ScopeDAO

getProcessInstance

public org.apache.ode.bpel.dao.ProcessInstanceDAO getProcessInstance()
Specified by:
getProcessInstance in interface org.apache.ode.bpel.dao.ScopeDAO

getScopeInstanceId

public java.lang.Long getScopeInstanceId()
Specified by:
getScopeInstanceId in interface org.apache.ode.bpel.dao.ScopeDAO

getState

public org.apache.ode.bpel.dao.ScopeStateEnum getState()
Specified by:
getState in interface org.apache.ode.bpel.dao.ScopeDAO

getVariable

public org.apache.ode.bpel.dao.XmlDataDAO getVariable(java.lang.String varName)
Specified by:
getVariable in interface org.apache.ode.bpel.dao.ScopeDAO

getVariables

public java.util.Collection<org.apache.ode.bpel.dao.XmlDataDAO> getVariables()
Specified by:
getVariables in interface org.apache.ode.bpel.dao.ScopeDAO

listEvents

public java.util.List<org.apache.ode.bpel.evt.BpelEvent> listEvents()
Specified by:
listEvents in interface org.apache.ode.bpel.dao.ScopeDAO

setState

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