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:
ScopeDAO

@Entity
public class ScopeDAOImpl
extends OpenJPADAO
implements ScopeDAO

Author:
dhanukar

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
 void addCorrelationSet()
           
 PartnerLinkDAO createPartnerLink(int plinkModelId, java.lang.String pLinkName, java.lang.String myRole, java.lang.String partnerRole)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Collection<ScopeDAO> getChildScopes()
           
 java.util.Set<CorrelationSetDAO> getCorrelationDTOs()
          These are transient objects
 CorrelationSetDAO getCorrelationSet(java.lang.String corrSetName)
           
 java.util.Collection<CorrelationSetDAO> getCorrelationSets()
           
 java.util.Set<EventDAOImpl> getEvents()
          These are transient objects
 int getModelId()
           
 java.lang.String getName()
           
 ScopeDAO getParentScope()
           
 PartnerLinkDAO getPartnerLink(int plinkModelId)
           
 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()
          These are transient objects
 int hashCode()
           
 boolean isChildrenExist()
           
 boolean isParentExist()
          Use only when load parent eagerly
 java.util.List<BpelEvent> listEvents()
           
 void setChildScopes(java.util.Collection<ScopeDAO> childrens)
           
 void setCorrelationDTOs(java.util.Set<CorrelationSetDAO> correlationDTOs)
           
 void setCorrelationSets(java.util.List<CorrelationSetDAO> correlationSet)
           
 void setState(ScopeStateEnum state)
           
 void setVariables(java.util.List<XmlDataDAO> variables)
           
 void setVariablesDTOs(java.util.Set<XmlDataDAO> variablesDTOs)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.ode.dao.jpa.OpenJPADAO
batchUpdateByIds, getConn, getEM, getSingleResult
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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 PartnerLinkDAO createPartnerLink(int plinkModelId,
                                        java.lang.String pLinkName,
                                        java.lang.String myRole,
                                        java.lang.String partnerRole)
Specified by:
createPartnerLink 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

getCorrelationSet

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

getCorrelationSets

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

setCorrelationSets

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

getModelId

public int getModelId()
Specified by:
getModelId in interface ScopeDAO

getName

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

getParentScope

public ScopeDAO getParentScope()
Specified by:
getParentScope in interface ScopeDAO

getPartnerLink

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

getPartnerLinks

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

getProcessInstance

public ProcessInstanceDAO getProcessInstance()
Specified by:
getProcessInstance in interface ScopeDAO

getScopeInstanceId

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

getState

public ScopeStateEnum getState()
Specified by:
getState in interface ScopeDAO

getVariable

public XmlDataDAO getVariable(java.lang.String varName)
Specified by:
getVariable 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

setState

public void setState(ScopeStateEnum state)
Specified by:
setState in interface ScopeDAO

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isParentExist

public boolean isParentExist()
Use only when load parent eagerly

Specified by:
isParentExist in interface ScopeDAO
Returns:

getEvents

public java.util.Set<EventDAOImpl> getEvents()
These are transient objects

Returns:

getCorrelationDTOs

public java.util.Set<CorrelationSetDAO> getCorrelationDTOs()
These are transient objects

Specified by:
getCorrelationDTOs in interface ScopeDAO
Returns:

setCorrelationDTOs

public void setCorrelationDTOs(java.util.Set<CorrelationSetDAO> correlationDTOs)

getVariablesDTOs

public java.util.Set<XmlDataDAO> getVariablesDTOs()
These are transient objects

Specified by:
getVariablesDTOs in interface ScopeDAO
Returns:

setVariablesDTOs

public void setVariablesDTOs(java.util.Set<XmlDataDAO> variablesDTOs)

addCorrelationSet

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


Copyright © 2015 WSO2. All Rights Reserved.