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 EntityPersistenceManager extends ContainerPlugin 46 { 47 52 Object createBeanClassInstance() throws Exception ; 53 54 65 void createEntity(Method m, 66 Object [] args, 67 EntityEnterpriseContext instance) 68 throws Exception ; 69 70 81 void postCreateEntity(Method m, 82 Object [] args, 83 EntityEnterpriseContext instance) 84 throws Exception ; 85 86 99 Object findEntity(Method finderMethod, 100 Object [] args, 101 EntityEnterpriseContext instance, 102 GenericEntityObjectFactory factory) 103 throws Exception ; 104 105 119 Collection findEntities(Method finderMethod, 120 Object [] args, 121 EntityEnterpriseContext instance, 122 GenericEntityObjectFactory factory) 123 throws Exception ; 124 125 133 void activateEntity(EntityEnterpriseContext instance) 134 throws RemoteException ; 135 136 145 void loadEntity(EntityEnterpriseContext instance) 146 throws RemoteException ; 147 148 155 boolean isStoreRequired(EntityEnterpriseContext instance) throws Exception ; 156 157 166 boolean isModified(EntityEnterpriseContext ctx) throws Exception ; 167 168 177 void storeEntity(EntityEnterpriseContext instance) 178 throws RemoteException ; 179 180 186 void invokeEjbStore(EntityEnterpriseContext instance) 187 throws RemoteException ; 188 189 197 void passivateEntity(EntityEnterpriseContext instance) 198 throws RemoteException ; 199 200 210 void removeEntity(EntityEnterpriseContext instance) 211 throws RemoteException , RemoveException ; 212 } 213 214 | Popular Tags |