org.compass.gps.device.hibernate
Class AbstractHibernateGpsDevice
java.lang.Object
org.compass.gps.device.AbstractGpsDevice
org.compass.gps.device.hibernate.AbstractHibernateGpsDevice
- All Implemented Interfaces:
- CompassGpsDevice, HibernateGpsDevice
- Direct Known Subclasses:
- Hibernate2GpsDevice, Hibernate3GpsDevice
public abstract class AbstractHibernateGpsDevice
- extends AbstractGpsDevice
- implements HibernateGpsDevice
An abstract hibernate device support. Aimed to provide the base operations
required by both Hiberante 2 and Hibernate 3.
- Author:
- kimchy
| Methods inherited from class org.compass.gps.device.AbstractGpsDevice |
buildMessage, doStop, getGps, getName, index, isFilteredForIndex, isPerformingIndexOperation, isRunning, setFilteredEntitiesForIndex, setGps, setName, shouldMirrorDataChanges, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fetchCount
protected int fetchCount
AbstractHibernateGpsDevice
public AbstractHibernateGpsDevice()
setFetchCount
public void setFetchCount(int fetchCount)
- Description copied from interface:
HibernateGpsDevice
- The batch fetch count the should be used when fetching data from a
hiberante mapped class. Defaults to 200.
- Specified by:
setFetchCount in interface HibernateGpsDevice
doStart
protected void doStart()
throws CompassGpsException
- Description copied from class:
AbstractGpsDevice
- Derived devices can implement it in case of start event notification.
- Overrides:
doStart in class AbstractGpsDevice
- Throws:
CompassGpsException
doIndex
protected void doIndex(CompassSession session)
throws CompassException
- Indexes all the data that has hibernate mapping and compass mapping
associated with it.
- Specified by:
doIndex in class AbstractGpsDevice
- Throws:
CompassException
doGetHibernateClassesInfo
protected abstract AbstractHibernateGpsDevice.HibernateClassInfo[] doGetHibernateClassesInfo()
throws HibernateGpsDeviceException
- Returns all the hibernate class info (the hibernate mapped classes and
their count).
- Returns:
- Hibernate class informtion
- Throws:
HibernateGpsDeviceException
doGetObjects
protected abstract List doGetObjects(AbstractHibernateGpsDevice.HibernateClassInfo info,
int from,
int count,
AbstractHibernateGpsDevice.HibernateSessionWrapper sessionWrapper)
throws HibernateGpsDeviceException
- Returns the data that maps to the given class info, paginated with from
and count.
- Throws:
HibernateGpsDeviceException
doGetHibernateSessionWrapper
protected abstract AbstractHibernateGpsDevice.HibernateSessionWrapper doGetHibernateSessionWrapper()
Copyright (c) 2004-2006 The Compass Project.