1 23 24 29 30 package com.sun.jdo.spi.persistence.support.sqlstore.ejb; 31 32 import javax.ejb.*; 33 34 import com.sun.jdo.api.persistence.support.PersistenceManager; 35 import com.sun.jdo.api.persistence.support.PersistenceManagerFactory; 36 37 57 public interface ContainerHelper { 58 59 74 Object getContainer(Object info); 75 76 87 EJBObject getEJBObject(Object pk, Object container); 88 89 100 EJBLocalObject getEJBLocalObject(Object pk, Object container); 101 102 115 EJBLocalObject getEJBLocalObject(Object pk, Object container, 116 EJBContext context); 117 118 126 void removeByEJBLocalObject(EJBLocalObject ejb, Object containerHelper); 127 128 136 void removeByPK(Object pk, Object container); 137 138 146 void assertValidLocalObject(Object o, Object container); 147 148 156 void assertValidRemoteObject(Object o, Object container); 157 158 167 void setCascadeDeleteAfterSuperEJBRemove(EntityContext context); 168 169 176 void preSelect(Object container); 177 178 185 PersistenceManagerFactory getPersistenceManagerFactory(Object container); 186 187 194 int getNumericConverterPolicy(Object container); 195 196 203 void beginInternalTransaction(PersistenceManager pm); 204 205 212 void commitInternalTransaction(PersistenceManager pm); 213 214 221 void rollbackInternalTransaction(PersistenceManager pm); 222 223 232 javax.transaction.Transaction suspendCurrentTransaction(); 233 234 241 void resumeCurrentTransaction(javax.transaction.Transaction tx); 242 } 243 | Popular Tags |