org.compass.gps.device.jpa.embedded.toplink
Class CompassSessionEventListener

java.lang.Object
  extended by oracle.toplink.essentials.sessions.SessionEventAdapter
      extended by org.compass.gps.device.jpa.embedded.toplink.CompassSessionEventListener
All Implemented Interfaces:
EventListener, oracle.toplink.essentials.sessions.SessionEventListener

public class CompassSessionEventListener
extends oracle.toplink.essentials.sessions.SessionEventAdapter

A TopLink SessionEventListener that uses the transaction callback methods to sync between them and Compass transaction mechanism.

Author:
kimchy

Constructor Summary
CompassSessionEventListener(Compass compass, JpaCompassGps jpaCompassGps, boolean commitBeforeCompletion, boolean toplinkControlledTransaction, Properties indexSettings)
           
 
Method Summary
protected  void finalize()
           
 Compass getCompass()
           
 CompassSession getCurrentCompassSession(oracle.toplink.essentials.sessions.Session session)
           
 Properties getIndexSettings()
           
 JpaCompassGps getJpaCompassGps()
           
 void postBeginTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
           
 void postCommitTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
           
 void postRollbackTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
           
 void preCommitTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
           
 
Methods inherited from class oracle.toplink.essentials.sessions.SessionEventAdapter
missingDescriptor, moreRowsDetected, noRowsModified, outputParametersDetected, postAcquireClientSession, postAcquireConnection, postAcquireExclusiveConnection, postAcquireUnitOfWork, postCalculateUnitOfWorkChangeSet, postCommitUnitOfWork, postConnect, postDistributedMergeUnitOfWorkChangeSet, postExecuteQuery, postLogin, postMergeUnitOfWorkChangeSet, postReleaseClientSession, postReleaseUnitOfWork, postResumeUnitOfWork, preBeginTransaction, preCalculateUnitOfWorkChangeSet, preCommitUnitOfWork, preDistributedMergeUnitOfWorkChangeSet, preExecuteQuery, preLogin, preMergeUnitOfWorkChangeSet, prepareUnitOfWork, preReleaseClientSession, preReleaseConnection, preReleaseExclusiveConnection, preReleaseUnitOfWork, preRollbackTransaction
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassSessionEventListener

public CompassSessionEventListener(Compass compass,
                                   JpaCompassGps jpaCompassGps,
                                   boolean commitBeforeCompletion,
                                   boolean toplinkControlledTransaction,
                                   Properties indexSettings)
Method Detail

getCompass

public Compass getCompass()

getJpaCompassGps

public JpaCompassGps getJpaCompassGps()

getIndexSettings

public Properties getIndexSettings()

getCurrentCompassSession

public CompassSession getCurrentCompassSession(oracle.toplink.essentials.sessions.Session session)

postBeginTransaction

public void postBeginTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
Specified by:
postBeginTransaction in interface oracle.toplink.essentials.sessions.SessionEventListener
Overrides:
postBeginTransaction in class oracle.toplink.essentials.sessions.SessionEventAdapter

preCommitTransaction

public void preCommitTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
Specified by:
preCommitTransaction in interface oracle.toplink.essentials.sessions.SessionEventListener
Overrides:
preCommitTransaction in class oracle.toplink.essentials.sessions.SessionEventAdapter

postCommitTransaction

public void postCommitTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
Specified by:
postCommitTransaction in interface oracle.toplink.essentials.sessions.SessionEventListener
Overrides:
postCommitTransaction in class oracle.toplink.essentials.sessions.SessionEventAdapter

postRollbackTransaction

public void postRollbackTransaction(oracle.toplink.essentials.sessions.SessionEvent event)
Specified by:
postRollbackTransaction in interface oracle.toplink.essentials.sessions.SessionEventListener
Overrides:
postRollbackTransaction in class oracle.toplink.essentials.sessions.SessionEventAdapter

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright (c) 2004-2008 The Compass Project.