|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PatchEngine
An interface that patch engines must implement. A patch engine acts as a
persistence layer for patch information. It is used by the upgrader tool to
store and retrieve patch information among other things. A default patch
engine is provided by the tool
org.cafesip.upgrade.patchers.JdbcPathEngine but application can
override the default patch engine by setting the property -
org.cafesip.upgrade.custom.patcher. The the value for the property must
contain a fully qualified class name of the patch engine.
| Method Summary | |
|---|---|
void |
addPatchInfo(int level)
Add new patch information. |
void |
close()
Close connection to the persistence layer. |
void |
commit()
Commit all the patch information added by the upgrade process along with other changes executed by patch scripts. |
int |
getPatchLevel()
Returns the current patch level. |
void |
init()
This method is called immediately upon instantiation of the patch engine object. |
void |
rollback()
Rolls back all the patch information added during the upgrade process along with other changes executed by the patch script. |
void |
setAutoCommit(boolean value)
Sets auto-commit to on or off. |
| Method Detail |
|---|
void init()
throws java.lang.Exception
java.lang.Exception
int getPatchLevel()
throws java.lang.Exception
java.lang.Exception
void addPatchInfo(int level)
throws java.lang.Exception
level -
java.lang.Exception
void commit()
throws java.lang.Exception
java.lang.Exception
void rollback()
throws java.lang.Exception
java.lang.Exception
void close()
throws java.lang.Exception
java.lang.Exception
void setAutoCommit(boolean value)
throws java.lang.Exception
value - true or false.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||