org.qi4j.migration.operation

## Class RenameEntity

- java.lang.Object
- - org.qi4j.migration.operation.RenameEntity

- All Implemented Interfaces:
    EntityMigrationOperation

      public class RenameEntity
      extends Object
      implements EntityMigrationOperation

  Rename an Entity type

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RenameEntity(String fromName, String toName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `downgrade(JSONObject state, StateStore stateStore, Migrator migrator)`
    `String` | `toString()`
    `boolean` | `upgrade(JSONObject state, StateStore stateStore, Migrator migrator)`

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

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

- - ### Constructor Detail

    - #### RenameEntity

          public RenameEntity(String fromName,
                      String toName)

  - ### Method Detail

    - #### upgrade

          public boolean upgrade(JSONObject state,
                        StateStore stateStore,
                        Migrator migrator)
                          throws JSONException

      Specified by:
        `upgrade` in interface `EntityMigrationOperation`
      Throws:
        `JSONException`

    - #### downgrade

          public boolean downgrade(JSONObject state,
                          StateStore stateStore,
                          Migrator migrator)
                            throws JSONException

      Specified by:
        `downgrade` in interface `EntityMigrationOperation`
      Throws:
        `JSONException`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`