Class PaginationHibernateIndexEntitiesIndexer

  extended by 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.


Constructor Summary
Method Summary
 void performIndex(CompassSession session, IndexEntity[] entities)
          Performs the actual indexing of the list of index entities.
 void setHibernateGpsDevice(HibernateGpsDevice device)
          Sets the Hibernate gps device for the given indexer.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PaginationHibernateIndexEntitiesIndexer()
Method Detail


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


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
session - The compass session to index the data with
entities - A list of entities to perform the indexing by

Copyright (c) 2004-2008 The Compass Project.