Implements a storage manager wrapper that provides a consistent, always available interface to storage management for the Database class, despite the fact not all Database objects actually use file storage.
| Modifier and Type | Field and Description |
|---|---|
| public SimpleLog | |
| public static final String | |
| pack-priv DbBackup | |
| public static final String | |
| pack-priv AtomicInteger | |
| pack-priv AtomicInteger | |
| pack-priv boolean | |
| private Crypto | |
| private Database | |
| public static final String | |
| public FileAccess | |
| public SimpleDateFormat | |
| pack-priv FrameworkLogger | |
| public boolean | |
| public boolean | |
| pack-priv static final int | |
| public static final String | |
| private LockFile | |
| public static final String | |
| pack-priv Log | |
| public static final String | |
| private boolean | |
| private boolean | |
| pack-priv long | |
| public static final String | |
| public static final String | |
| private int | |
| private long | |
| pack-priv boolean | |
| pack-priv int | |
| private int | |
| pack-priv int | |
| public static final String | |
| private int | |
| private int | |
| pack-priv long | |
| pack-priv int | |
| private boolean | |
| pack-priv boolean | |
| pack-priv int | |
| private boolean | |
| private int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv int | |
| private int | |
| private static final char | |
| public static final String | |
| public SimpleLog | |
| public static final String | |
| pack-priv FrameworkLogger | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv String | |
| public TextTableStorageManager |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| pack-priv void | backupInternal(String destPath, boolean script, boolean blocking, boolean compressed, boolean asFiles)
|
| public void | |
| private void | |
| pack-priv static void | |
| public boolean | Returns: true if closed with no problems or false if a problem was encountered.The mode in which to shut down the logging
process
closemode)
Shuts down the logging process using the specified mode. |
| public DataFileCache | |
| public int | |
| public long | |
| public Crypto | |
| public int | |
| public int | |
| public int | |
| public int | |
| private void | |
| public FileAccess | |
| public long | |
| public int | |
| public int | |
| public int | |
| public List | |
| public HashMap | |
| public String | getSecurePath(String path, boolean allowFull, boolean includeRes)
Returns a secure path or null for a user-defined path when hsqldb.allow_full_path is false. |
| public int | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | logSevereEvent(String message, Throwable t)
Implements org.
|
| public void | logStatementEvent(Session session, Statement statement, Object[] paramValues, Result result, int level)
|
| public void | logWarningEvent(String message, Throwable t)
Implements org.
|
| public boolean | |
| public Index | newIndex(HsqlNameManager.
|
| public PersistentStore | |
| pack-priv String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public synchronized void | |
| public synchronized void | setLogSize(int
size in MB megas)Sets the maximum size to which the log file can grow before being automatically checkpointed. |
| public void | |
| public void | |
| public synchronized void | setScriptType(int
The type format)Sets the type of script file, currently 0 for text (default) 3 for compressed |
| public void | |
| private void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | writeDeleteStatement(Session session, Table t, Object[] row)
Used exclusively by PersistentStore objects |
| public synchronized void | writeInsertStatement(Session session, Row row, Table table)
Used exclusively by PersistentStore objects |
| public synchronized void | writeOtherStatement(Session session, String statement)
Records a Log entry for the specified SQL statement, on behalf of the specified Session object. |
| public synchronized void |
| appLog | back to summary |
|---|---|
| public SimpleLog appLog | |
| appLogFileExtension | back to summary |
|---|---|
| public static final String appLogFileExtension | |
| backup | back to summary |
|---|---|
| pack-priv DbBackup backup | |
| backupFileExtension | back to summary |
|---|---|
| public static final String backupFileExtension | |
| backupState | back to summary |
|---|---|
| pack-priv AtomicInteger backupState | |
| checkpointState | back to summary |
|---|---|
| pack-priv AtomicInteger checkpointState | |
| cryptLobs | back to summary |
|---|---|
| pack-priv boolean cryptLobs | |
| crypto | back to summary |
|---|---|
| private Crypto crypto | |
| database | back to summary |
|---|---|
| private Database database | |
| dataFileExtension | back to summary |
|---|---|
| public static final String dataFileExtension | |
| fileAccess | back to summary |
|---|---|
| public FileAccess fileAccess | |
| fileDateFormat | back to summary |
|---|---|
| public SimpleDateFormat fileDateFormat | |
| fwLogger | back to summary |
|---|---|
| pack-priv FrameworkLogger fwLogger | |
| isNewDatabase | back to summary |
|---|---|
| public boolean isNewDatabase | |
| isSingleFile | back to summary |
|---|---|
| public boolean isSingleFile | |
| largeDataFactor | back to summary |
|---|---|
| pack-priv static final int largeDataFactor | |
| lobsFileExtension | back to summary |
|---|---|
| public static final String lobsFileExtension | |
| lockFile | back to summary |
|---|---|
| private LockFile lockFile | |
| lockFileExtension | back to summary |
|---|---|
| public static final String lockFileExtension | |
| log | back to summary |
|---|---|
| pack-priv Log log | |
| logFileExtension | back to summary |
|---|---|
| public static final String logFileExtension | |
| loggingEnabled | back to summary |
|---|---|
| private boolean loggingEnabled | |
| logsStatements | back to summary |
|---|---|
| private boolean logsStatements | |
| maxLogSize | back to summary |
|---|---|
| pack-priv long maxLogSize | |
| newFileExtension | back to summary |
|---|---|
| public static final String newFileExtension | |
| oldFileExtension | back to summary |
|---|---|
| public static final String oldFileExtension | |
| propCacheMaxRows | back to summary |
|---|---|
| private int propCacheMaxRows | |
| propCacheMaxSize | back to summary |
|---|---|
| private long propCacheMaxSize | |
| propCompressLobs | back to summary |
|---|---|
| pack-priv boolean propCompressLobs | |
| propDataFileDefragLimit | back to summary |
|---|---|
| pack-priv int propDataFileDefragLimit | |
| propDataFileScale | back to summary |
|---|---|
| private int propDataFileScale | |
| propDataFileSpace | back to summary |
|---|---|
| pack-priv int propDataFileSpace | |
| propertiesFileExtension | back to summary |
|---|---|
| public static final String propertiesFileExtension | |
| propEventLogLevel | back to summary |
|---|---|
| private int propEventLogLevel | |
| propExternalEventLogLevel | back to summary |
|---|---|
| private int propExternalEventLogLevel | |
| propFilesTimestamp | back to summary |
|---|---|
| pack-priv long propFilesTimestamp | |
| propGC | back to summary |
|---|---|
| pack-priv int propGC | |
| propIsFileDatabase | back to summary |
|---|---|
| private boolean propIsFileDatabase | |
| propLargeData | back to summary |
|---|---|
| pack-priv boolean propLargeData | |
| propLobBlockSize | back to summary |
|---|---|
| pack-priv int propLobBlockSize | |
| propLogData | back to summary |
|---|---|
| private boolean propLogData | |
| propLogSize | back to summary |
|---|---|
| private int propLogSize | |
| propMaxFreeBlocks | back to summary |
|---|---|
| pack-priv int propMaxFreeBlocks | |
| propNioDataFile | back to summary |
|---|---|
| pack-priv boolean propNioDataFile | |
| propNioMaxSize | back to summary |
|---|---|
| pack-priv long propNioMaxSize | |
| propRefIntegrity | back to summary |
|---|---|
| pack-priv boolean propRefIntegrity | |
| propScriptFormat | back to summary |
|---|---|
| pack-priv int propScriptFormat | |
| propSqlLogLevel | back to summary |
|---|---|
| pack-priv int propSqlLogLevel | |
| propTextAllowFullPath | back to summary |
|---|---|
| pack-priv boolean propTextAllowFullPath | |
| propTextSourceDefault | back to summary |
|---|---|
| pack-priv String propTextSourceDefault | |
| propTxMode | back to summary |
|---|---|
| pack-priv int propTxMode | |
| propWriteDelay | back to summary |
|---|---|
| private int propWriteDelay | |
| runtimeFileDelim | back to summary |
|---|---|
| private static final char runtimeFileDelim | |
| scriptFileExtension | back to summary |
|---|---|
| public static final String scriptFileExtension | |
| sqlLog | back to summary |
|---|---|
| public SimpleLog sqlLog | |
| sqlLogFileExtension | back to summary |
|---|---|
| public static final String sqlLogFileExtension | |
| sqlLogger | back to summary |
|---|---|
| pack-priv FrameworkLogger sqlLogger | |
| stateBackup | back to summary |
|---|---|
| pack-priv static final int stateBackup | |
| stateCheckpoint | back to summary |
|---|---|
| pack-priv static final int stateCheckpoint | |
| stateCheckpointDue | back to summary |
|---|---|
| pack-priv static final int stateCheckpointDue | |
| stateCheckpointNormal | back to summary |
|---|---|
| pack-priv static final int stateCheckpointNormal | |
| stateCheckpointRequired | back to summary |
|---|---|
| pack-priv static final int stateCheckpointRequired | |
| stateNormal | back to summary |
|---|---|
| pack-priv static final int stateNormal | |
| tempDirectoryPath | back to summary |
|---|---|
| pack-priv String tempDirectoryPath | |
| textTableManager | back to summary |
|---|---|
| public TextTableStorageManager textTableManager | |
| Logger | back to summary |
|---|---|
| public Logger(Database database) | |
| acquireLock | back to summary |
|---|---|
| public void acquireLock(String path) | |
| backup | back to summary |
|---|---|
| public void backup(String destPath, boolean script, boolean blocking, boolean compressed, boolean files) | |
| backupInternal | back to summary |
|---|---|
| pack-priv void backupInternal(String destPath, boolean script, boolean blocking, boolean compressed, boolean asFiles) | |
| checkpoint | back to summary |
|---|---|
| public void checkpoint(Session session, boolean defrag, boolean lobs) Checkpoints the database. The most important effect of calling this method is to cause the log file to be rewritten in the most efficient form to reflect the current state of the database, i.e. only the DDL and insert DML required to recreate the database in its present state. Other house-keeping duties are performed w.r.t. other database files, in order to ensure as much as possible the ACID properties of the database.
| |
| checkpointInternal | back to summary |
|---|---|
| private void checkpointInternal(Session session, boolean defrag) | |
| checkPower | back to summary |
|---|---|
| pack-priv static void checkPower(int n, int max) | |
| close | back to summary |
|---|---|
| public boolean close(int closemode) Shuts down the logging process using the specified mode.
| |
| getCache | back to summary |
|---|---|
| public DataFileCache getCache() Returns the Cache object or null if one doesn't exist. | |
| getCacheMaxRows | back to summary |
|---|---|
| public int getCacheMaxRows() | |
| getCacheSize | back to summary |
|---|---|
| public long getCacheSize() | |
| getCrypto | back to summary |
|---|---|
| public Crypto getCrypto() | |
| getDataFileFactor | back to summary |
|---|---|
| public int getDataFileFactor() | |
| getDataFileScale | back to summary |
|---|---|
| public int getDataFileScale() | |
| getDataFileSpace | back to summary |
|---|---|
| public int getDataFileSpace() | |
| getDefragLimit | back to summary |
|---|---|
| public int getDefragLimit() | |
| getEventLogger | back to summary |
|---|---|
| private void getEventLogger() All usage of FrameworkLogger should call this method before using an instance. It ensures and requires that no logging should take place before a new database unique name has been created for a new database or read from the .script file for an old database. An instance is returned when: - database unique name has been created - FrameworkLogger would use log4j Otherwise null is returned. This tactic avoids usage of file-based jdk logging for the time being. | |
| getFileAccess | back to summary |
|---|---|
| public FileAccess getFileAccess() | |
| getFilesTimestamp | back to summary |
|---|---|
| public long getFilesTimestamp() | |
| getLobBlockSize | back to summary |
|---|---|
| public int getLobBlockSize() | |
| getLobFileScale | back to summary |
|---|---|
| public int getLobFileScale() | |
| getLogSize | back to summary |
|---|---|
| public int getLogSize() | |
| getPropertiesSQLArray | back to summary |
|---|---|
| public List | |
| getPropertyValueMap | back to summary |
|---|---|
| public HashMap | |
| getSecurePath | back to summary |
|---|---|
| public String getSecurePath(String path, boolean allowFull, boolean includeRes) Returns a secure path or null for a user-defined path when hsqldb.allow_full_path is false. Returns the path otherwise. | |
| getSqlEventLogLevel | back to summary |
|---|---|
| public int getSqlEventLogLevel() | |
| getTempDirectoryPath | back to summary |
|---|---|
| public String getTempDirectoryPath() | |
| getWriteDelay | back to summary |
|---|---|
| public int getWriteDelay() | |
| hasCache | back to summary |
|---|---|
| public boolean hasCache() Returns true if Cache object exists. | |
| hasLockFile | back to summary |
|---|---|
| public boolean hasLockFile() | |
| isAllowedFullPath | back to summary |
|---|---|
| public boolean isAllowedFullPath() | |
| isCurrentlyLogged | back to summary |
|---|---|
| public boolean isCurrentlyLogged() | |
| isFileDatabase | back to summary |
|---|---|
| public boolean isFileDatabase() | |
| isLogged | back to summary |
|---|---|
| public boolean isLogged() | |
| isNewDatabase | back to summary |
|---|---|
| public boolean isNewDatabase() | |
| logDetailEvent | back to summary |
|---|---|
| public void logDetailEvent(String message) Implements org. | |
| logInfoEvent | back to summary |
|---|---|
| public void logInfoEvent(String message) Implements org. | |
| logSevereEvent | back to summary |
|---|---|
| public void logSevereEvent(String message, Throwable t) Implements org. | |
| logStatementEvent | back to summary |
|---|---|
| public void logStatementEvent(Session session, Statement statement, Object[] paramValues, Result result, int level) | |
| logWarningEvent | back to summary |
|---|---|
| public void logWarningEvent(String message, Throwable t) Implements org. | |
| needsCheckpointReset | back to summary |
|---|---|
| public boolean needsCheckpointReset() | |
| newIndex | back to summary |
|---|---|
| public Index newIndex(HsqlNameManager. | |
| newStore | back to summary |
|---|---|
| public PersistentStore newStore(Session session, PersistentStoreCollection collection, TableBase table) | |
| newUniqueName | back to summary |
|---|---|
| pack-priv String newUniqueName() | |
| open | back to summary |
|---|---|
| public void open() Opens the specified Database object's database files and starts up the logging process. If the specified Database object is a new database, its database files are first created.
| |
| releaseLock | back to summary |
|---|---|
| public void releaseLock() | |
| setCacheMaxRows | back to summary |
|---|---|
| public void setCacheMaxRows(int value) | |
| setCacheSize | back to summary |
|---|---|
| public void setCacheSize(int value) | |
| setCheckpointRequired | back to summary |
|---|---|
| public void setCheckpointRequired() | |
| setDataFileScale | back to summary |
|---|---|
| public void setDataFileScale(int value) | |
| setDataFileScaleNoCheck | back to summary |
|---|---|
| public void setDataFileScaleNoCheck(int value) | |
| setDataFileSpace | back to summary |
|---|---|
| public void setDataFileSpace(boolean value) | |
| setDataFileSpace | back to summary |
|---|---|
| public void setDataFileSpace(int value) | |
| setDefagLimit | back to summary |
|---|---|
| public void setDefagLimit(int value) | |
| setDefaultTextTableProperties | back to summary |
|---|---|
| public void setDefaultTextTableProperties(String source, HsqlProperties props) | |
| setEventLogLevel | back to summary |
|---|---|
| public void setEventLogLevel(int level) | |
| setExternalEventLogLevel | back to summary |
|---|---|
| public void setExternalEventLogLevel(int level) | |
| setFilesTimestamp | back to summary |
|---|---|
| public void setFilesTimestamp(long value) | |
| setLobFileCompressed | back to summary |
|---|---|
| public void setLobFileCompressed(boolean value) | |
| setLobFileCompressedNoCheck | back to summary |
|---|---|
| public void setLobFileCompressedNoCheck(boolean value) | |
| setLobFileScale | back to summary |
|---|---|
| public void setLobFileScale(int value) | |
| setLobFileScaleNoCheck | back to summary |
|---|---|
| public void setLobFileScaleNoCheck(int value) | |
| setLogData | back to summary |
|---|---|
| public synchronized void setLogData(boolean mode) Sets logging on or off. | |
| setLogSize | back to summary |
|---|---|
| public synchronized void setLogSize(int megas) Sets the maximum size to which the log file can grow before being automatically checkpointed.
| |
| setNioDataFile | back to summary |
|---|---|
| public void setNioDataFile(boolean value) | |
| setNioMaxSize | back to summary |
|---|---|
| public void setNioMaxSize(int value) | |
| setScriptType | back to summary |
|---|---|
| public synchronized void setScriptType(int format) Sets the type of script file, currently 0 for text (default) 3 for compressed
| |
| setSqlLogLevel | back to summary |
|---|---|
| public void setSqlLogLevel(int level) | |
| setVariables | back to summary |
|---|---|
| private void setVariables() | |
| setWriteDelay | back to summary |
|---|---|
| public synchronized void setWriteDelay(int delay) Sets the log write delay mode to number of seconds. By default executed commands written to the log are committed fully at most 0.5 second after they are executed. This improves performance for applications that execute a large number of short running statements in a short period of time, but risks failing to log some possibly large number of statements in the event of a crash. A small value improves recovery. A value of 0 will severly slow down logging when autocommit is on, or many short transactions are committed.
| |
| synchLog | back to summary |
|---|---|
| public synchronized void synchLog() | |
| writeCommitStatement | back to summary |
|---|---|
| public synchronized void writeCommitStatement(Session session) Used at transaction commit | |
| writeDeleteStatement | back to summary |
|---|---|
| public synchronized void writeDeleteStatement(Session session, Table t, Object[] row) Used exclusively by PersistentStore objects | |
| writeInsertStatement | back to summary |
|---|---|
| public synchronized void writeInsertStatement(Session session, Row row, Table table) Used exclusively by PersistentStore objects | |
| writeOtherStatement | back to summary |
|---|---|
| public synchronized void writeOtherStatement(Session session, String statement) Records a Log entry for the specified SQL statement, on behalf of the specified Session object. | |
| writeSequenceStatement | back to summary |
|---|---|
| public synchronized void writeSequenceStatement(Session session, NumberSequence s) Used at transaction commit | |