org.jboss.ejb.txtimer
Class OracleDatabasePersistencePlugin

java.lang.Object
  extended byorg.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin (src) 
      extended byorg.jboss.ejb.txtimer.OracleDatabasePersistencePlugin
All Implemented Interfaces:
DatabasePersistencePlugin (src)

public class OracleDatabasePersistencePlugin
extends GeneralPurposeDatabasePersistencePlugin (src)

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

Since:
23-Sep-2004

Field Summary
 
Fields inherited from class org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin (src)
dataSourceName, ds, metaDataName, server
 
Constructor Summary
OracleDatabasePersistencePlugin()
           
 
Method Summary
 void insertTimer(java.lang.String timerId, TimedObjectId (src)  timedObjectId, java.util.Date initialExpiration, long intervalDuration, java.io.Serializable info)
          Insert a timer object
 java.util.List selectTimers()
          Select a list of currently persisted timer handles
 
Methods inherited from class org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin (src)
clearTimers, createTableIfNotExists, deleteTimer, deserialize, deserialize, getColumnInfo, getColumnInitialDate, getColumnInstancePK, getColumnTargetID, getColumnTimerID, getColumnTimerInterval, getTableName, 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(java.lang.String timerId,
                        TimedObjectId (src)  timedObjectId,
                        java.util.Date initialExpiration,
                        long intervalDuration,
                        java.io.Serializable info)
                 throws java.sql.SQLException
Insert a timer object

Specified by:
insertTimer in interface DatabasePersistencePlugin (src)
Overrides:
insertTimer in class GeneralPurposeDatabasePersistencePlugin (src)
Throws:
java.sql.SQLException

selectTimers

public java.util.List selectTimers()
                            throws java.sql.SQLException
Select a list of currently persisted timer handles

Specified by:
selectTimers in interface DatabasePersistencePlugin (src)
Overrides:
selectTimers in class GeneralPurposeDatabasePersistencePlugin (src)
Returns:
List
Throws:
java.sql.SQLException