private static class DatabaseStatistics.QueryInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hql
Dialect-specific HQL query string
|
private DatabaseStatistics.Location |
location
Location information for query ctor
|
private long |
useCount
Number of times query was executed at this location (across query instances)
|
Constructor and Description |
---|
QueryInfo(DatabaseStatistics.Location location,
java.lang.String hql)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getHql()
Get the dialect-specific HQL query string.
|
(package private) DatabaseStatistics.Location |
getLocation()
Get the query ctor location information.
|
(package private) long |
getUseCount()
Get the number of times the HQL query was executed at this location, across all query
instances constructed at the same location.
|
(package private) void |
incrementUseCount()
Increment by one the number of times the HQL query was executed at this location, across
all query instances constructed at the same location.
|
private final DatabaseStatistics.Location location
private final java.lang.String hql
private long useCount
QueryInfo(DatabaseStatistics.Location location, java.lang.String hql)
location
- Location information for query ctor.hql
- Dialect-specific HQL query string.DatabaseStatistics.Location getLocation()
java.lang.String getHql()
long getUseCount()
void incrementUseCount()