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 void
cacheGetEnd(boolean hit)
void
cacheGetStart()
void
cachePutEnd()
void
cachePutStart()
void
end()
void
flushEnd(int numberOfEntities, int numberOfCollections)
void
flushStart()
static boolean
isLoggingEnabled()
Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listenervoid
jdbcConnectionAcquisitionEnd()
void
jdbcConnectionAcquisitionStart()
void
jdbcConnectionReleaseEnd()
void
jdbcConnectionReleaseStart()
void
jdbcExecuteBatchEnd()
void
jdbcExecuteBatchStart()
void
jdbcExecuteStatementEnd()
void
jdbcExecuteStatementStart()
void
jdbcPrepareStatementEnd()
void
jdbcPrepareStatementStart()
void
partialFlushEnd(int numberOfEntities, int numberOfCollections)
void
partialFlushStart()
void
prePartialFlushEnd()
void
prePartialFlushStart()
-
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:
true
if logging is enabled for this listener.
-
jdbcConnectionAcquisitionStart
public void jdbcConnectionAcquisitionStart()
- Specified by:
jdbcConnectionAcquisitionStart
in interfaceSessionEventListener
- Overrides:
jdbcConnectionAcquisitionStart
in classBaseSessionEventListener
-
jdbcConnectionAcquisitionEnd
public void jdbcConnectionAcquisitionEnd()
- Specified by:
jdbcConnectionAcquisitionEnd
in interfaceSessionEventListener
- Overrides:
jdbcConnectionAcquisitionEnd
in classBaseSessionEventListener
-
jdbcConnectionReleaseStart
public void jdbcConnectionReleaseStart()
- Specified by:
jdbcConnectionReleaseStart
in interfaceSessionEventListener
- Overrides:
jdbcConnectionReleaseStart
in classBaseSessionEventListener
-
jdbcConnectionReleaseEnd
public void jdbcConnectionReleaseEnd()
- Specified by:
jdbcConnectionReleaseEnd
in interfaceSessionEventListener
- Overrides:
jdbcConnectionReleaseEnd
in classBaseSessionEventListener
-
jdbcPrepareStatementStart
public void jdbcPrepareStatementStart()
- Specified by:
jdbcPrepareStatementStart
in interfaceSessionEventListener
- Overrides:
jdbcPrepareStatementStart
in classBaseSessionEventListener
-
jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd()
- Specified by:
jdbcPrepareStatementEnd
in interfaceSessionEventListener
- Overrides:
jdbcPrepareStatementEnd
in classBaseSessionEventListener
-
jdbcExecuteStatementStart
public void jdbcExecuteStatementStart()
- Specified by:
jdbcExecuteStatementStart
in interfaceSessionEventListener
- Overrides:
jdbcExecuteStatementStart
in classBaseSessionEventListener
-
jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd()
- Specified by:
jdbcExecuteStatementEnd
in interfaceSessionEventListener
- Overrides:
jdbcExecuteStatementEnd
in classBaseSessionEventListener
-
jdbcExecuteBatchStart
public void jdbcExecuteBatchStart()
- Specified by:
jdbcExecuteBatchStart
in interfaceSessionEventListener
- Overrides:
jdbcExecuteBatchStart
in classBaseSessionEventListener
-
jdbcExecuteBatchEnd
public void jdbcExecuteBatchEnd()
- Specified by:
jdbcExecuteBatchEnd
in interfaceSessionEventListener
- Overrides:
jdbcExecuteBatchEnd
in classBaseSessionEventListener
-
cachePutStart
public void cachePutStart()
- Specified by:
cachePutStart
in interfaceSessionEventListener
- Overrides:
cachePutStart
in classBaseSessionEventListener
-
cachePutEnd
public void cachePutEnd()
- Specified by:
cachePutEnd
in interfaceSessionEventListener
- Overrides:
cachePutEnd
in classBaseSessionEventListener
-
cacheGetStart
public void cacheGetStart()
- Specified by:
cacheGetStart
in interfaceSessionEventListener
- Overrides:
cacheGetStart
in classBaseSessionEventListener
-
cacheGetEnd
public void cacheGetEnd(boolean hit)
- Specified by:
cacheGetEnd
in interfaceSessionEventListener
- Overrides:
cacheGetEnd
in classBaseSessionEventListener
-
flushStart
public void flushStart()
- Specified by:
flushStart
in interfaceSessionEventListener
- Overrides:
flushStart
in classBaseSessionEventListener
-
flushEnd
public void flushEnd(int numberOfEntities, int numberOfCollections)
- Specified by:
flushEnd
in interfaceSessionEventListener
- Overrides:
flushEnd
in classBaseSessionEventListener
-
prePartialFlushStart
public void prePartialFlushStart()
-
prePartialFlushEnd
public void prePartialFlushEnd()
-
partialFlushStart
public void partialFlushStart()
- Specified by:
partialFlushStart
in interfaceSessionEventListener
- Overrides:
partialFlushStart
in classBaseSessionEventListener
-
partialFlushEnd
public void partialFlushEnd(int numberOfEntities, int numberOfCollections)
- Specified by:
partialFlushEnd
in interfaceSessionEventListener
- Overrides:
partialFlushEnd
in classBaseSessionEventListener
-
end
public void end()
- Specified by:
end
in interfaceSessionEventListener
- Overrides:
end
in classBaseSessionEventListener
-
-