|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.commsen.stopwatch.storages.AbstractDatabaseStorage com.commsen.stopwatch.storages.DefaultHSQLInMemoryStorage
public class DefaultHSQLInMemoryStorage
Default stopwatch storage. It uses in-memory HSQL database.
Field Summary |
---|
Fields inherited from class com.commsen.stopwatch.storages.AbstractDatabaseStorage |
---|
allByGroupReportStatement, allByLabelReportStatement, allReportStatement, deletePreparedStatement, groupLabelLoadStatement, groupLoadStatement, groupReportStatement, insertPreparedStatement, labelLoadStatement, labelReportStatement, lastIdentityStatement, loadStatement, properties, singleReportStatement, updatePreparedStatement |
Constructor Summary | |
---|---|
DefaultHSQLInMemoryStorage()
|
Method Summary | |
---|---|
void |
close()
Called when engine is about to be stopped or for some other reason will no more use this storage. |
void |
freeze()
Called when engine is about to be paused or for some other reason will temporary not use this storage. |
protected java.lang.String |
getConnectionString()
Called to obtain the connection string |
protected java.lang.String |
getDriver()
Called to obtain the JDBC driver to use |
protected java.lang.String |
getLastIdentityQuery()
|
protected org.apache.log4j.Logger |
getLogger()
Returns the logger for this class |
protected java.lang.String |
getPassword()
Called to obtain the database password |
protected java.lang.String |
getReturnColumns()
Called to obtain the columns to be returned. |
protected java.lang.String |
getTableName()
Provides the table name |
protected java.lang.String |
getTruncTableQuery()
Called to obtain the query to be executed when table needs to be truncated |
protected java.lang.String |
getUser()
Called to obtain the database user name |
boolean |
isDebugEnabled()
|
void |
setDebugEnabled(boolean debugEnabled)
Instructs the storage to disable/enable debug information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHSQLInMemoryStorage()
Method Detail |
---|
protected java.lang.String getDriver()
AbstractDatabaseStorage
getDriver
in class AbstractDatabaseStorage
protected java.lang.String getConnectionString()
AbstractDatabaseStorage
getConnectionString
in class AbstractDatabaseStorage
protected java.lang.String getUser()
AbstractDatabaseStorage
getUser
in class AbstractDatabaseStorage
protected java.lang.String getPassword()
AbstractDatabaseStorage
getPassword
in class AbstractDatabaseStorage
protected java.lang.String getLastIdentityQuery()
getLastIdentityQuery
in class AbstractDatabaseStorage
protected java.lang.String getTableName()
AbstractDatabaseStorage
getTableName
in class AbstractDatabaseStorage
protected java.lang.String getReturnColumns()
AbstractDatabaseStorage
getReturnColumns
in class AbstractDatabaseStorage
protected java.lang.String getTruncTableQuery()
AbstractDatabaseStorage
Default is: delete from
AbstractDatabaseStorage.getTableName()
getTruncTableQuery
in class AbstractDatabaseStorage
public void freeze() throws StopwatchStorageException
StopwatchStorage
freeze
in interface StopwatchStorage
freeze
in class AbstractDatabaseStorage
StopwatchStorageException
- if there is a problem with freezing the storage.StopwatchStorage.freeze()
public void close() throws StopwatchStorageException
StopwatchStorage
close
in interface StopwatchStorage
close
in class AbstractDatabaseStorage
StopwatchStorageException
StopwatchStorage.close()
protected org.apache.log4j.Logger getLogger()
AbstractDatabaseStorage
getLogger
in class AbstractDatabaseStorage
public boolean isDebugEnabled()
isDebugEnabled
in class AbstractDatabaseStorage
StopwatchEngine.setDebugEnabled(boolean)
public void setDebugEnabled(boolean debugEnabled)
StopwatchStorage
debugEnabled
- The debugEnabled to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |