public class SunTransactionHelper extends TransactionHelperImpl implements ConnectorNamingEventListener
registerSynchronization, because it uses a special
object that registers Synchronization instance to be processed after
any bean's or container beforeCompletion method, but before the corresponding
afterCompletion.| Modifier and Type | Method and Description |
|---|---|
void |
connectorNamingEventPerformed(ConnectorNamingEvent event)
Listeners registered for the event will get notified via this method.
Listeners interested in the event will override this method and perform their required operations. |
String |
getDDLNamePrefix(Object info)
Returns name prefix for DDL files extracted from the info instance by the
application server specific code.
|
TransactionManager |
getLocalTransactionManager()
SunTransactionHelper specific code
|
Connection |
getNonTransactionalConnection(Object resource,
String username,
String password)
Called in a managed environment to get a Connection from the application
server specific resource.
|
Transaction |
getTransaction()
SunTransactionHelper specific code
|
UserTransaction |
getUserTransaction()
SunTransactionHelper specific code
|
void |
notifyApplicationUnloaded(ClassLoader classLoader)
Called to notify a ApplicationLifeCycleEventListeners that an application
is unloaded.
|
void |
registerApplicationLifeCycleEventListener(ApplicationLifeCycleEventListener listener)
Called to register a ApplicationLifeCycleEventListener.
|
void |
registerSynchronization(Transaction jta,
Synchronization sync)
SunTransactionHelper specific code
|
PersistenceManagerFactory |
replaceInternalPersistenceManagerFactory(PersistenceManagerFactory pmf)
SunTransactionHelper specific code
|
getConnection, isManaged, postInvoke, preInvoke, setPersistenceManagerFactoryDefaults, translateStatus, unwrapStatementpublic Transaction getTransaction()
getTransaction in interface TransactionHelpergetTransaction in class TransactionHelperImplpublic UserTransaction getUserTransaction()
getUserTransaction in interface TransactionHelpergetUserTransaction in class TransactionHelperImplpublic void registerSynchronization(Transaction jta, Synchronization sync) throws RollbackException, SystemException
registerSynchronization in interface TransactionHelperregisterSynchronization in class TransactionHelperImpljta - the Transaction instance for the calling thread.sync - the internal Synchronization instance to register.SystemExceptionRollbackExceptionpublic PersistenceManagerFactory replaceInternalPersistenceManagerFactory(PersistenceManagerFactory pmf)
replaceInternalPersistenceManagerFactory in interface TransactionHelperreplaceInternalPersistenceManagerFactory in class TransactionHelperImplpmf - PersistenceManagerFactory instance to be replacedpublic String getDDLNamePrefix(Object info)
getDDLNamePrefix in interface TransactionHelpergetDDLNamePrefix in class TransactionHelperImplinfo - the instance to use for the name generation.public Connection getNonTransactionalConnection(Object resource, String username, String password) throws SQLException
getNonTransactionalConnection in interface TransactionHelpergetNonTransactionalConnection in class TransactionHelperImplresource - the application server specific resource.username - the resource username. If null, Connection is requested
without username and password validation.password - the password for the resource username.SQLExceptionpublic TransactionManager getLocalTransactionManager()
getLocalTransactionManager in interface TransactionHelpergetLocalTransactionManager in class TransactionHelperImplpublic void registerApplicationLifeCycleEventListener(ApplicationLifeCycleEventListener listener)
TransactionHelperregisterApplicationLifeCycleEventListener in interface TransactionHelperregisterApplicationLifeCycleEventListener in class TransactionHelperImpllistener - An instance of ApplicationLifeCycleEventListener.public void notifyApplicationUnloaded(ClassLoader classLoader)
TransactionHelpernotifyApplicationUnloaded in interface TransactionHelpernotifyApplicationUnloaded in class TransactionHelperImplclassLoader - An instance of the ClassLoader that loaded the application.public void connectorNamingEventPerformed(ConnectorNamingEvent event)
ConnectorNamingEventListenerconnectorNamingEventPerformed in interface ConnectorNamingEventListenerCopyright © 2017. All rights reserved.