org.qi4j.index.sql.support.common

## Class RebuildingStrategy.NeedOnChange

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

- All Implemented Interfaces:
    RebuildingStrategy
  Enclosing interface:
    RebuildingStrategy

      public static class RebuildingStrategy.NeedOnChange
      extends Object
      implements RebuildingStrategy

  The re-building strategy, which re-builds 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.RebuildingStrategy

      `RebuildingStrategy.AlwaysNeed, RebuildingStrategy.NeedOnChange, RebuildingStrategy.NeverNeed`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RebuildingStrategy.NeedOnChange()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `rebuildingRequired(String dbAppVersion, String currentAppVersion)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RebuildingStrategy.NeedOnChange

          public RebuildingStrategy.NeedOnChange()

  - ### Method Detail

    - #### rebuildingRequired

          public boolean rebuildingRequired(String dbAppVersion,
                                   String currentAppVersion)

      Specified by:
        `rebuildingRequired` in interface `RebuildingStrategy`