SparkseeNet
6.0.2
|
Public Member Functions | |
System.String | GetPath () |
Gets the path of the Database. | |
void | DumpSchema (System.String filePath) |
Dump the database schema to the given file using the Sparksee scripting format. | |
void | GetStatistics (com.sparsity.sparksee.gdb.DatabaseStatistics stats) |
Gets Database statistics. | |
void | DisableRollback () |
Disables the rollback mechanism. | |
boolean | IsClosed () |
Gets if Database instance has been closed or not. | |
System.String | GetAlias () |
Gets the alias of the Database. | |
void | FixCurrentCacheMaxSize () |
Sets the cache maximum size to the current cache size in use. | |
void | Close () |
Closes the Database instance. | |
void | EnableRollback () |
Enables the rollback mechanism. | |
com.sparsity.sparksee.gdb.Session | NewSession () |
Creates a new Session. | |
int | GetCacheMaxSize () |
Gets the cache maximum size (in MB). | |
void | SetCacheMaxSize (int megaBytes) |
Sets the cache maximum size (in MB). | |
void | RedoPrecommitted (long txId) |
Redo a pending precommitted transaction recovered. | |
Database class.
All the data of the Database is stored into a persistent file which just can be created or open through a Sparksee instance.
Also, all the manipulation of a Database must be done by means of a Session which can be initiated from a Database instance.
Multiple Databases do not share the memory, that is there is no negotiation among them. In those cases, memory must be prefixed for each Database. To do that, use the SPARKSEEConfig.
void com.sparsity.sparksee.gdb.Database.Close | ( | ) |
Closes the Database instance.
It must be called to ensure the integrity of all data.
void com.sparsity.sparksee.gdb.Database.DumpSchema | ( | System.String | filePath | ) |
Dump the database schema to the given file using the Sparksee scripting format.
filePath | null |
System.String com.sparsity.sparksee.gdb.Database.GetAlias | ( | ) |
int com.sparsity.sparksee.gdb.Database.GetCacheMaxSize | ( | ) |
Gets the cache maximum size (in MB).
System.String com.sparsity.sparksee.gdb.Database.GetPath | ( | ) |
void com.sparsity.sparksee.gdb.Database.GetStatistics | ( | com.sparsity.sparksee.gdb.DatabaseStatistics | stats | ) |
Gets Database statistics.
stats | [out] The DatabaseStatistics instance. |
boolean com.sparsity.sparksee.gdb.Database.IsClosed | ( | ) |
void com.sparsity.sparksee.gdb.Database.RedoPrecommitted | ( | long | txId | ) |
Redo a pending precommitted transaction recovered.
YOU SHOULD NOT USE THIS METHOD. This method only exists for a specific service.
txId | null |
void com.sparsity.sparksee.gdb.Database.SetCacheMaxSize | ( | int | megaBytes | ) |
Sets the cache maximum size (in MB).
0 means unlimited which is all the physical memory of the computer minus a small margin.
megaBytes | [in] The new cache max size. |