1 22 package org.jboss.ejb.txtimer; 23 24 26 import javax.management.MBeanServer ; 27 import javax.management.ObjectName ; 28 import java.io.Serializable ; 29 import java.sql.SQLException ; 30 import java.util.Date ; 31 import java.util.List ; 32 33 41 public interface DatabasePersistencePlugin 42 { 43 44 void init(MBeanServer server, ObjectName dataSource) throws SQLException ; 45 46 47 void createTableIfNotExists() throws SQLException ; 48 49 50 void insertTimer(String timerId, TimedObjectId timedObjectId, Date initialExpiration, long intervalDuration, Serializable info) throws SQLException ; 51 52 55 List selectTimers(ObjectName containerId) throws SQLException ; 56 57 58 void deleteTimer(String timerId, TimedObjectId timedObjectId) throws SQLException ; 59 60 61 void clearTimers() throws SQLException ; 62 63 64 String getTableName(); 65 66 67 String getColumnTimerID(); 68 69 70 String getColumnTargetID(); 71 72 73 String getColumnInitialDate(); 74 75 76 String getColumnTimerInterval(); 77 78 79 String getColumnInstancePK(); 80 81 82 String getColumnInfo(); 83 } 84 85 | Popular Tags |