|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatisticsImplementor
Statistics SPI for the Hibernate core. This is essentially the "statistic collector" API, its the contract called to collect various stats.
Method Summary | |
---|---|
void |
closeSession()
Callback about a session being closed. |
void |
closeStatement()
Callback about a statement being closed. |
void |
connect()
Callback about a connection being obtained from ConnectionProvider |
void |
deleteEntity(String entityName)
Callback about an entity being deleted. |
void |
endTransaction(boolean success)
Callback about a transaction completing. |
void |
fetchCollection(String role)
Callback to indicate a collection being fetched. |
void |
fetchEntity(String entityName)
Callback about an entity being fetched. |
void |
flush()
Callback about a flush occurring |
void |
insertEntity(String entityName)
Callback about an entity being inserted |
void |
loadCollection(String role)
Callback about a collection loading. |
void |
loadEntity(String entityName)
Callback about an entity being loaded. |
void |
naturalIdCacheHit(String regionName)
Callback indicating a get from natural id cache resulted in a hit. |
void |
naturalIdCacheMiss(String regionName)
Callback indicating a get from natural id cache resulted in a miss. |
void |
naturalIdCachePut(String regionName)
Callback indicating a put into natural id cache. |
void |
naturalIdQueryExecuted(String regionName,
long time)
Callback indicating execution of a natural id query |
void |
openSession()
Callback about a session being opened. |
void |
optimisticFailure(String entityName)
Callback about an optimistic lock failure on an entity |
void |
prepareStatement()
Callback about a statement being prepared. |
void |
queryCacheHit(String hql,
String regionName)
Callback indicating a get from the query cache resulted in a hit. |
void |
queryCacheMiss(String hql,
String regionName)
Callback indicating a get from the query cache resulted in a miss. |
void |
queryCachePut(String hql,
String regionName)
Callback indicating a put into the query cache. |
void |
queryExecuted(String hql,
int rows,
long time)
Callback indicating execution of a sql/hql query |
void |
recreateCollection(String role)
Callback indicating a collection recreation (full deletion + full (re-)insertion). |
void |
removeCollection(String role)
Callback indicating a collection removal. |
void |
secondLevelCacheHit(String regionName)
Callback indicating a get from second level cache resulted in a hit. |
void |
secondLevelCacheMiss(String regionName)
Callback indicating a get from second level cache resulted in a miss. |
void |
secondLevelCachePut(String regionName)
Callback indicating a put into second level cache. |
void |
updateCollection(String role)
Callback indicating a collection was updated. |
void |
updateEntity(String entityName)
Callback about an entity being updated. |
void |
updateTimestampsCacheHit()
Callback indicating a hit to the timestamp cache |
void |
updateTimestampsCacheMiss()
Callback indicating a miss to the timestamp cache |
void |
updateTimestampsCachePut()
Callback indicating a put to the timestamp cache |
Method Detail |
---|
void openSession()
void closeSession()
void flush()
void connect()
ConnectionProvider
void prepareStatement()
void closeStatement()
void endTransaction(boolean success)
success
- Was the transaction successful?void loadEntity(String entityName)
entityName
- The name of the entity loaded.void fetchEntity(String entityName)
loadEntity(java.lang.String)
this indicates a separate query being
performed.
entityName
- The name of the entity fetched.void updateEntity(String entityName)
entityName
- The name of the entity updated.void insertEntity(String entityName)
entityName
- The name of the entity insertedvoid deleteEntity(String entityName)
entityName
- The name of the entity deleted.void optimisticFailure(String entityName)
entityName
- The name of the entity.void loadCollection(String role)
role
- The collection role.void fetchCollection(String role)
loadCollection(java.lang.String)
, this indicates a separate
query was needed.
role
- The collection role.void updateCollection(String role)
role
- The collection role.void recreateCollection(String role)
role
- The collection role.void removeCollection(String role)
role
- The collection role.void secondLevelCachePut(String regionName)
regionName
- The name of the cache regionvoid secondLevelCacheHit(String regionName)
regionName
- The name of the cache regionvoid secondLevelCacheMiss(String regionName)
regionName
- The name of the cache regionvoid naturalIdCachePut(String regionName)
regionName
- The name of the cache regionvoid naturalIdCacheHit(String regionName)
regionName
- The name of the cache regionvoid naturalIdCacheMiss(String regionName)
regionName
- The name of the cache regionvoid naturalIdQueryExecuted(String regionName, long time)
regionName
- The name of the cache regiontime
- execution timevoid queryCachePut(String hql, String regionName)
hql
- The queryregionName
- The cache regionvoid queryCacheHit(String hql, String regionName)
hql
- The queryregionName
- The name of the cache regionvoid queryCacheMiss(String hql, String regionName)
hql
- The queryregionName
- The name of the cache regionvoid queryExecuted(String hql, int rows, long time)
hql
- The queryrows
- Number of rows returnedtime
- execution timevoid updateTimestampsCacheHit()
void updateTimestampsCacheMiss()
void updateTimestampsCachePut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |