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.
|
java.lang.String |
apply()
Applies the patch.
|
java.util.List |
getAlternatives()
Get patches that could have done the work already
|
java.util.List |
getDependsOn()
Get patches that this patch depends on
|
java.lang.String |
getDescription() |
int |
getFixesFromSchema() |
int |
getFixesToSchema() |
java.lang.String |
getId() |
int |
getTargetSchema() |
boolean |
isForce() |
boolean |
requiresTransaction()
Does the patch need to be wrapped in a transaction?
|
java.lang.String getId()
java.lang.String getDescription()
int getFixesFromSchema()
int getFixesToSchema()
int getTargetSchema()
boolean isForce()
java.util.List getDependsOn()
java.util.List getAlternatives()
boolean applies(int version)
version - a schema version number(fixesFromVersion <= version <= fixesToVersion)boolean requiresTransaction()
java.lang.String apply()
throws PatchException
PatchException - if the patch failed to be appliedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.