1 23 24 29 30 package com.sun.jdo.spi.persistence.support.sqlstore.ejb; 31 32 import javax.transaction.*; 33 34 import com.sun.jdo.api.persistence.support.PersistenceManagerFactory; 35 36 56 public interface TransactionHelper { 57 58 62 UserTransaction getUserTransaction(); 63 64 75 Transaction getTransaction(); 76 77 88 int translateStatus(int st); 89 90 105 PersistenceManagerFactory replaceInternalPersistenceManagerFactory( 106 PersistenceManagerFactory pmf); 107 108 123 Object preInvoke(Object component); 124 125 132 void postInvoke(Object im); 133 134 144 void registerSynchronization(Transaction jta, Synchronization sync) 145 throws RollbackException, SystemException; 146 147 158 java.sql.Connection getConnection(Object resource, String username, String password) 159 throws java.sql.SQLException ; 160 161 172 java.sql.Connection getNonTransactionalConnection( 173 Object resource, String username, String password) 174 throws java.sql.SQLException ; 175 176 182 TransactionManager getLocalTransactionManager(); 183 184 187 boolean isManaged(); 188 189 193 java.sql.Statement unwrapStatement(java.sql.Statement stmt); 194 195 196 201 void setPersistenceManagerFactoryDefaults(PersistenceManagerFactory pmf); 202 203 210 String getDDLNamePrefix(Object info); 211 212 220 void registerApplicationLifeCycleEventListener( 221 ApplicationLifeCycleEventListener listener); 222 223 } 224 225 | Popular Tags |