public interface Patch
Auditing information is not maintained by the patch - rather it is solely responsible for the execution of the processes necessary to apply the patch.
Patches must not be reappliable. It is up to the patch management systems to ensure that patches are never reapplied.
AbstractPatch
Modifier and Type | Method and Description |
---|---|
boolean |
applies(int version)
Check if the patch is applicable to a given schema version.
|
String |
apply()
Applies the patch.
|
String |
applyAsync()
Apply the patch, regardless of the deferred flag.
|
List<Patch> |
getAlternatives()
Get patches that could have done the work already
|
List<Patch> |
getDependsOn()
Get patches that this patch depends on
|
String |
getDescription() |
int |
getFixesFromSchema() |
int |
getFixesToSchema() |
String |
getId() |
int |
getTargetSchema() |
boolean |
isDeferred()
Indicates whether the patch must be deferred (not to be executed in bootstrap) or not
|
boolean |
isForce() |
boolean |
isIgnored()
Is this patch just ignored - never considered for application
|
boolean |
requiresTransaction()
Does the patch need to be wrapped in a transaction?
|
String getId()
String getDescription()
int getFixesFromSchema()
int getFixesToSchema()
int getTargetSchema()
boolean isForce()
List<Patch> getDependsOn()
List<Patch> getAlternatives()
boolean applies(int version)
version
- a schema version number(fixesFromVersion <= version <= fixesToVersion)
boolean requiresTransaction()
String apply() throws PatchException
PatchException
- if the patch failed to be appliedString applyAsync() throws PatchException
PatchException
- if the patch failed to be appliedboolean isIgnored()
boolean isDeferred()
Copyright © 2005–2017 Alfresco Software. All rights reserved.