public class TransactionSystem extends Object
Constructor and Description |
---|
TransactionSystem()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFunctionFactory(FunctionFactory factory)
Registers a new FunctionFactory with the database system.
|
boolean |
alwaysReindexDirtyTables()
Returns the status of the 'always_reindex_dirty_tables' property.
|
DebugLogger |
Debug()
Returns the DebugLogger object that is used to log debug message.
|
void |
dispose()
Disposes this object.
|
boolean |
dontSynchFileSystem()
Returns true if we shouldn't synchronize with the file system when
important indexing information is flushed to the disk.
|
void |
flushCachedFunctionLookup()
Flushes the 'FunctionLookup' object returned by the getFunctionLookup
method.
|
LoggingBufferManager |
getBufferManager()
Returns the LoggingBufferManager object enabling us to create no file
stores in the file system.
|
boolean |
getConfigBoolean(String property,
boolean default_val)
Returns a configuration value, or the default if it's not found.
|
int |
getConfigInt(String property,
int default_val)
Returns a configuration value, or the default if it's not found.
|
String |
getConfigString(String property,
String default_val)
Returns a configuration value, or the default if it's not found.
|
File |
getDatabasePath()
Returns the path of the database in the local file system if the database
exists within the local file system.
|
FunctionLookup |
getFunctionLookup()
Returns a FunctionLookup object that will search through the function
factories in this database system and find and resolve a function.
|
File |
getLogDirectory()
Returns the current log directory or null if no logging should occur.
|
RegexLibrary |
getRegexLibrary()
Returns the regular expression library from the configuration file.
|
boolean |
ignoreIdentifierCase()
Returns true if the parser should ignore case when searching for
schema/table/column identifiers.
|
void |
init(DBConfig config)
Inits the TransactionSystem with the configuration properties of the
system.
|
boolean |
lookupComparisonListEnabled()
Returns true if we should generate lookup caches in InsertSearch otherwise
returns false.
|
Transaction.CheckExpression |
prepareTransactionCheckConstraint(DataTableDef table_def,
Transaction.CheckExpression check)
Given a Transaction.CheckExpression, this will prepare the expression and
return a new prepared CheckExpression.
|
boolean |
readOnlyAccess()
Returns true if the database is in read only mode.
|
void |
setDebugLevel(int level)
Sets the debug minimum level that is output to the logger.
|
void |
setDebugOutput(Writer writer)
Sets the Writer output for the debug logger.
|
void |
setLogDirectory(File log_path)
Sets the log directory.
|
void |
setupRowCache(int max_cache_size,
int max_cache_entry_size)
Hack - set up the DataCellCache in DatabaseSystem so we can use the
MasterTableDataSource object without having to boot a new DatabaseSystem.
|
boolean |
softIndexStorage()
Returns true if all table indices are kept behind a soft reference that
can be garbage collected.
|
Stats |
stats()
Returns a com.mckoi.util.Stats object that can be used to keep track
of database statistics for this VM.
|
com.mckoi.database.StoreSystem |
storeSystem()
Returns the StoreSystem encapsulation being used in this database.
|
boolean |
tableLockingEnabled()
Returns true if the database should perform checking of table locks.
|
boolean |
transactionErrorOnDirtySelect()
Returns true if during commit the engine should look for any selects
on a modified table and fail if they are detected.
|
public final String getConfigString(String property, String default_val)
public final int getConfigInt(String property, int default_val)
public final boolean getConfigBoolean(String property, boolean default_val)
public void init(DBConfig config)
public void setupRowCache(int max_cache_size, int max_cache_entry_size)
public boolean readOnlyAccess()
public File getDatabasePath()
public boolean tableLockingEnabled()
public boolean lookupComparisonListEnabled()
public boolean softIndexStorage()
public boolean alwaysReindexDirtyTables()
public boolean dontSynchFileSystem()
public boolean transactionErrorOnDirtySelect()
public boolean ignoreIdentifierCase()
public LoggingBufferManager getBufferManager()
public RegexLibrary getRegexLibrary()
public final com.mckoi.database.StoreSystem storeSystem()
public final void setDebugOutput(Writer writer)
public final void setDebugLevel(int level)
public final DebugLogger Debug()
public void addFunctionFactory(FunctionFactory factory)
public void flushCachedFunctionLookup()
public FunctionLookup getFunctionLookup()
public Transaction.CheckExpression prepareTransactionCheckConstraint(DataTableDef table_def, Transaction.CheckExpression check)
public final Stats stats()
public final void setLogDirectory(File log_path)
public final File getLogDirectory()
public void dispose()
Copyright © 2015. All rights reserved.