org.mule.transport.jdbc
Class JdbcMessageDispatcher

java.lang.Object
  extended by org.mule.transport.AbstractConnectable
      extended by org.mule.transport.AbstractMessageDispatcher
          extended by org.mule.transport.jdbc.JdbcMessageDispatcher
All Implemented Interfaces:
ExceptionListener, org.mule.api.lifecycle.Disposable, org.mule.api.transport.Connectable, org.mule.api.transport.MessageDispatcher, org.mule.api.transport.MessageDispatching

public class JdbcMessageDispatcher
extends org.mule.transport.AbstractMessageDispatcher

The Jdbc Message dispatcher is responsible for executing SQL queries against a database.


Field Summary
 
Fields inherited from class org.mule.transport.AbstractConnectable
connected, connecting, connectionStrategy, disposed, endpoint, logger, workManager
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.transport.MessageDispatching
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Constructor Summary
JdbcMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint)
           
 
Method Summary
protected  void doConnect()
           
protected  void doDisconnect()
           
protected  void doDispatch(org.mule.api.MuleEvent event)
           
protected  void doDispose()
           
protected  org.mule.api.MuleMessage doSend(org.mule.api.MuleEvent event)
           
protected static org.mule.api.MuleMessage executeRequest(long timeout, org.mule.api.MuleEvent event, JdbcConnector connector, org.mule.api.endpoint.ImmutableEndpoint endpoint)
          This does work for both dispatcher and requester
protected  void executeWriteStatement(org.mule.api.MuleEvent event, String writeStmt)
           
protected  String getStatement(org.mule.api.endpoint.ImmutableEndpoint endpoint)
           
protected  boolean isWriteStatement(String writeStmt)
           
 
Methods inherited from class org.mule.transport.AbstractMessageDispatcher
dispatch, isTransactionRollback, send, useRemoteSync
 
Methods inherited from class org.mule.transport.AbstractConnectable
activate, connect, disconnect, dispose, disposeAndLogException, exceptionThrown, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, isConnected, isDoThreading, passivate, reconnect, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.transport.MessageDispatcher
activate, getConnector, passivate, validate
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.api.transport.Connectable
connect, disconnect, getConnectionDescription, isConnected
 

Constructor Detail

JdbcMessageDispatcher

public JdbcMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint)
Method Detail

doDispose

protected void doDispose()
Specified by:
doDispose in class org.mule.transport.AbstractConnectable

executeWriteStatement

protected void executeWriteStatement(org.mule.api.MuleEvent event,
                                     String writeStmt)
                              throws Exception
Throws:
Exception

getStatement

protected String getStatement(org.mule.api.endpoint.ImmutableEndpoint endpoint)

isWriteStatement

protected boolean isWriteStatement(String writeStmt)

doDispatch

protected void doDispatch(org.mule.api.MuleEvent event)
                   throws Exception
Specified by:
doDispatch in class org.mule.transport.AbstractMessageDispatcher
Throws:
Exception

doSend

protected org.mule.api.MuleMessage doSend(org.mule.api.MuleEvent event)
                                   throws Exception
Specified by:
doSend in class org.mule.transport.AbstractMessageDispatcher
Throws:
Exception

executeRequest

protected static org.mule.api.MuleMessage executeRequest(long timeout,
                                                         org.mule.api.MuleEvent event,
                                                         JdbcConnector connector,
                                                         org.mule.api.endpoint.ImmutableEndpoint endpoint)
                                                  throws Exception
This does work for both dispatcher and requester

Parameters:
timeout -
event -
connector -
endpoint -
Returns:
Throws:
Exception

doConnect

protected void doConnect()
                  throws Exception
Specified by:
doConnect in class org.mule.transport.AbstractConnectable
Throws:
Exception

doDisconnect

protected void doDisconnect()
                     throws Exception
Specified by:
doDisconnect in class org.mule.transport.AbstractConnectable
Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.