org.qi4j.index.sql.support.common

## Class ReindexingStrategy.NeedOnChange

- java.lang.Object
- - org.qi4j.index.sql.support.common.ReindexingStrategy.NeedOnChange

- All Implemented Interfaces:
    ReindexingStrategy
  Enclosing interface:
    ReindexingStrategy

      public 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`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReindexingStrategy.NeedOnChange()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`