Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.ode.daohib.bpel
Class MessageExchangeDaoImpl

    java.lang.Object
      org.apache.ode.daohib.bpel.HibernateDao
          org.apache.ode.daohib.bpel.MessageExchangeDaoImpl

All Implemented Interfaces:
  MessageExchangeDAO

    public class MessageExchangeDaoImpl

extends HibernateDao
implements MessageExchangeDAO

Field Summary

Fields inherited from class org.apache.ode.daohib.bpel.HibernateDao
`_hobj, _sm`

Fields inherited from interface org.apache.ode.bpel.dao.MessageExchangeDAO
`DIR_BPEL_INVOKES_PARTNERROLE, DIR_PARTNER_INVOKES_MYROLE`

Constructor Summary
`MessageExchangeDaoImpl(SessionManager sm, HMessageExchange mex)`

Method Summary
`MessageDAO` | `createMessage(javax.xml.namespace.QName type)` Create a new message associated with this message-exchange
`void` | `deleteMessages()`
`MessageExchange.AckType` | `getAckType()`
`org.w3c.dom.Element` | `getCallbackEPR()`
`javax.xml.namespace.QName` | `getCallee()` Get the "callee"--the id of the service being invoked in a myRole exchange.
`java.lang.String` | `getChannel()` Get the response channel.
`java.lang.String` | `getCorrelationStatus()`
`java.util.Date` | `getCreateTime()` Creation time of the message exchange
`char` | `getDirection()` Get the direction of the message exchange.
`org.w3c.dom.Element` | `getEPR()`
`MessageExchange.FailureType` | `getFailureType()`
`javax.xml.namespace.QName` | `getFault()`
`java.lang.String` | `getFaultExplanation()`
`ProcessInstanceDAO` | `getInstance()`
`InvocationStyle` | `getInvocationStyle()` Get the invocation style.
`java.lang.String` | `getMessageExchangeId()` Instance id of the message exchange.
`java.lang.String` | `getOperation()` Get the operation name of this message exchange.
`PartnerLinkDAO` | `getPartnerLink()`
`int` | `getPartnerLinkModelId()` Get the model id for the partner link to which this message exchange relates.
`java.lang.String` | `getPartnersKey()` Get the the partner's identifier for this message exchange.
`MessageExchange.MessageExchangePattern` | `getPattern()`
`java.lang.String` | `getPipedMessageExchangeId()` Gets the message exchange that has been piped with this one in a process to process interaction.
`javax.xml.namespace.QName` | `getPipedPID()`
`javax.xml.namespace.QName` | `getPortType()` The qualified name of the WSDL port type.
`ProcessDAO` | `getProcess()` Get the process associate with this message exchange.
`boolean` | `getPropagateTransactionFlag()`
`java.lang.String` | `getProperty(java.lang.String key)`
`java.util.Set<java.lang.String>` | `getPropertyNames()`
`MessageDAO` | `getRequest()` Get the input message.
`MessageDAO` | `getResponse()` Get output message (could be fault message)
`MessageExchange.Status` | `getStatus()` Get state of last message sent/received.
`long` | `getTimeout()`
`void` | `release(boolean doClean)`
`void` | `setAckType(MessageExchange.AckType ackType)`
`void` | `setCallbackEPR(org.w3c.dom.Element source)`
`void` | `setCallee(javax.xml.namespace.QName callee)` Set the "callee"--the id of the service being invoked in a myRole exchange.
`void` | `setChannel(java.lang.String channel)` Set the response channel.
`void` | `setCorrelationStatus(java.lang.String cstatus)`
`void` | `setEPR(org.w3c.dom.Element source)`
`void` | `setFailureType(MessageExchange.FailureType failureType)`
`void` | `setFault(javax.xml.namespace.QName faultType)`
`void` | `setFaultExplanation(java.lang.String explanation)`
`void` | `setInstance(ProcessInstanceDAO instance)`
`void` | `setInvocationStyle(InvocationStyle invocationStyle)` Set the invocation style.
`void` | `setOperation(java.lang.String opname)`
`void` | `setPartnerLink(PartnerLinkDAO plinkDAO)`
`void` | `setPartnerLinkModelId(int modelId)` Set the model id for the partner link to which this message exchange relates
`void` | `setPartnersKey(java.lang.String clientKey)` Set the correlation identifier/client id
`void` | `setPattern(MessageExchange.MessageExchangePattern pattern)`
`void` | `setPipedMessageExchangeId(java.lang.String pipedMex)`
`void` | `setPipedPID(javax.xml.namespace.QName pipedPid)`
`void` | `setPortType(javax.xml.namespace.QName porttype)` Set the port type.
`void` | `setProcess(ProcessDAO process)`
`void` | `setProperty(java.lang.String key, java.lang.String value)`
`void` | `setRequest(MessageDAO msg)` Creates an input message DAO.
`void` | `setResponse(MessageDAO msg)` Creates an output message DAO.
`void` | `setStatus(MessageExchange.Status status)` Set state of last message sent/received.
`void` | `setTimeout(long timeout)`

Methods inherited from class org.apache.ode.daohib.bpel.HibernateDao
`equals, getDHandle, getHibernateObj, getSession, hashCode, update`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MessageExchangeDaoImpl

    public MessageExchangeDaoImpl(SessionManager sm,
                                  HMessageExchange mex)

Method Detail

### getMessageExchangeId

    public java.lang.String getMessageExchangeId()

  Description copied from interface: `MessageExchangeDAO`
  Instance id of the message exchange.

  Specified by:
    `getMessageExchangeId` in interface `MessageExchangeDAO`
  Returns:
    message exchange id.

### getResponse

    public MessageDAO getResponse()

  Description copied from interface: `MessageExchangeDAO`
  Get output message (could be fault message)

  Specified by:
    `getResponse` in interface `MessageExchangeDAO`
  Returns:
    output message DAO

### getCreateTime

    public java.util.Date getCreateTime()

  Description copied from interface: `MessageExchangeDAO`
  Creation time of the message exchange

  Specified by:
    `getCreateTime` in interface `MessageExchangeDAO`
  Returns:
    create time

### getRequest

    public MessageDAO getRequest()

  Description copied from interface: `MessageExchangeDAO`
  Get the input message.

  Specified by:
    `getRequest` in interface `MessageExchangeDAO`
  Returns:
    input message DAO

### getOperation

    public java.lang.String getOperation()

  Description copied from interface: `MessageExchangeDAO`
  Get the operation name of this message exchange.

  Specified by:
    `getOperation` in interface `MessageExchangeDAO`
  Returns:
    operation name.

### getPortType

    public javax.xml.namespace.QName getPortType()

  Description copied from interface: `MessageExchangeDAO`
  The qualified name of the WSDL port type.

  Specified by:
    `getPortType` in interface `MessageExchangeDAO`
  Returns:
    port type name

### setPortType

    public void setPortType(javax.xml.namespace.QName porttype)

  Description copied from interface: `MessageExchangeDAO`
  Set the port type.

  Specified by:
    `setPortType` in interface `MessageExchangeDAO`
  Parameters:
    `porttype` - port type

### setStatus

    public void setStatus(MessageExchange.Status status)

  Description copied from interface: `MessageExchangeDAO`
  Set state of last message sent/received.

  Specified by:
    `setStatus` in interface `MessageExchangeDAO`
  Parameters:
    `status` - state to be set

### getStatus

    public MessageExchange.Status getStatus()

  Description copied from interface: `MessageExchangeDAO`
  Get state of last message sent/received.

  Specified by:
    `getStatus` in interface `MessageExchangeDAO`
  Returns:
    the state

### createMessage

    public MessageDAO createMessage(javax.xml.namespace.QName type)

  Description copied from interface: `MessageExchangeDAO`
  Create a new message associated with this message-exchange

  Specified by:
    `createMessage` in interface `MessageExchangeDAO`
  Parameters:
    `type` - message type
  Returns:
    new `MessageDAO`

### setRequest

    public void setRequest(MessageDAO msg)

  Description copied from interface: `MessageExchangeDAO`
  Creates an input message DAO.

  Specified by:
    `setRequest` in interface `MessageExchangeDAO`

### setResponse

    public void setResponse(MessageDAO msg)

  Description copied from interface: `MessageExchangeDAO`
  Creates an output message DAO.

  Specified by:
    `setResponse` in interface `MessageExchangeDAO`

### getPartnerLinkModelId

    public int getPartnerLinkModelId()

  Description copied from interface: `MessageExchangeDAO`
  Get the model id for the partner link to which this message exchange relates.

  Specified by:
    `getPartnerLinkModelId` in interface `MessageExchangeDAO`
  Returns:

### setPartnerLinkModelId

    public void setPartnerLinkModelId(int modelId)

  Description copied from interface: `MessageExchangeDAO`
  Set the model id for the partner link to which this message exchange relates

  Specified by:
    `setPartnerLinkModelId` in interface `MessageExchangeDAO`

### getPartnersKey

    public java.lang.String getPartnersKey()

  Description copied from interface: `MessageExchangeDAO`
  Get the the partner's identifier for this message exchange. Generally, the partner will have a different identifier for each exchange. This key is used in sistuations when the partner needs to find the mex, but only has their own identifier.

  Specified by:
    `getPartnersKey` in interface `MessageExchangeDAO`
  Returns:
    correlation identifier

### setPartnersKey

    public void setPartnersKey(java.lang.String clientKey)

  Description copied from interface: `MessageExchangeDAO`
  Set the correlation identifier/client id

  Specified by:
    `setPartnersKey` in interface `MessageExchangeDAO`
  Parameters:
    `clientKey` - identifier

### setPattern

    public void setPattern(MessageExchange.MessageExchangePattern pattern)

  Specified by:
    `setPattern` in interface `MessageExchangeDAO`

### setOperation

    public void setOperation(java.lang.String opname)

  Specified by:
    `setOperation` in interface `MessageExchangeDAO`

### setEPR

    public void setEPR(org.w3c.dom.Element source)

  Specified by:
    `setEPR` in interface `MessageExchangeDAO`

### getEPR

    public org.w3c.dom.Element getEPR()

  Specified by:
    `getEPR` in interface `MessageExchangeDAO`

### setCallbackEPR

    public void setCallbackEPR(org.w3c.dom.Element source)

### getCallbackEPR

    public org.w3c.dom.Element getCallbackEPR()

### getPattern

    public MessageExchange.MessageExchangePattern getPattern()

  Specified by:
    `getPattern` in interface `MessageExchangeDAO`

### getChannel

    public java.lang.String getChannel()

  Description copied from interface: `MessageExchangeDAO`
  Get the response channel.

  Specified by:
    `getChannel` in interface `MessageExchangeDAO`
  Returns:
    response channel.

### setChannel

    public void setChannel(java.lang.String channel)

  Description copied from interface: `MessageExchangeDAO`
  Set the response channel.

  Specified by:
    `setChannel` in interface `MessageExchangeDAO`
  Parameters:
    `channel` - response channel

### getPropagateTransactionFlag

    public boolean getPropagateTransactionFlag()

### getFault

    public javax.xml.namespace.QName getFault()

  Specified by:
    `getFault` in interface `MessageExchangeDAO`

### setFault

    public void setFault(javax.xml.namespace.QName faultType)

  Specified by:
    `setFault` in interface `MessageExchangeDAO`

### getFaultExplanation

    public java.lang.String getFaultExplanation()

  Specified by:
    `getFaultExplanation` in interface `MessageExchangeDAO`

### setFaultExplanation

    public void setFaultExplanation(java.lang.String explanation)

  Specified by:
    `setFaultExplanation` in interface `MessageExchangeDAO`

### setCorrelationStatus

    public void setCorrelationStatus(java.lang.String cstatus)

  Specified by:
    `setCorrelationStatus` in interface `MessageExchangeDAO`

### getCorrelationStatus

    public java.lang.String getCorrelationStatus()

  Specified by:
    `getCorrelationStatus` in interface `MessageExchangeDAO`

### getProcess

    public ProcessDAO getProcess()

  Description copied from interface: `MessageExchangeDAO`
  Get the process associate with this message exchange. The process should always be available for partnerRole message exchanges. However, for myRole message exchanges, it is possible that no process is associated with the message exchange (i.e. if the EPR routing fails).

  Specified by:
    `getProcess` in interface `MessageExchangeDAO`
  Returns:
    process associated with the message exchange

### setProcess

    public void setProcess(ProcessDAO process)

  Specified by:
    `setProcess` in interface `MessageExchangeDAO`

### setInstance

    public void setInstance(ProcessInstanceDAO instance)

  Specified by:
    `setInstance` in interface `MessageExchangeDAO`

### getInstance

    public ProcessInstanceDAO getInstance()

  Specified by:
    `getInstance` in interface `MessageExchangeDAO`

### getDirection

    public char getDirection()

  Description copied from interface: `MessageExchangeDAO`
  Get the direction of the message exchange.

  Specified by:
    `getDirection` in interface `MessageExchangeDAO`
  Returns:

### getCallee

    public javax.xml.namespace.QName getCallee()

  Description copied from interface: `MessageExchangeDAO`
  Get the "callee"--the id of the service being invoked in a myRole exchange.

  Specified by:
    `getCallee` in interface `MessageExchangeDAO`
  Returns:

### setCallee

    public void setCallee(javax.xml.namespace.QName callee)

  Description copied from interface: `MessageExchangeDAO`
  Set the "callee"--the id of the service being invoked in a myRole exchange.

  Specified by:
    `setCallee` in interface `MessageExchangeDAO`

### getProperty

    public java.lang.String getProperty(java.lang.String key)

  Specified by:
    `getProperty` in interface `MessageExchangeDAO`

### setProperty

    public void setProperty(java.lang.String key,
                            java.lang.String value)

  Specified by:
    `setProperty` in interface `MessageExchangeDAO`

### setPartnerLink

    public void setPartnerLink(PartnerLinkDAO plinkDAO)

  Specified by:
    `setPartnerLink` in interface `MessageExchangeDAO`

### getPartnerLink

    public PartnerLinkDAO getPartnerLink()

  Specified by:
    `getPartnerLink` in interface `MessageExchangeDAO`

### getPropertyNames

    public java.util.Set<java.lang.String> getPropertyNames()

  Specified by:
    `getPropertyNames` in interface `MessageExchangeDAO`

### release

    public void release(boolean doClean)

  Specified by:
    `release` in interface `MessageExchangeDAO`

### deleteMessages

    public void deleteMessages()

### getInvocationStyle

    public InvocationStyle getInvocationStyle()

  Description copied from interface: `MessageExchangeDAO`
  Get the invocation style.

  Specified by:
    `getInvocationStyle` in interface `MessageExchangeDAO`
  Returns:

### getPipedMessageExchangeId

    public java.lang.String getPipedMessageExchangeId()

  Description copied from interface: `MessageExchangeDAO`
  Gets the message exchange that has been piped with this one in a process to process interaction.

  Specified by:
    `getPipedMessageExchangeId` in interface `MessageExchangeDAO`
  Returns:
    other side of the message pipe

### getTimeout

    public long getTimeout()

  Specified by:
    `getTimeout` in interface `MessageExchangeDAO`

### setFailureType

    public void setFailureType(MessageExchange.FailureType failureType)

  Specified by:
    `setFailureType` in interface `MessageExchangeDAO`

### getFailureType

    public MessageExchange.FailureType getFailureType()

  Specified by:
    `getFailureType` in interface `MessageExchangeDAO`

### setInvocationStyle

    public void setInvocationStyle(InvocationStyle invocationStyle)

  Description copied from interface: `MessageExchangeDAO`
  Set the invocation style.

  Specified by:
    `setInvocationStyle` in interface `MessageExchangeDAO`

### setPipedMessageExchangeId

    public void setPipedMessageExchangeId(java.lang.String pipedMex)

  Specified by:
    `setPipedMessageExchangeId` in interface `MessageExchangeDAO`

### setTimeout

    public void setTimeout(long timeout)

  Specified by:
    `setTimeout` in interface `MessageExchangeDAO`

### getAckType

    public MessageExchange.AckType getAckType()

  Specified by:
    `getAckType` in interface `MessageExchangeDAO`

### setAckType

    public void setAckType(MessageExchange.AckType ackType)

  Specified by:
    `setAckType` in interface `MessageExchangeDAO`

### getPipedPID

    public javax.xml.namespace.QName getPipedPID()

  Specified by:
    `getPipedPID` in interface `MessageExchangeDAO`

### setPipedPID

    public void setPipedPID(javax.xml.namespace.QName pipedPid)

  Specified by:
    `setPipedPID` in interface `MessageExchangeDAO`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD