|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.AbstractGpsDevice
org.compass.gps.device.support.parallel.AbstractParallelGpsDevice
org.compass.gps.device.hibernate.dep.AbstractHibernateGpsDevice
org.compass.gps.device.hibernate.dep.Hibernate3GpsDevice
HibernateGpsDevice.
public class Hibernate3GpsDevice
A hibernate device which works with hibernate 3.
You must either set the HibernateConfiguration or the
SessionFactory to be used by the device. Note that if the
Configuration is supplied, when the device start
is called, a new SessionFactory will be built.
Provides support for real time index updates using the new Hibernate 3 event
system. The device uses the PostInsertEventListener,
PostUpdateEventListener, and
PostDeleteEventListener events.
| Nested Class Summary | |
|---|---|
class |
Hibernate3GpsDevice.Hibernate3SessionWrapper
Deprecated. |
| 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 | |
|---|---|
Hibernate3GpsDevice()
Deprecated. |
|
Hibernate3GpsDevice(String name,
Configuration configuration)
Deprecated. |
|
Hibernate3GpsDevice(String name,
SessionFactory sessionFactory)
Deprecated. |
|
| Method Summary | |
|---|---|
protected SessionFactory |
doGetActualSessionFactory()
Deprecated. A helper method that returns the actual session factory for event registration. |
protected HibernateEntityInfo[] |
doGetHibernateEntitiesInfo()
Deprecated. Returns all the hibernate entity info. |
protected AbstractHibernateGpsDevice.HibernateSessionWrapper |
doGetHibernateSessionWrapper()
Deprecated. |
protected List |
doGetObjects(HibernateEntityInfo info,
int from,
int count,
AbstractHibernateGpsDevice.HibernateSessionWrapper sessionWrapper)
Deprecated. Returns the data that maps to the given class info, paginated with from and count. |
protected Query |
doGetQuery(HibernateEntityInfo info,
Session session)
Deprecated. Can be used to override query creation for a certain hibernate entity info. |
protected void |
doStart()
Deprecated. Derived devices can implement it in case of start event notification. |
protected void |
doStop()
Deprecated. Derived devices can implement it in case of stop event notification. |
boolean |
isIgnoreMirrorExceptions()
Deprecated. Should exceptions be ignored during the mirroring operations (the Hibernate event listeners). |
protected boolean |
isInherited(ClassMetadata classMetadata)
Deprecated. |
boolean |
isMirrorDataChanges()
Deprecated. Should the device perform real time data mirroring. |
void |
setConfiguration(Configuration configuration)
Deprecated. |
void |
setIgnoreMirrorExceptions(boolean ignoreMirrorExceptions)
Deprecated. Should exceptions be ignored during the mirroring operations (the Hibernate event listeners). |
void |
setMirrorDataChanges(boolean mirrorDataChanges)
Deprecated. Sets if the device will perform real time data changes mirroring. |
void |
setMirrorFilter(HibernateMirrorFilter mirrorFilter)
Deprecated. Sets a mirroring filter that can filter hibernate mirror events. |
void |
setSessionFactory(SessionFactory sessionFactory)
Deprecated. |
| 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, refresh, 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, refresh, setName, shouldMirrorDataChanges, start, stop |
| Constructor Detail |
|---|
public Hibernate3GpsDevice()
public Hibernate3GpsDevice(String name,
SessionFactory sessionFactory)
public Hibernate3GpsDevice(String name,
Configuration configuration)
| Method Detail |
|---|
public void setSessionFactory(SessionFactory sessionFactory)
public void setConfiguration(Configuration configuration)
public void setMirrorFilter(HibernateMirrorFilter mirrorFilter)
mirrorFilter - The mirror filter handler
protected void doStart()
throws CompassGpsException
AbstractGpsDevice
doStart in class AbstractGpsDeviceCompassGpsException
protected void doStop()
throws CompassGpsException
AbstractGpsDevice
doStop in class AbstractGpsDeviceCompassGpsExceptionprotected SessionFactory doGetActualSessionFactory()
SessionFactory is proxied.
public boolean isMirrorDataChanges()
MirrorDataChangesGpsDevice
isMirrorDataChanges in interface MirrorDataChangesGpsDevicetrue if the device mirror data changespublic void setMirrorDataChanges(boolean mirrorDataChanges)
MirrorDataChangesGpsDevice
setMirrorDataChanges in interface MirrorDataChangesGpsDevicemirrorDataChanges - Should the device mirror data changespublic boolean isIgnoreMirrorExceptions()
false.
public void setIgnoreMirrorExceptions(boolean ignoreMirrorExceptions)
false.
protected AbstractHibernateGpsDevice.HibernateSessionWrapper doGetHibernateSessionWrapper()
doGetHibernateSessionWrapper in class AbstractHibernateGpsDevice
protected HibernateEntityInfo[] doGetHibernateEntitiesInfo()
throws HibernateGpsDeviceException
AbstractHibernateGpsDevice
doGetHibernateEntitiesInfo in class AbstractHibernateGpsDeviceHibernateGpsDeviceException
protected List doGetObjects(HibernateEntityInfo info,
int from,
int count,
AbstractHibernateGpsDevice.HibernateSessionWrapper sessionWrapper)
throws HibernateGpsDeviceException
AbstractHibernateGpsDevice
doGetObjects in class AbstractHibernateGpsDeviceHibernateGpsDeviceException
protected Query doGetQuery(HibernateEntityInfo info,
Session session)
protected boolean isInherited(ClassMetadata classMetadata)
throws HibernateGpsDeviceException
HibernateGpsDeviceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||