org.qi4j.index.sql.support.common
Class ReindexingStrategy.NeedOnChange

java.lang.Object
  extended by org.qi4j.index.sql.support.common.ReindexingStrategy.NeedOnChange
All Implemented Interfaces:
ReindexingStrategy
Enclosing interface:
ReindexingStrategy

public abstract static class ReindexingStrategy.NeedOnChange
extends Object
implements ReindexingStrategy

The re-indexing strategy, which re-indexes everything when application version changes. Useful when migration from versions is implemented, or when application structure changes along with version (but not during same version).


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.index.sql.support.common.ReindexingStrategy
ReindexingStrategy.AlwaysNeed, ReindexingStrategy.NeedOnChange, ReindexingStrategy.NeverNeed, ReindexingStrategy.ReindexingStrategyService
 
Constructor Summary
ReindexingStrategy.NeedOnChange()
           
 
Method Summary
 Boolean reindexingNeeded(String dbAppVersion, String currentAppVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReindexingStrategy.NeedOnChange

public ReindexingStrategy.NeedOnChange()
Method Detail

reindexingNeeded

public Boolean reindexingNeeded(String dbAppVersion,
                                String currentAppVersion)
Specified by:
reindexingNeeded in interface ReindexingStrategy