Package org.hibernate.engine.internal
Class StatisticalLoggingSessionEventListener
java.lang.Object
org.hibernate.BaseSessionEventListener
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener
- All Implemented Interfaces:
Serializable,SessionEventListener
- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheGetEnd(boolean hit) voidvoidvoidvoidend()voidflushEnd(int numberOfEntities, int numberOfCollections) voidstatic booleanUsed by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listenervoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidpartialFlushEnd(int numberOfEntities, int numberOfCollections) voidvoidvoidMethods inherited from class org.hibernate.BaseSessionEventListener
dirtyCalculationEnd, dirtyCalculationStart, transactionCompletion
-
Constructor Details
-
StatisticalLoggingSessionEventListener
public StatisticalLoggingSessionEventListener()
-
-
Method Details
-
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
-