org.jboss.soa.esb.actions.templates
Class MockSqlRowAction

java.lang.Object
  extended by org.jboss.soa.esb.actions.AbstractSqlRowAction
      extended by 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
           
 
Fields inherited from class org.jboss.soa.esb.actions.AbstractSqlRowAction
logger
 
Constructor Summary
MockSqlRowAction(java.lang.String actionName, java.util.List<KeyValuePair> properties)
           
 
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 org.jboss.soa.esb.actions.AbstractSqlRowAction
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

public static java.util.List<java.util.Map> params
Constructor Detail

MockSqlRowAction

public MockSqlRowAction(java.lang.String actionName,
                        java.util.List<KeyValuePair> properties)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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.