org.compass.gps.device.hibernate.indexer
Class PaginationHibernateIndexEntitiesIndexer
java.lang.Object
org.compass.gps.device.hibernate.indexer.PaginationHibernateIndexEntitiesIndexer
- All Implemented Interfaces:
- HibernateIndexEntitiesIndexer, IndexEntitiesIndexer
public class PaginationHibernateIndexEntitiesIndexer
- extends Object
- implements HibernateIndexEntitiesIndexer
A Hibernate indexer uses Hibernate pagination using setFirstResult
and setMaxResults.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaginationHibernateIndexEntitiesIndexer
public PaginationHibernateIndexEntitiesIndexer()
setHibernateGpsDevice
public void setHibernateGpsDevice(HibernateGpsDevice device)
- Description copied from interface:
HibernateIndexEntitiesIndexer
- Sets the Hibernate gps device for the given indexer. Called once when the device
starts up.
- Specified by:
setHibernateGpsDevice in interface HibernateIndexEntitiesIndexer
performIndex
public void performIndex(CompassSession session,
IndexEntity[] entities)
- Description copied from interface:
IndexEntitiesIndexer
- Performs the actual indexing of the list of index entities. Usually, an
index entity represent a group of indexable content (like a certain class
when using ORM, or a select statement). This method perform the fetching
of the data and indexing it in Compass using the provided Compass session.
- Specified by:
performIndex in interface IndexEntitiesIndexer
- Parameters:
session - The compass session to index the data withentities - A list of entities to perform the indexing by
Copyright (c) 2004-2008 The Compass Project.