public class Upgrades extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Upgrades.Context |
protected static class |
Upgrades.ModeShape_3_6_0
Upgrade operation handling moving to ModeShape 3.6.0.Final.
|
protected static class |
Upgrades.ModeShape_4_0_0_Alpha1
Upgrade operation handling moving to ModeShape 4.0.0.Alpha1.
|
protected static class |
Upgrades.ModeShape_4_0_0_Beta3
Upgrade operation handling moving to ModeShape 4.0.0.Beta3.
|
protected static class |
Upgrades.UpgradeOperation |
Modifier and Type | Field and Description |
---|---|
protected static int |
EMPTY_UPGRADES_ID |
protected static Logger |
LOGGER |
static Upgrades |
STANDARD_UPGRADES
The standard upgrades for the built-in components and content of ModeShape.
|
Modifier | Constructor and Description |
---|---|
protected |
Upgrades(Upgrades.UpgradeOperation... operations) |
Modifier and Type | Method and Description |
---|---|
int |
applyUpgradesSince(int lastId,
Upgrades.Context resources)
Apply any upgrades that are more recent than identified by the last upgraded identifier.
|
int |
getLatestAvailableUpgradeId()
Get the identifier of the latest upgrade known to this object.
|
boolean |
isUpgradeRequired(int lastId)
Determine if an
upgrade is required given the identifier of the last known
upgrade, which is compared to the identifiers of the registered upgrades. |
protected static final Logger LOGGER
protected static final int EMPTY_UPGRADES_ID
public static final Upgrades STANDARD_UPGRADES
protected Upgrades(Upgrades.UpgradeOperation... operations)
public final int applyUpgradesSince(int lastId, Upgrades.Context resources)
lastId
- the identifier of the last upgrade that was successfully run against the repositoryresources
- the resources for the repositorylastId
public final boolean isUpgradeRequired(int lastId)
upgrade
is required given the identifier of the last known
upgrade, which is compared to the identifiers of the registered upgrades.lastId
- the identifier of the last known/successful upgrade previously applied to the repositorypublic final int getLatestAvailableUpgradeId()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.