1 23 24 package com.sun.ejb.containers; 25 26 import java.io.Serializable ; 27 import java.util.Date ; 28 import java.util.Collection ; 29 import java.util.Set ; 30 31 import javax.ejb.EJBLocalHome ; 32 import javax.ejb.EJBLocalObject ; 33 import javax.ejb.CreateException ; 34 import javax.ejb.FinderException ; 35 36 40 public interface TimerLocalHome extends EJBLocalHome { 41 42 TimerLocal create(String timerId, 43 long containerId, String ownerId, 44 Object timedObjectPrimaryKey, 45 Date initialExpiration, long intervalDuration, 46 Serializable info) throws CreateException ; 47 48 TimerLocal findByPrimaryKey(TimerPrimaryKey timerId) throws FinderException ; 49 50 54 Set selectTimerIdsByContainer(long containerId) 55 throws FinderException ; 56 Set selectActiveTimerIdsByContainer(long containerId) 57 throws FinderException ; 58 Set selectCancelledTimerIdsByContainer(long containerId) 59 throws FinderException ; 60 61 Set selectTimerIdsOwnedByThisServerByContainer(long containerId) 62 throws FinderException ; 63 Set selectActiveTimerIdsOwnedByThisServerByContainer(long containerId) 64 throws FinderException ; 65 Set selectCancelledTimerIdsOwnedByThisServerByContainer(long containerId) 66 throws FinderException ; 67 68 Set selectAllTimerIdsOwnedByThisServer() throws FinderException ; 69 Set selectAllActiveTimerIdsOwnedByThisServer() throws FinderException ; 70 Set selectAllCancelledTimerIdsOwnedByThisServer() throws FinderException ; 71 72 Set selectAllTimerIdsOwnedBy(String owner) throws FinderException ; 73 Set selectAllActiveTimerIdsOwnedBy(String owner) throws FinderException ; 74 Set selectAllCancelledTimerIdsOwnedBy(String owner) throws FinderException ; 75 76 77 81 Set selectTimersByContainer(long containerId) 82 throws FinderException ; 83 Set selectActiveTimersByContainer(long containerId) 84 throws FinderException ; 85 Set selectCancelledTimersByContainer(long containerId) 86 throws FinderException ; 87 88 Set selectTimersOwnedByThisServerByContainer(long containerId) 89 throws FinderException ; 90 Set selectActiveTimersOwnedByThisServerByContainer(long containerId) 91 throws FinderException ; 92 Set selectCancelledTimersOwnedByThisServerByContainer(long containerId) 93 throws FinderException ; 94 95 Set selectAllTimersOwnedByThisServer() throws FinderException ; 96 Set selectAllActiveTimersOwnedByThisServer() throws FinderException ; 97 Set selectAllCancelledTimersOwnedByThisServer() throws FinderException ; 98 99 Set selectAllTimersOwnedBy(String owner) throws FinderException ; 100 Set selectAllActiveTimersOwnedBy(String owner) throws FinderException ; 101 Set selectAllCancelledTimersOwnedBy(String owner) throws FinderException ; 102 103 104 108 int selectCountTimersByContainer(long containerId) 109 throws FinderException ; 110 int selectCountActiveTimersByContainer(long containerId) 111 throws FinderException ; 112 int selectCountCancelledTimersByContainer(long containerId) 113 throws FinderException ; 114 115 int selectCountTimersOwnedByThisServerByContainer(long containerId) 116 throws FinderException ; 117 int selectCountActiveTimersOwnedByThisServerByContainer(long containerId) 118 throws FinderException ; 119 int selectCountCancelledTimersOwnedByThisServerByContainer(long containerId) 120 throws FinderException ; 121 122 int selectCountAllTimersOwnedByThisServer() 123 throws FinderException ; 124 int selectCountAllActiveTimersOwnedByThisServer() 125 throws FinderException ; 126 int selectCountAllCancelledTimersOwnedByThisServer() 127 throws FinderException ; 128 129 int selectCountAllTimersOwnedBy(String owner) 130 throws FinderException ; 131 int selectCountAllActiveTimersOwnedBy(String owner) 132 throws FinderException ; 133 int selectCountAllCancelledTimersOwnedBy(String owner) 134 throws FinderException ; 135 136 137 138 boolean checkStatus(String resourceJndiName, boolean checkDatabase); 140 141 } 142 | Popular Tags |