org.jboss.soa.esb.actions.templates
Class MockSqlRowAction
java.lang.Object
org.jboss.soa.esb.actions.AbstractSqlRowAction
org.jboss.soa.esb.actions.templates.MockSqlRowAction
- All Implemented Interfaces:
- ActionProcessor
public class MockSqlRowAction
- extends AbstractSqlRowAction
Use this class to tune your XML configurations
Once your config works with this dummy class, you can
switch to your own action class
You will have to implement these three methods
in your own action class
- Author:
- Esteban
|
Field Summary |
static java.util.List<java.util.Map> |
params
|
|
Method Summary |
java.io.Serializable |
getErrorNotification(Message message)
Get the "Error" notification message for this processor. |
java.io.Serializable |
getOkNotification(Message message)
Get the "OK" notification message for this processor. |
protected java.lang.Object |
process(java.util.Map resultSet)
Process the SQL poll resultset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
params
public static java.util.List<java.util.Map> params
MockSqlRowAction
public MockSqlRowAction(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
process
protected java.lang.Object process(java.util.Map resultSet)
- Description copied from class:
AbstractSqlRowAction
- Process the SQL poll resultset.
- Specified by:
process in class AbstractSqlRowAction
- Parameters:
resultSet - SQL Poller resultset.
- Returns:
- Processing result.
getOkNotification
public java.io.Serializable getOkNotification(Message message)
- Description copied from interface:
ActionProcessor
- Get the "OK" notification message for this processor.
- Parameters:
message - The message Object.
- Returns:
- The OK message.
getErrorNotification
public java.io.Serializable getErrorNotification(Message message)
- Description copied from interface:
ActionProcessor
- Get the "Error" notification message for this processor.
- Parameters:
message - The message Object.
- Returns:
- The Error message.