1 22 package org.jboss.ejb; 23 24 import java.lang.reflect.Method ; 25 import java.rmi.RemoteException ; 26 import java.util.Collection ; 27 28 import javax.ejb.RemoveException ; 29 30 31 45 public interface EntityPersistenceStore 46 extends ContainerPlugin 47 { 48 55 Object createBeanClassInstance() throws Exception ; 56 57 65 void initEntity(EntityEnterpriseContext ctx); 66 67 80 Object createEntity(Method m, 81 Object [] args, 82 EntityEnterpriseContext instance) 83 throws Exception ; 84 85 98 Object postCreateEntity(Method m, 99 Object [] args, 100 EntityEnterpriseContext instance) 101 throws Exception ; 102 103 118 Object findEntity(Method finderMethod, 119 Object [] args, 120 EntityEnterpriseContext instance, 121 GenericEntityObjectFactory factory) 122 throws Exception ; 123 124 140 Collection findEntities(Method finderMethod, 141 Object [] args, 142 EntityEnterpriseContext instance, 143 GenericEntityObjectFactory factory) 144 throws Exception ; 145 146 160 void activateEntity(EntityEnterpriseContext instance) 161 throws RemoteException ; 162 163 172 void loadEntity(EntityEnterpriseContext instance) 173 throws RemoteException ; 174 175 182 boolean isStoreRequired(EntityEnterpriseContext instance) throws Exception ; 183 184 193 boolean isModified(EntityEnterpriseContext instance) throws Exception ; 194 195 204 void storeEntity(EntityEnterpriseContext instance) 205 throws RemoteException ; 206 207 218 void passivateEntity(EntityEnterpriseContext instance) 219 throws RemoteException ; 220 221 231 void removeEntity(EntityEnterpriseContext instance) 232 throws RemoteException , RemoveException ; 233 } 234 | Popular Tags |