org.compass.gps.device.jpa.indexer
Class DefaultJpaIndexEntitiesIndexer
java.lang.Object
org.compass.gps.device.jpa.indexer.DefaultJpaIndexEntitiesIndexer
- All Implemented Interfaces:
- JpaIndexEntitiesIndexer, IndexEntitiesIndexer
public class DefaultJpaIndexEntitiesIndexer
- extends Object
- implements JpaIndexEntitiesIndexer
The default JPA indexer. Uses plain JPA API to do pagination (setFirstResult
and setMaxResults).
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJpaIndexEntitiesIndexer
public DefaultJpaIndexEntitiesIndexer()
setJpaGpsDevice
public void setJpaGpsDevice(JpaGpsDevice jpaGpsDevice)
- Description copied from interface:
JpaIndexEntitiesIndexer
- Sets the jpa gps device for the given indexer. Called once when the device
starts up.
- Specified by:
setJpaGpsDevice in interface JpaIndexEntitiesIndexer
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.