org.mule.transport.jdbc
Class JdbcMessageDispatcher
java.lang.Object
org.mule.transport.AbstractConnectable
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.jdbc.JdbcMessageDispatcher
- All Implemented Interfaces:
- ExceptionListener, Disposable, Connectable, MessageDispatcher, MessageDispatching
public class JdbcMessageDispatcher
- extends AbstractMessageDispatcher
The Jdbc Message dispatcher is responsible for executing SQL queries against a
database.
| Methods inherited from class org.mule.transport.AbstractConnectable |
activate, connect, disconnect, dispose, disposeAndLogException, exceptionThrown, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, isConnected, isDoThreading, passivate, reconnect, toString, validate |
JdbcMessageDispatcher
public JdbcMessageDispatcher(OutboundEndpoint endpoint)
doDispose
protected void doDispose()
- Specified by:
doDispose in class AbstractConnectable
executeWriteStatement
protected void executeWriteStatement(MuleEvent event,
String writeStmt)
throws Exception
- Throws:
Exception
getStatement
protected String getStatement(ImmutableEndpoint endpoint)
isWriteStatement
protected boolean isWriteStatement(String writeStmt)
doDispatch
protected void doDispatch(MuleEvent event)
throws Exception
- Specified by:
doDispatch in class AbstractMessageDispatcher
- Throws:
Exception
doSend
protected MuleMessage doSend(MuleEvent event)
throws Exception
- Specified by:
doSend in class AbstractMessageDispatcher
- Throws:
Exception
executeRequest
protected static MuleMessage executeRequest(long timeout,
MuleEvent event,
JdbcConnector connector,
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 AbstractConnectable
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect in class AbstractConnectable
- Throws:
Exception
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.