org.nuiton.topia.index
Interface TopiaIndexImplementor

All Superinterfaces:
TopiaIndexService, TopiaService
All Known Implementing Classes:
LuceneIndexer

public interface TopiaIndexImplementor
extends TopiaIndexService

Class used internaly in framework, when you want implement new indexation engin, you must used this interface

Author:
poussin

Field Summary
 
Fields inherited from interface org.nuiton.topia.index.TopiaIndexService
SERVICE_NAME
 
Method Summary
 void clearLastRecordedIndexation()
          called after commit and rollback to clear the modification record
 void doIndexation()
          This method is called after commit, to indicate to index all record entry add with addForIndexation method
 void recordForIndexation(Object id, Object[] fields)
          During object modification in transaction, this method is called to store all modification, but modification must no be done on index
 
Methods inherited from interface org.nuiton.topia.index.TopiaIndexService
search, search
 
Methods inherited from interface org.nuiton.topia.framework.TopiaService
getPersistenceClasses, getServiceName, postInit, preInit
 

Method Detail

recordForIndexation

void recordForIndexation(Object id,
                         Object[] fields)
During object modification in transaction, this method is called to store all modification, but modification must no be done on index

Parameters:
id - topiaId object
fields - object field value

doIndexation

void doIndexation()
This method is called after commit, to indicate to index all record entry add with addForIndexation method


clearLastRecordedIndexation

void clearLastRecordedIndexation()
called after commit and rollback to clear the modification record



Copyright © 2004-2010 CodeLutin. All Rights Reserved.