Java Doc for ScriptWriterText.java in  » Database-DBMS » hsql » org » hsqldb » scriptio » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb.scriptio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Field Summary
final static  byte[]BYTES_COMMIT
    
final static  byte[]BYTES_C_ID_INIT
    
final static  byte[]BYTES_C_ID_TERM
    
final static  byte[]BYTES_DELETE_FROM
    
final static  byte[]BYTES_INSERT_INTO
    
final public static  byte[]BYTES_LINE_SEP
    
final static  byte[]BYTES_SCHEMA
    
final static  byte[]BYTES_SEQUENCE
    
final static  byte[]BYTES_SEQUENCE_MID
    
final static  byte[]BYTES_TERM
    
final static  byte[]BYTES_VALUES
    
final static  byte[]BYTES_WHERE
    
 RowOutputTextLogrowOut
    

Constructor Summary
 ScriptWriterText()
    
public  ScriptWriterText(Database db, String file, boolean includeCachedData, boolean newFile, boolean isDump)
    

Method Summary
protected  voidaddSessionId(Session session)
    
protected  voidfinalize()
    
protected  voidinitBuffers()
    
public  voidwriteCommitStatement(Session session)
    
protected  voidwriteDataTerm()
    
public  voidwriteDeleteStatement(Session session, Table table, Object[] data)
    
public  voidwriteInsertStatement(Session session, Table table, Object[] data)
    
public  voidwriteLogStatement(Session session, String s)
    
protected  voidwriteRow(Session session, Table table, Object[] data)
    
public  voidwriteSequenceStatement(Session session, NumberSequence seq)
    
protected  voidwriteTableInit(Table t)
    

Field Detail
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)



rowOut
RowOutputTextLog rowOut(Code)




Constructor Detail
ScriptWriterText
ScriptWriterText()(Code)



ScriptWriterText
public ScriptWriterText(Database db, String file, boolean includeCachedData, boolean newFile, boolean isDump) throws HsqlException(Code)




Method Detail
addSessionId
protected void addSessionId(Session session) throws IOException(Code)



finalize
protected void finalize()(Code)



initBuffers
protected void initBuffers()(Code)



writeCommitStatement
public void writeCommitStatement(Session session) throws HsqlException, IOException(Code)



writeDataTerm
protected void writeDataTerm() throws IOException(Code)



writeDeleteStatement
public void writeDeleteStatement(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)



writeInsertStatement
public void writeInsertStatement(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)



writeLogStatement
public void writeLogStatement(Session session, String s) throws IOException, HsqlException(Code)



writeRow
protected void writeRow(Session session, Table table, Object[] data) throws HsqlException, IOException(Code)



writeSequenceStatement
public void writeSequenceStatement(Session session, NumberSequence seq) throws HsqlException, IOException(Code)



writeTableInit
protected void writeTableInit(Table t) throws HsqlException, IOException(Code)



Fields inherited from org.hsqldb.scriptio.ScriptWriterBase
final static int INSERT(Code)(Java Doc)
final static int INSERT_WITH_SCHEMA(Code)(Java Doc)
final public static String[] LIST_SCRIPT_FORMATS(Code)(Java Doc)
final public static int SCRIPT_BINARY_172(Code)(Java Doc)
final public static int SCRIPT_TEXT_170(Code)(Java Doc)
final public static int SCRIPT_ZIPPED_BINARY_172(Code)(Java Doc)
volatile boolean busyWriting(Code)(Java Doc)
long byteCount(Code)(Java Doc)
Session currentSession(Code)(Java Doc)
Database database(Code)(Java Doc)
OutputStream fileStreamOut(Code)(Java Doc)
volatile boolean forceSync(Code)(Java Doc)
boolean includeCachedData(Code)(Java Doc)
boolean isDump(Code)(Java Doc)
volatile boolean needsSync(Code)(Java Doc)
FileAccess.FileSync outDescriptor(Code)(Java Doc)
String outFile(Code)(Java Doc)
HsqlName schemaToLog(Code)(Java Doc)
int tableRowCount(Code)(Java Doc)
protected volatile int writeDelay(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.