|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.commsen.stopwatch.storages.AbstractDatabaseStorage
com.commsen.stopwatch.storages.DefaultHSQLStorage
com.commsen.stopwatch.storages.LoadHSQLStorage
Stopwatch.getLoad(int, int) instead!
It works with any engine and storage.
TODO Dokumentacja
| Field Summary | |
protected static org.apache.log4j.Logger |
log
Deprecated. Logger for this class |
| Fields inherited from class com.commsen.stopwatch.storages.AbstractDatabaseStorage |
allByGroupReportStatement, allByLabelReportStatement, allReportStatement, deletePreparedStatement, groupLabelLoadStatement, groupLoadStatement, groupReportStatement, insertPreparedStatement, labelLoadStatement, labelReportStatement, lastIdentityStatement, loadStatement, selectConnection, singleReportStatement, updateConnection, updatePreparedStatement |
| Constructor Summary | |
LoadHSQLStorage()
Deprecated. |
|
| Method Summary | |
boolean |
completeRecord(long id,
java.lang.Object[] parameters)
Deprecated. Instructs the storage to complete (at least remember the time) the record identified by given parameters. |
protected java.lang.String |
getCreateTableQuery()
Deprecated. Called to obtain the query to be executed when table needs to be created. |
java.lang.String |
getInsertQuery()
Deprecated. |
protected org.apache.log4j.Logger |
getLogger()
Deprecated. Returns the logger for this class |
protected java.lang.String |
getReturnColumns()
Deprecated. Called to obtain the columns to be returned. |
long |
newRecord(java.lang.Object[] parameters)
Deprecated. Instructs the storage to create new record and store passed parameters. |
protected Report[] |
prepareReports(java.sql.PreparedStatement preparedStatement,
java.lang.Object[] params)
Deprecated. This method simply executes given statement with given params. |
boolean |
removeRecord(long id)
Deprecated. Instructs the storage to remove the record identified by given parameters. |
| Methods inherited from class com.commsen.stopwatch.storages.DefaultHSQLStorage |
close, freeze, getConnectionString, getDriver, getLastIdentityQuery, getPassword, getTableName, getUser, isDebugEnabled, setDebugEnabled |
| Methods inherited from class com.commsen.stopwatch.storages.AbstractDatabaseStorage |
getAllByGroupReportQuery, getAllByGroupReports, getAllByLabelReportQuery, getAllByLabelReports, getAllReportQuery, getCheckTableQuery, getDeleteQuery, getGroupBy, getGroupLabelLoadQuery, getGroupLoadQuery, getGroupReportQuery, getGroupReports, getLabelLoadQuery, getLabelReportQuery, getLabelReports, getLoad, getLoadQuery, getOrderBy, getReport, getReports, getSingleReportQuery, getTruncTableQuery, getUpdateQuery, isDebug, newCompleteRecord, open, unfreeze |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final org.apache.log4j.Logger log
| Constructor Detail |
public LoadHSQLStorage()
| Method Detail |
protected java.lang.String getCreateTableQuery()
AbstractDatabaseStorage
Default is:
create table
AbstractDatabaseStorage.getTableName() (
_id INT GENERATED BY DEFAULT AS IDENTITY,
_group VARCHAR,
_label VARCHAR,
_start TIMESTAMP,
_end TIMESTAMP
)
getCreateTableQuery in class AbstractDatabaseStorageprotected java.lang.String getReturnColumns()
AbstractDatabaseStorage
getReturnColumns in class DefaultHSQLStoragepublic java.lang.String getInsertQuery()
getInsertQuery in class AbstractDatabaseStorage
public long newRecord(java.lang.Object[] parameters)
throws StopwatchStorageException
StopwatchStorage
newRecord in interface StopwatchStoragenewRecord in class AbstractDatabaseStorageStopwatchStorageExceptionStopwatchStorage.newRecord(java.lang.Object[])
public boolean completeRecord(long id,
java.lang.Object[] parameters)
throws StopwatchStorageException
StopwatchStorage
completeRecord in interface StopwatchStoragecompleteRecord in class AbstractDatabaseStorageStopwatchStorageExceptionStopwatchStorage.completeRecord(long, Object[])
public boolean removeRecord(long id)
throws StopwatchStorageException
StopwatchStorage
removeRecord in interface StopwatchStorageremoveRecord in class AbstractDatabaseStorageStopwatchStorageExceptionStopwatchStorage.removeRecord(long)
protected Report[] prepareReports(java.sql.PreparedStatement preparedStatement,
java.lang.Object[] params)
throws java.sql.SQLException
AbstractDatabaseStoragestatement with given params.
All report queries call this method to obtain array of reports. This method should be overwriten
by extending classes that need to provide more measurment information then basic time and count.
prepareReports in class AbstractDatabaseStoragepreparedStatement - the prepared statement to executeparams - the params to passed to the prepared statement
Report
java.sql.SQLException - on database connection error or other errorsAbstractDatabaseStorage.prepareReports(java.sql.PreparedStatement, java.lang.Object[])protected org.apache.log4j.Logger getLogger()
AbstractDatabaseStorage
getLogger in class DefaultHSQLStorage
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||