biz.hammurapi.sql
Class MeasuringDatabaseObject

java.lang.Object
  extended by biz.hammurapi.sql.DatabaseObject
      extended by 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

Field Summary
protected  MeasurementCategory measurementCategory
           
protected  TimeIntervalCategory timeIntervalCategory
           
 
Fields inherited from class biz.hammurapi.sql.DatabaseObject
columns, objectVersion, originalVersion, xmlElement, xmlNamespace
 
Constructor Summary
MeasuringDatabaseObject()
           
MeasuringDatabaseObject(boolean force)
           
 
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
 

Field Detail

timeIntervalCategory

protected TimeIntervalCategory timeIntervalCategory

measurementCategory

protected MeasurementCategory measurementCategory
Constructor Detail

MeasuringDatabaseObject

public MeasuringDatabaseObject()

MeasuringDatabaseObject

public MeasuringDatabaseObject(boolean force)
Method Detail

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 - SQLProcessor
tableName - 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 - SQLProcessor
tableName - Target table
Returns:
Number of updates
Throws:
java.sql.SQLException


Copyright © 2003 Hammurapi Group. All Rights Reserved.