db4o 6.1

com.db4o.tools
Class QueryStats

java.lang.Object
  extended by com.db4o.tools.QueryStats

public class QueryStats
extends java.lang.Object

Keeps track of query statistics.


Constructor Summary
QueryStats()
           
 
Method Summary
 int activationCount()
          How many objects were activated so far.
 void connect(ObjectContainer container)
          Starts gathering query statistics for the specified container.
 void disconnect()
          Disconnects from the current container.
 long executionTime()
          How long the last query took to execute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStats

public QueryStats()
Method Detail

executionTime

public long executionTime()
How long the last query took to execute.

Returns:
time in miliseconds

activationCount

public int activationCount()
How many objects were activated so far.


connect

public void connect(ObjectContainer container)
Starts gathering query statistics for the specified container.


disconnect

public void disconnect()
Disconnects from the current container.


db4o 6.1