When using TEXT tables, a data source for each table is also present.
Notes
on OpenOffice.org integration. A Storage API is used when HSQLDB is integrated into OpenOffice.org. All file operations on the 4 main files are performed by OOo, which integrates the contents of these files into its database file. The script format is always TEXT in this case.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private DataFileCache | |
| private Database | |
| private String | |
| pack-priv ScriptWriterBase | |
| private FileAccess | |
| private boolean | |
| private boolean | |
| private String | |
| private long | |
| private HsqlDatabaseProperties | |
| private String | |
| private int |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv DataFileCache | |
| pack-priv String | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | open()
When opening a database, the hsqldb.compatible_version property is used to determine if this version of the engine is equal to or greater than the earliest version of the engine capable of opening that database. |
| pack-priv void | |
| private void | |
| private void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | writeOtherStatement(Session session, String s)
Various writeXXX() methods are used for logging statements. |
| pack-priv void | |
| pack-priv void |
| backupFileName | back to summary |
|---|---|
| private String backupFileName | |
| baseFileName | back to summary |
|---|---|
| private String baseFileName | |
| cache | back to summary |
|---|---|
| private DataFileCache cache | |
| database | back to summary |
|---|---|
| private Database database | |
| dataFileName | back to summary |
|---|---|
| private String dataFileName | |
| dbLogWriter | back to summary |
|---|---|
| pack-priv ScriptWriterBase dbLogWriter | |
| fa | back to summary |
|---|---|
| private FileAccess fa | |
| filesReadOnly | back to summary |
|---|---|
| private boolean filesReadOnly | |
| isModified | back to summary |
|---|---|
| private boolean isModified | |
| logFileName | back to summary |
|---|---|
| private String logFileName | |
| maxLogSize | back to summary |
|---|---|
| private long maxLogSize | |
| properties | back to summary |
|---|---|
| private HsqlDatabaseProperties properties | |
| scriptFileName | back to summary |
|---|---|
| private String scriptFileName | |
| writeDelay | back to summary |
|---|---|
| private int writeDelay | |
| Log | back to summary |
|---|---|
| pack-priv Log(Database db) | |
| checkpoint | back to summary |
|---|---|
| private boolean checkpoint() | |
| checkpoint | back to summary |
|---|---|
| pack-priv void checkpoint(Session session, boolean defrag) Performs checkpoint including pre and post operations. Returns to the same state as before the checkpoint. | |
| checkpointClose | back to summary |
|---|---|
| pack-priv boolean checkpointClose() Performs checkpoint including pre and post operations. Returns to the same state as before the checkpoint. | |
| checkpointReopen | back to summary |
|---|---|
| pack-priv boolean checkpointReopen() | |
| close | back to summary |
|---|---|
| pack-priv void close(boolean script) Close all the database files. If script argument is true, no .data or .backup file will remain and the .script file will contain all the data of the cached tables as well as memory tables. This is not used for filesReadOnly databases which use shutdown. | |
| closeImmediately | back to summary |
|---|---|
| pack-priv void closeImmediately() Fast counterpart to close(). Does not perform a checkpoint or delete backup of the .data file. | |
| closeLog | back to summary |
|---|---|
| pack-priv void closeLog() | |
| defrag | back to summary |
|---|---|
| public boolean defrag(Session session) Writes out all the rows to a new .data file without fragmentation. | |
| deleteBackupFile | back to summary |
|---|---|
| pack-priv void deleteBackupFile() | |
| deleteDataFile | back to summary |
|---|---|
| pack-priv void deleteDataFile() | |
| deleteFile | back to summary |
|---|---|
| pack-priv static void deleteFile(FileAccess fileAccess, String fileName) | |
| deleteLogFile | back to summary |
|---|---|
| pack-priv void deleteLogFile() | |
| deleteNewAndOldFiles | back to summary |
|---|---|
| pack-priv void deleteNewAndOldFiles() Deletes the leftovers from any previous unfinished operations. | |
| deleteNewScriptFile | back to summary |
|---|---|
| pack-priv void deleteNewScriptFile() | |
| deleteOldFiles | back to summary |
|---|---|
| pack-priv void deleteOldFiles() | |
| deleteOldTempFiles | back to summary |
|---|---|
| pack-priv void deleteOldTempFiles() | |
| deleteTempFileDirectory | back to summary |
|---|---|
| pack-priv void deleteTempFileDirectory() | |
| forceDefrag | back to summary |
|---|---|
| pack-priv boolean forceDefrag() Returns true if lost space is above the threshold percentage. | |
| getCache | back to summary |
|---|---|
| pack-priv DataFileCache getCache() Responsible for creating the data file cache instance. | |
| getLogFileName | back to summary |
|---|---|
| pack-priv String getLogFileName() | |
| getWriteDelay | back to summary |
|---|---|
| pack-priv int getWriteDelay() Write delay specifies the frequency of FileDescriptor.sync() calls. | |
| hasCache | back to summary |
|---|---|
| pack-priv boolean hasCache() | |
| initParams | back to summary |
|---|---|
| pack-priv void initParams() | |
| isAnyCacheModified | back to summary |
|---|---|
| pack-priv boolean isAnyCacheModified() Checks all the caches and returns true if the modified flag is set for any | |
| open | back to summary |
|---|---|
| pack-priv void open() When opening a database, the hsqldb.compatible_version property is used to determine if this version of the engine is equal to or greater than the earliest version of the engine capable of opening that database. | |
| openLog | back to summary |
|---|---|
| pack-priv void openLog() Wrappers for opening-starting / stopping-closing the log file and writer. | |
| processLog | back to summary |
|---|---|
| private void processLog() Performs all the commands in the .log file. | |
| processScript | back to summary |
|---|---|
| private void processScript() Performs all the commands in the .script file. | |
| renameNewDataFile | back to summary |
|---|---|
| pack-priv boolean renameNewDataFile() | |
| renameNewFile | back to summary |
|---|---|
| pack-priv boolean renameNewFile(FileAccess fileAccess, String baseFileName) | |
| renameNewScriptFile | back to summary |
|---|---|
| pack-priv boolean renameNewScriptFile() | |
| setDataChangeLog | back to summary |
|---|---|
| pack-priv void setDataChangeLog() | |
| setLogSize | back to summary |
|---|---|
| pack-priv void setLogSize(int megas) | |
| setModified | back to summary |
|---|---|
| private void setModified() | |
| setWriteDelay | back to summary |
|---|---|
| pack-priv void setWriteDelay(int delay) | |
| synchLog | back to summary |
|---|---|
| pack-priv void synchLog() | |
| writeCommitStatement | back to summary |
|---|---|
| pack-priv void writeCommitStatement(Session session) | |
| writeDeleteStatement | back to summary |
|---|---|
| pack-priv void writeDeleteStatement(Session session, Table t, Object[] row) | |
| writeInsertStatement | back to summary |
|---|---|
| pack-priv void writeInsertStatement(Session session, Row row, Table t) | |
| writeOtherStatement | back to summary |
|---|---|
| pack-priv void writeOtherStatement(Session session, String s) Various writeXXX() methods are used for logging statements. INSERT, DELETE and SEQUENCE statements do not check log size | |
| writeScript | back to summary |
|---|---|
| pack-priv void writeScript(boolean full) Write the .script file as .script.new. | |
| writeSequenceStatement | back to summary |
|---|---|
| pack-priv void writeSequenceStatement(Session session, NumberSequence s) | |