org.compass.spring.device.hibernate.dep
Class SpringHibernate3GpsDevice

java.lang.Object
  extended by org.compass.gps.device.AbstractGpsDevice
      extended by org.compass.gps.device.support.parallel.AbstractParallelGpsDevice
          extended by org.compass.gps.device.hibernate.dep.AbstractHibernateGpsDevice
              extended by org.compass.gps.device.hibernate.dep.Hibernate3GpsDevice
                  extended by org.compass.spring.device.hibernate.dep.SpringHibernate3GpsDevice
All Implemented Interfaces:
CompassGpsDevice, MirrorDataChangesGpsDevice, PassiveMirrorGpsDevice

public class SpringHibernate3GpsDevice
extends Hibernate3GpsDevice

A special Hibernate3GpsDevice that handled cases when spring proxies the SessionFactory (like when exposeTransactionAwareSessionFactory is set to true, which is the default from spring 1.2.X).

Use this hibernate gps device instead of org.compass.gps.device.hibernate.dep.Hibernate3GpsDevice if you are using Hibernate 3 and Spring.

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from class org.compass.gps.device.hibernate.dep.Hibernate3GpsDevice
Hibernate3GpsDevice.Hibernate3SessionWrapper
 
Nested classes/interfaces inherited from class org.compass.gps.device.hibernate.dep.AbstractHibernateGpsDevice
AbstractHibernateGpsDevice.HibernateSessionWrapper
 
Field Summary
 
Fields inherited from class org.compass.gps.device.hibernate.dep.AbstractHibernateGpsDevice
fetchCount
 
Fields inherited from class org.compass.gps.device.AbstractGpsDevice
compassGps, log
 
Constructor Summary
SpringHibernate3GpsDevice()
           
 
Method Summary
protected  SessionFactory doGetActualSessionFactory()
          Returns the actual SessionFactory in case it is proxied by spring.
static SessionFactory getNativeSessionFactory(SessionFactory sessionFactory)
           
 
Methods inherited from class org.compass.gps.device.hibernate.dep.Hibernate3GpsDevice
doGetHibernateEntitiesInfo, doGetHibernateSessionWrapper, doGetObjects, doGetQuery, doStart, doStop, isIgnoreMirrorExceptions, isInherited, isMirrorDataChanges, setConfiguration, setIgnoreMirrorExceptions, setMirrorDataChanges, setMirrorFilter, setSessionFactory
 
Methods inherited from class org.compass.gps.device.hibernate.dep.AbstractHibernateGpsDevice
doGetIndexEntities, doGetIndexEntitiesIndexer, setFetchCount
 
Methods inherited from class org.compass.gps.device.support.parallel.AbstractParallelGpsDevice
doIndex, index, setIndexEntitiesPartitioner, setParallelIndexExecutor, start
 
Methods inherited from class org.compass.gps.device.AbstractGpsDevice
buildMessage, getGps, getName, injectGps, isFilteredForIndex, isPerformingIndexOperation, isRunning, setFilteredEntitiesForIndex, setName, shouldMirrorDataChanges, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.compass.gps.CompassGpsDevice
getGps, getName, index, injectGps, isPerformingIndexOperation, isRunning, setName, shouldMirrorDataChanges, start, stop
 

Constructor Detail

SpringHibernate3GpsDevice

public SpringHibernate3GpsDevice()
Method Detail

getNativeSessionFactory

public static SessionFactory getNativeSessionFactory(SessionFactory sessionFactory)

doGetActualSessionFactory

protected SessionFactory doGetActualSessionFactory()
Returns the actual SessionFactory in case it is proxied by spring.

Overrides:
doGetActualSessionFactory in class Hibernate3GpsDevice


Copyright (c) 2004-2008 The Compass Project.