org.mobicents.slee.resource.jdbc.task.simple
Class SimpleJdbcTask

java.lang.Object
  extended by org.mobicents.slee.resource.jdbc.task.simple.SimpleJdbcTask
All Implemented Interfaces:
JdbcTask

public abstract class SimpleJdbcTask
extends java.lang.Object
implements JdbcTask

An abstract implementation of JdbcTask, which will fire a SimpleJdbcTaskResultEvent event. Aims to simplify usage of JdbcTask when there is no need for custom event types.

Author:
martins

Constructor Summary
SimpleJdbcTask()
           
 
Method Summary
 JdbcTaskResult execute(JdbcTaskContext taskContext)
          Invoked by the JDBC RA, requests asynchronously execution of the task logic.
abstract  java.lang.Object executeSimple(JdbcTaskContext taskContext)
          Method to be overridden by concrete task implementations, return an "opaque" object as result of the task execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJdbcTask

public SimpleJdbcTask()
Method Detail

execute

public JdbcTaskResult execute(JdbcTaskContext taskContext)
Description copied from interface: JdbcTask
Invoked by the JDBC RA, requests asynchronously execution of the task logic.

Specified by:
execute in interface JdbcTask
Parameters:
taskContext - the context provided by the RA to help the task execution.
Returns:
the result of the task execution, which if not null, and valid (not null event object and type), will be used by the RA to fire an event into the SLEE.

executeSimple

public abstract java.lang.Object executeSimple(JdbcTaskContext taskContext)
Method to be overridden by concrete task implementations, return an "opaque" object as result of the task execution.

Parameters:
taskContext -
Returns:


Copyright © 2012. All Rights Reserved.