|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Patch
A patch is an executable class that makes a change to persisted data.
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
Method Summary | |
---|---|
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? |
Method Detail |
---|
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 applied
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |