| java.lang.Object org.hsqldb.scriptio.ScriptWriterBase org.hsqldb.scriptio.ScriptWriterText
ScriptWriterText | public class ScriptWriterText extends ScriptWriterBase (Code) | | Handles all scripting and logging operations. A script consists of two blocks:
DDL: SQL statements for table and user definitions
DATA: INSERT statements for memory tables
This happens as part of the CHECKPOINT and SHUTDOWN COMPACT
process. In this case, the
DATA block contains the CACHED table data as well.
A related use for this class is for saving a current snapshot of the
database data to a user-defined file with the SCRIPT command
A log consists of SQL statements of different types. Each statement is
encoded as ASCII and saved.
author: fredt@users version: 1.8.0 since: 1.7.2 |
BYTES_COMMIT | final static byte[] BYTES_COMMIT(Code) | | |
BYTES_C_ID_INIT | final static byte[] BYTES_C_ID_INIT(Code) | | |
BYTES_C_ID_TERM | final static byte[] BYTES_C_ID_TERM(Code) | | |
BYTES_DELETE_FROM | final static byte[] BYTES_DELETE_FROM(Code) | | |
BYTES_INSERT_INTO | final static byte[] BYTES_INSERT_INTO(Code) | | |
BYTES_LINE_SEP | final public static byte[] BYTES_LINE_SEP(Code) | | |
BYTES_SCHEMA | final static byte[] BYTES_SCHEMA(Code) | | |
BYTES_SEQUENCE | final static byte[] BYTES_SEQUENCE(Code) | | |
BYTES_SEQUENCE_MID | final static byte[] BYTES_SEQUENCE_MID(Code) | | |
BYTES_TERM | final static byte[] BYTES_TERM(Code) | | |
BYTES_VALUES | final static byte[] BYTES_VALUES(Code) | | |
BYTES_WHERE | final static byte[] BYTES_WHERE(Code) | | |
ScriptWriterText | ScriptWriterText()(Code) | | |
finalize | protected void finalize()(Code) | | |
initBuffers | protected void initBuffers()(Code) | | |
Methods inherited from org.hsqldb.scriptio.ScriptWriterBase | abstract protected void addSessionId(Session session) throws IOException(Code)(Java Doc) public void close() throws HsqlException(Code)(Java Doc) protected void finishStream() throws IOException(Code)(Java Doc) public int getWriteDelay()(Code)(Java Doc) abstract protected void initBuffers()(Code)(Java Doc) public static ScriptWriterBase newScriptWriter(Database db, String file, boolean includeCachedData, boolean newFile, int scriptType) throws HsqlException(Code)(Java Doc) protected void openFile() throws HsqlException(Code)(Java Doc) public void reopen() throws HsqlException(Code)(Java Doc) public void run()(Code)(Java Doc) public void setWriteDelay(int delay)(Code)(Java Doc) public long size()(Code)(Java Doc) public void start()(Code)(Java Doc) public void stop()(Code)(Java Doc) public synchronized void sync()(Code)(Java Doc) public void writeAll() throws HsqlException(Code)(Java Doc) abstract public void writeCommitStatement(Session session) throws HsqlException, IOException(Code)(Java Doc) protected void writeDDL() throws IOException, HsqlException(Code)(Java Doc) abstract protected void writeDataTerm() throws IOException(Code)(Java Doc) abstract public void writeDeleteStatement(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)(Java Doc) protected void writeExistingData() throws HsqlException, IOException(Code)(Java Doc) abstract public void writeInsertStatement(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)(Java Doc) abstract public void writeLogStatement(Session session, String s) throws IOException, HsqlException(Code)(Java Doc) abstract void writeRow(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)(Java Doc) abstract public void writeSequenceStatement(Session session, NumberSequence seq) throws HsqlException, IOException(Code)(Java Doc) protected void writeSingleColumnResult(Result r) throws HsqlException, IOException(Code)(Java Doc) protected void writeTableInit(Table t) throws HsqlException, IOException(Code)(Java Doc) protected void writeTableTerm(Table t) throws HsqlException, IOException(Code)(Java Doc)
|
|
|