Top Description Constructors Methods
org.hsqldb.persist

public Class ScriptRunner

extends Object
Class Inheritance
Imports
java.io.EOFException, org.hsqldb.Database, .HsqlException, .HsqlNameManager.HsqlName, .Row, .Session, .Statement, .StatementDML, .StatementTypes, .Table, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.IntKeyHashMap, org.hsqldb.map.ValuePool, org.hsqldb.result.Result, org.hsqldb.scriptio.ScriptReaderBase, .ScriptReaderDecode, .ScriptReaderText, .StatementLineTypes

Restores the state of a Database instance from an SQL log file.

If there is an error, processing stops at that line and the message is logged to the application log. If memory runs out, an exception is thrown.

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.7.2
Version
2.7.3

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
runScript(Database database, String logFilename, boolean fullReplay)

This is used to read the *.log file and manage any necessary transaction rollback.

private static void
runScript(Database database, ScriptReaderBase scr, boolean fullReplay)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ScriptRunnerback to summary
public ScriptRunner()

Method Detail

runScriptback to summary
public static void runScript(Database database, String logFilename, boolean fullReplay)

This is used to read the *.log file and manage any necessary transaction rollback.

runScriptback to summary
private static void runScript(Database database, ScriptReaderBase scr, boolean fullReplay)