|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyass.database.Database
yass.database.HsqldbDatabase
public class HsqldbDatabase
An implementation of a simulation database using the HSQLDB in-memory DBMS for lower-level data storage
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
log
The logger |
| Fields inherited from class yass.database.Database |
|---|
analysisMode, connection, dbContainerDirectory, dbName, dbPassword, dbProperties, dbServer, dbTablesFilepath, dbUsername, deleteOnShutdown, driver, dropTablesOnShutdown, eventClasses, generator, protocol, running, statementCommitThreshold, statementCounter, type |
| Constructor Summary | |
|---|---|
HsqldbDatabase()
Creates a new instance of HsqldbDatabase using default
values for reasonable but untuned performance |
|
HsqldbDatabase(java.lang.String databaseName,
java.util.Set<java.lang.Class> eventClasses,
int statementCommitThreshold)
Creates a new instance of HsqldbDatabase |
|
| Method Summary | |
|---|---|
protected void |
createConnection()
Creates a connection to the underlying database |
protected java.util.Properties |
createDbProperties()
Creates a properties object containing the database parameters supplied by the user and application to HSQLDB during database creation |
protected void |
setDatabaseProperties()
Sets dynamic properties on the underlying HSQLDB database to optimise performance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public HsqldbDatabase()
HsqldbDatabase using default
values for reasonable but untuned performance
public HsqldbDatabase(java.lang.String databaseName,
java.util.Set<java.lang.Class> eventClasses,
int statementCommitThreshold)
HsqldbDatabase
databaseName - the desired database name to which a random sequence
of numbers will be appended automaticallyeventClasses - the set of event classes managed by this databasestatementCommitThreshold - the maximum number of database-changing
actions permitted before a commit is forced automatically| Method Detail |
|---|
protected java.util.Properties createDbProperties()
protected void setDatabaseProperties()
throws java.sql.SQLException
setDatabaseProperties in class Databasejava.sql.SQLException - if the properies cannot be set
protected void createConnection()
throws java.sql.SQLException
createConnection in class Databasejava.sql.SQLException - if the connection cannot be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||