|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.upgrade.runners.SqlScriptRunner
public class SqlScriptRunner
The class executes SQL script. An instance of this class handles files with .sql extension. It is tested only with MySQL at this point.
| Constructor Summary | |
|---|---|
SqlScriptRunner()
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
execute(java.io.File file)
The upgrader tool calls this method when a patch of a particular type needs to be executed. |
void |
setConnection(java.sql.Connection connection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlScriptRunner()
| Method Detail |
|---|
public void execute(java.io.File file)
throws java.lang.Exception
ScriptRunner
execute in interface ScriptRunnerfile - the file to be processed
java.lang.Exception - when an error is encounteredpublic void setConnection(java.sql.Connection connection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||