|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.upgrade.tasks.AbstractDatabaseUpgradeTask
public abstract class AbstractDatabaseUpgradeTask
An upgrade task that can be used to execute a sql script.
| Constructor Summary | |
|---|---|
AbstractDatabaseUpgradeTask()
|
|
| Method Summary | |
|---|---|
protected boolean |
doesTableExist(java.lang.String tableName)
Return true if the specified table exists, false otherwise. |
protected void |
executeSQLScript(java.lang.String script)
Executes a SQL script. |
protected static int |
executeStatement(java.lang.String sql)
Executes a sql statement. |
protected boolean |
isSQLCommandPart(java.lang.String line)
Returns true if a line from a SQL schema is a valid command part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jivesoftware.forum.upgrade.UpgradeTask |
|---|
doTask, getDescription, getEstimatedRunTime, getInstructionsFile, getName |
| Constructor Detail |
|---|
public AbstractDatabaseUpgradeTask()
| Method Detail |
|---|
protected void executeSQLScript(java.lang.String script)
throws java.io.IOException,
java.sql.SQLException
script - the script to execute.
java.io.IOException - if an IOException occurs.
java.sql.SQLException - if an SQLException occurs.protected boolean isSQLCommandPart(java.lang.String line)
line - the line of the schema.
protected static int executeStatement(java.lang.String sql)
throws java.sql.SQLException
sql - the sql statement to execute
java.sql.SQLException - if the statement could not be executed.protected boolean doesTableExist(java.lang.String tableName)
tableName - the name of the table
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||