|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.upgrade.patchers.JdbcPatchEngine
public class JdbcPatchEngine
This class persists patch information for a given installation. It provides the upgrader tool information about the current patch level and can set patch level among other things. This class uses a database to persist the information and uses JDBC to connect to the database.
| Constructor Summary | |
|---|---|
JdbcPatchEngine()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcPatchEngine()
| Method Detail |
|---|
public void addPatchInfo(int level)
throws java.lang.Exception
PatchEngine
addPatchInfo in interface PatchEnginejava.lang.Exception
public int getPatchLevel()
throws java.lang.Exception
PatchEngine
getPatchLevel in interface PatchEnginejava.lang.Exception
public void init()
throws java.lang.Exception
PatchEngine
init in interface PatchEnginejava.lang.Exception
public void commit()
throws java.lang.Exception
PatchEngine
commit in interface PatchEnginejava.lang.Exception
public void rollback()
throws java.lang.Exception
PatchEngine
rollback in interface PatchEnginejava.lang.Exception
public void close()
throws java.lang.Exception
PatchEngine
close in interface PatchEnginejava.lang.Exception
public void setAutoCommit(boolean value)
throws java.lang.Exception
PatchEngine
setAutoCommit in interface PatchEnginevalue - true or false.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||