biz.hammurapi.sql
Class MeasuringDatabaseObject
java.lang.Object
biz.hammurapi.sql.DatabaseObject
biz.hammurapi.sql.MeasuringDatabaseObject
- All Implemented Interfaces:
- Context, ContextConfigurable, DomConfigurable, ColumnChangeListener, IDatabaseObject, Attributable, Observable, Versioned, DomSerializable, java.io.Serializable, java.lang.Cloneable
public class MeasuringDatabaseObject
- extends DatabaseObject
Collects operation metrics for load, insert, update, delete.
- Author:
- Pavel Vlasov
- See Also:
- Serialized Form
Method Summary |
int |
delete(SQLProcessor processor,
java.lang.String tableName)
Deletes row in a table by primary key. |
int |
insert(SQLProcessor processor,
java.lang.String tableName)
|
int |
update(SQLProcessor processor,
java.lang.String tableName)
Updates row in a table by primary key |
Methods inherited from class biz.hammurapi.sql.DatabaseObject |
addColumn, addObserver, childrenToSax, clear, clone, configure, configure, copy, equals, fromDom, fromDom, get, getAttribute, getColumn, getColumnAttribute, getContentHandler, getObjectVersion, getSqlType, getSubHandler, hashCode, isDeleted, isModified, onChange, removeAttribute, removeColumnAttribute, removeObserver, setAttribute, setColumnAttribute, setOriginal, toDom, toDom, toSax, toString, xmlNames |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
timeIntervalCategory
protected TimeIntervalCategory timeIntervalCategory
measurementCategory
protected MeasurementCategory measurementCategory
MeasuringDatabaseObject
public MeasuringDatabaseObject()
MeasuringDatabaseObject
public MeasuringDatabaseObject(boolean force)
delete
public int delete(SQLProcessor processor,
java.lang.String tableName)
throws java.sql.SQLException
- Description copied from interface:
IDatabaseObject
- Deletes row in a table by primary key.
- Specified by:
delete
in interface IDatabaseObject
- Overrides:
delete
in class DatabaseObject
- Parameters:
processor
- SQLProcessortableName
- Target table
- Returns:
- Number of updates
- Throws:
java.sql.SQLException
insert
public int insert(SQLProcessor processor,
java.lang.String tableName)
throws java.sql.SQLException
- Specified by:
insert
in interface IDatabaseObject
- Overrides:
insert
in class DatabaseObject
- Throws:
java.sql.SQLException
update
public int update(SQLProcessor processor,
java.lang.String tableName)
throws java.sql.SQLException
- Description copied from interface:
IDatabaseObject
- Updates row in a table by primary key
- Specified by:
update
in interface IDatabaseObject
- Overrides:
update
in class DatabaseObject
- Parameters:
processor
- SQLProcessortableName
- Target table
- Returns:
- Number of updates
- Throws:
java.sql.SQLException
Copyright © 2003 Hammurapi Group. All Rights Reserved.