public class QueryStats
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_activationCount |
protected StopWatch |
_watch |
| Constructor and Description |
|---|
QueryStats() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected int _activationCount
protected final StopWatch _watch
public long executionTime()
public int activationCount()
public void connect(ObjectContainer container)
public void disconnect()