Top Description Methods
org.hibernate.stat

public Interface StatisticsImplementor

Known Direct Implementers
org.hibernate.stat.ConcurrentStatisticsImpl, org.hibernate.stat.StatisticsImpl

Statistics SPI for the Hibernate core. This is essentially the "statistic collector" API, its the contract called to collect various stats.
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public void
closeSession()

Callback about a session being closed.

public void
closeStatement()

Callback about a statement being closed.

public void
connect()

Callback about a connection being obtained from org.hibernate.connection.ConnectionProvider

public void
deleteEntity(String
The name of the entity deleted.
entityName
)

Callback about an entity being deleted.

public void
endTransaction(boolean
Was the transaction successful?
success
)

Callback about a transaction completing.

public void
fetchCollection(String
The collection role.
role
)

Callback to indicate a collection being fetched.

public void
fetchEntity(String
The name of the entity fetched.
entityName
)

Callback about an entity being fetched.

public void
flush()

Callback about a flush occurring

public void
insertEntity(String
The name of the entity inserted
entityName
)

Callback about an entity being inserted

public void
loadCollection(String
The collection role.
role
)

Callback about a collection loading.

public void
loadEntity(String
The name of the entity loaded.
entityName
)

Callback about an entity being loaded.

public void
openSession()

Callback about a session being opened.

public void
optimisticFailure(String
The name of the entity.
entityName
)

Callback about an optimistic lock failure on an entity

public void
prepareStatement()

Callback about a statement being prepared.

public void
queryCacheHit(String
The query
hql
,
String
The name of the cache region
regionName
)

Callback indicating a get from the query cache resulted in a hit.

public void
queryCacheMiss(String
The query
hql
,
String
The name of the cache region
regionName
)

Callback indicating a get from the query cache resulted in a miss.

public void
queryCachePut(String
The query
hql
,
String
The cache region
regionName
)

Callback indicating a put into the query cache.

public void
queryExecuted(String
The query
hql
,
int
Number of rows returned
rows
,
long
execution time
time
)

Callback indicating execution of a sql/hql query

public void
recreateCollection(String
The collection role.
role
)

Callback indicating a collection recreation (full deletion + full (re-)insertion).

public void
removeCollection(String
The collection role.
role
)

Callback indicating a collection removal.

public void
secondLevelCacheHit(String
The name of the cache region
regionName
)

Callback indicating a get from second level cache resulted in a hit.

public void
secondLevelCacheMiss(String
The name of the cache region
regionName
)

Callback indicating a get from second level cache resulted in a miss.

public void
secondLevelCachePut(String
The name of the cache region
regionName
)

Callback indicating a put into second level cache.

public void
updateCollection(String
The collection role.
role
)

Callback indicating a collection was updated.

public void
updateEntity(String
The name of the entity updated.
entityName
)

Callback about an entity being updated.

Method Detail

closeSessionback to summary
public void closeSession()

Callback about a session being closed.

closeStatementback to summary
public void closeStatement()

Callback about a statement being closed.

connectback to summary
public void connect()

Callback about a connection being obtained from org.hibernate.connection.ConnectionProvider

deleteEntityback to summary
public void deleteEntity(String entityName)

Callback about an entity being deleted.

Parameters
entityName:String

The name of the entity deleted.

endTransactionback to summary
public void endTransaction(boolean success)

Callback about a transaction completing.

Parameters
success:boolean

Was the transaction successful?

fetchCollectionback to summary
public void fetchCollection(String role)

Callback to indicate a collection being fetched. Unlike loadCollection, this indicates a separate query was needed.

Parameters
role:String

The collection role.

fetchEntityback to summary
public void fetchEntity(String entityName)

Callback about an entity being fetched. Unlike loadEntity this indicates a separate query being performed.

Parameters
entityName:String

The name of the entity fetched.

flushback to summary
public void flush()

Callback about a flush occurring

insertEntityback to summary
public void insertEntity(String entityName)

Callback about an entity being inserted

Parameters
entityName:String

The name of the entity inserted

loadCollectionback to summary
public void loadCollection(String role)

Callback about a collection loading. This might indicate a lazy collection or an initialized collection being created, but in either case it means without a separate SQL query being needed.

Parameters
role:String

The collection role.

loadEntityback to summary
public void loadEntity(String entityName)

Callback about an entity being loaded. This might indicate a proxy or a fully initialized entity, but in either case it means without a separate SQL query being needed.

Parameters
entityName:String

The name of the entity loaded.

openSessionback to summary
public void openSession()

Callback about a session being opened.

optimisticFailureback to summary
public void optimisticFailure(String entityName)

Callback about an optimistic lock failure on an entity

Parameters
entityName:String

The name of the entity.

prepareStatementback to summary
public void prepareStatement()

Callback about a statement being prepared.

queryCacheHitback to summary
public void queryCacheHit(String hql, String regionName)

Callback indicating a get from the query cache resulted in a hit.

Parameters
hql:String

The query

regionName:String

The name of the cache region

queryCacheMissback to summary
public void queryCacheMiss(String hql, String regionName)

Callback indicating a get from the query cache resulted in a miss.

Parameters
hql:String

The query

regionName:String

The name of the cache region

queryCachePutback to summary
public void queryCachePut(String hql, String regionName)

Callback indicating a put into the query cache.

Parameters
hql:String

The query

regionName:String

The cache region

queryExecutedback to summary
public void queryExecuted(String hql, int rows, long time)

Callback indicating execution of a sql/hql query

Parameters
hql:String

The query

rows:int

Number of rows returned

time:long

execution time

recreateCollectionback to summary
public void recreateCollection(String role)

Callback indicating a collection recreation (full deletion + full (re-)insertion).

Parameters
role:String

The collection role.

removeCollectionback to summary
public void removeCollection(String role)

Callback indicating a collection removal.

Parameters
role:String

The collection role.

secondLevelCacheHitback to summary
public void secondLevelCacheHit(String regionName)

Callback indicating a get from second level cache resulted in a hit.

Parameters
regionName:String

The name of the cache region

secondLevelCacheMissback to summary
public void secondLevelCacheMiss(String regionName)

Callback indicating a get from second level cache resulted in a miss.

Parameters
regionName:String

The name of the cache region

secondLevelCachePutback to summary
public void secondLevelCachePut(String regionName)

Callback indicating a put into second level cache.

Parameters
regionName:String

The name of the cache region

updateCollectionback to summary
public void updateCollection(String role)

Callback indicating a collection was updated.

Parameters
role:String

The collection role.

updateEntityback to summary
public void updateEntity(String entityName)

Callback about an entity being updated.

Parameters
entityName:String

The name of the entity updated.