org.jboss.ejb.txtimer
Class OracleDatabasePersistencePlugin

java.lang.Object
  extended by org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin
      extended by org.jboss.ejb.txtimer.OracleDatabasePersistencePlugin
All Implemented Interfaces:
DatabasePersistencePlugin, DatabasePersistencePluginExt

public class OracleDatabasePersistencePlugin
extends GeneralPurposeDatabasePersistencePlugin

This DatabasePersistencePlugin uses getBinaryStream/setBinaryStream to persist the serializable objects associated with the timer.

Since:
23-Sep-2004
Version:
$Revision: 62307 $
Author:
Thomas.Diesler@jboss.org, Dimitris.Andreadis@jboss.org

Field Summary
 
Fields inherited from class org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin
dataSourceName, ds, metaDataName, server, tableName
 
Constructor Summary
OracleDatabasePersistencePlugin()
           
 
Method Summary
 void insertTimer(String timerId, TimedObjectId timedObjectId, Date initialExpiration, long intervalDuration, Serializable info)
          Insert a timer object
 List selectTimers(ObjectName containerId)
          Select a list of currently persisted timer handles
 
Methods inherited from class org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin
clearTimers, createTableIfNotExists, deleteTimer, deserialize, deserialize, getColumnInfo, getColumnInitialDate, getColumnInstancePK, getColumnTargetID, getColumnTimerID, getColumnTimerInterval, getTableName, init, init, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleDatabasePersistencePlugin

public OracleDatabasePersistencePlugin()
Method Detail

insertTimer

public void insertTimer(String timerId,
                        TimedObjectId timedObjectId,
                        Date initialExpiration,
                        long intervalDuration,
                        Serializable info)
                 throws SQLException
Insert a timer object

Specified by:
insertTimer in interface DatabasePersistencePlugin
Overrides:
insertTimer in class GeneralPurposeDatabasePersistencePlugin
Throws:
SQLException

selectTimers

public List selectTimers(ObjectName containerId)
                  throws SQLException
Select a list of currently persisted timer handles

Specified by:
selectTimers in interface DatabasePersistencePlugin
Overrides:
selectTimers in class GeneralPurposeDatabasePersistencePlugin
Returns:
List
Throws:
SQLException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.