Package org.hibernate.engine.internal
Class StatisticalLoggingSessionEventListener
- java.lang.Object
-
- org.hibernate.BaseSessionEventListener
-
- org.hibernate.engine.internal.StatisticalLoggingSessionEventListener
-
- All Implemented Interfaces:
Serializable,SessionEventListener
public class StatisticalLoggingSessionEventListener extends BaseSessionEventListener
-
-
Constructor Summary
Constructors Constructor Description StatisticalLoggingSessionEventListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcacheGetEnd(boolean hit)voidcacheGetStart()voidcachePutEnd()voidcachePutStart()voidend()voidflushEnd(int numberOfEntities, int numberOfCollections)voidflushStart()static booleanisLoggingEnabled()Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listenervoidjdbcConnectionAcquisitionEnd()voidjdbcConnectionAcquisitionStart()voidjdbcConnectionReleaseEnd()voidjdbcConnectionReleaseStart()voidjdbcExecuteBatchEnd()voidjdbcExecuteBatchStart()voidjdbcExecuteStatementEnd()voidjdbcExecuteStatementStart()voidjdbcPrepareStatementEnd()voidjdbcPrepareStatementStart()voidpartialFlushEnd(int numberOfEntities, int numberOfCollections)voidpartialFlushStart()voidprePartialFlushEnd()voidprePartialFlushStart()-
Methods inherited from class org.hibernate.BaseSessionEventListener
dirtyCalculationEnd, dirtyCalculationStart, transactionCompletion
-
-
-
-
Method Detail
-
isLoggingEnabled
public static boolean isLoggingEnabled()
Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listener- Returns:
trueif logging is enabled for this listener.
-
jdbcConnectionAcquisitionStart
public void jdbcConnectionAcquisitionStart()
- Specified by:
jdbcConnectionAcquisitionStartin interfaceSessionEventListener- Overrides:
jdbcConnectionAcquisitionStartin classBaseSessionEventListener
-
jdbcConnectionAcquisitionEnd
public void jdbcConnectionAcquisitionEnd()
- Specified by:
jdbcConnectionAcquisitionEndin interfaceSessionEventListener- Overrides:
jdbcConnectionAcquisitionEndin classBaseSessionEventListener
-
jdbcConnectionReleaseStart
public void jdbcConnectionReleaseStart()
- Specified by:
jdbcConnectionReleaseStartin interfaceSessionEventListener- Overrides:
jdbcConnectionReleaseStartin classBaseSessionEventListener
-
jdbcConnectionReleaseEnd
public void jdbcConnectionReleaseEnd()
- Specified by:
jdbcConnectionReleaseEndin interfaceSessionEventListener- Overrides:
jdbcConnectionReleaseEndin classBaseSessionEventListener
-
jdbcPrepareStatementStart
public void jdbcPrepareStatementStart()
- Specified by:
jdbcPrepareStatementStartin interfaceSessionEventListener- Overrides:
jdbcPrepareStatementStartin classBaseSessionEventListener
-
jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd()
- Specified by:
jdbcPrepareStatementEndin interfaceSessionEventListener- Overrides:
jdbcPrepareStatementEndin classBaseSessionEventListener
-
jdbcExecuteStatementStart
public void jdbcExecuteStatementStart()
- Specified by:
jdbcExecuteStatementStartin interfaceSessionEventListener- Overrides:
jdbcExecuteStatementStartin classBaseSessionEventListener
-
jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd()
- Specified by:
jdbcExecuteStatementEndin interfaceSessionEventListener- Overrides:
jdbcExecuteStatementEndin classBaseSessionEventListener
-
jdbcExecuteBatchStart
public void jdbcExecuteBatchStart()
- Specified by:
jdbcExecuteBatchStartin interfaceSessionEventListener- Overrides:
jdbcExecuteBatchStartin classBaseSessionEventListener
-
jdbcExecuteBatchEnd
public void jdbcExecuteBatchEnd()
- Specified by:
jdbcExecuteBatchEndin interfaceSessionEventListener- Overrides:
jdbcExecuteBatchEndin classBaseSessionEventListener
-
cachePutStart
public void cachePutStart()
- Specified by:
cachePutStartin interfaceSessionEventListener- Overrides:
cachePutStartin classBaseSessionEventListener
-
cachePutEnd
public void cachePutEnd()
- Specified by:
cachePutEndin interfaceSessionEventListener- Overrides:
cachePutEndin classBaseSessionEventListener
-
cacheGetStart
public void cacheGetStart()
- Specified by:
cacheGetStartin interfaceSessionEventListener- Overrides:
cacheGetStartin classBaseSessionEventListener
-
cacheGetEnd
public void cacheGetEnd(boolean hit)
- Specified by:
cacheGetEndin interfaceSessionEventListener- Overrides:
cacheGetEndin classBaseSessionEventListener
-
flushStart
public void flushStart()
- Specified by:
flushStartin interfaceSessionEventListener- Overrides:
flushStartin classBaseSessionEventListener
-
flushEnd
public void flushEnd(int numberOfEntities, int numberOfCollections)- Specified by:
flushEndin interfaceSessionEventListener- Overrides:
flushEndin classBaseSessionEventListener
-
prePartialFlushStart
public void prePartialFlushStart()
-
prePartialFlushEnd
public void prePartialFlushEnd()
-
partialFlushStart
public void partialFlushStart()
- Specified by:
partialFlushStartin interfaceSessionEventListener- Overrides:
partialFlushStartin classBaseSessionEventListener
-
partialFlushEnd
public void partialFlushEnd(int numberOfEntities, int numberOfCollections)- Specified by:
partialFlushEndin interfaceSessionEventListener- Overrides:
partialFlushEndin classBaseSessionEventListener
-
end
public void end()
- Specified by:
endin interfaceSessionEventListener- Overrides:
endin classBaseSessionEventListener
-
-