org.modeshape.jcr

## Class Upgrades.UpgradeOperation

- java.lang.Object
- - org.modeshape.jcr.Upgrades.UpgradeOperation

- Direct Known Subclasses:
    Upgrades.ModeShape_3_6_0, Upgrades.ModeShape_3_7_4
  Enclosing class:
    Upgrades

      protected abstract static class Upgrades.UpgradeOperation
      extends Object

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Upgrades.UpgradeOperation(int id)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `apply(Upgrades.Context resources)` Apply this upgrade operation to the supplied running repository.
    `int` | `getId()` Get the identifier for this upgrade.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Upgrades.UpgradeOperation

          protected Upgrades.UpgradeOperation(int id)

  - ### Method Detail

    - #### getId

          public int getId()

      Get the identifier for this upgrade. This should be unique and sortable with respect to all other identifiers.
      Returns:
        this upgrade's identifier; always positive

    - #### apply

          public abstract void apply(Upgrades.Context resources)

      Apply this upgrade operation to the supplied running repository.
      Parameters:
        `resources` - the resources for the repository; never null

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.