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
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticalLoggingSessionEventListener
public StatisticalLoggingSessionEventListener()
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 interface SessionEventListener
- Overrides:
jdbcConnectionAcquisitionStart
in class BaseSessionEventListener
jdbcConnectionAcquisitionEnd
public void jdbcConnectionAcquisitionEnd()
- Specified by:
jdbcConnectionAcquisitionEnd
in interface SessionEventListener
- Overrides:
jdbcConnectionAcquisitionEnd
in class BaseSessionEventListener
jdbcConnectionReleaseStart
public void jdbcConnectionReleaseStart()
- Specified by:
jdbcConnectionReleaseStart
in interface SessionEventListener
- Overrides:
jdbcConnectionReleaseStart
in class BaseSessionEventListener
jdbcConnectionReleaseEnd
public void jdbcConnectionReleaseEnd()
- Specified by:
jdbcConnectionReleaseEnd
in interface SessionEventListener
- Overrides:
jdbcConnectionReleaseEnd
in class BaseSessionEventListener
jdbcPrepareStatementStart
public void jdbcPrepareStatementStart()
- Specified by:
jdbcPrepareStatementStart
in interface SessionEventListener
- Overrides:
jdbcPrepareStatementStart
in class BaseSessionEventListener
jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd()
- Specified by:
jdbcPrepareStatementEnd
in interface SessionEventListener
- Overrides:
jdbcPrepareStatementEnd
in class BaseSessionEventListener
jdbcExecuteStatementStart
public void jdbcExecuteStatementStart()
- Specified by:
jdbcExecuteStatementStart
in interface SessionEventListener
- Overrides:
jdbcExecuteStatementStart
in class BaseSessionEventListener
jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd()
- Specified by:
jdbcExecuteStatementEnd
in interface SessionEventListener
- Overrides:
jdbcExecuteStatementEnd
in class BaseSessionEventListener
jdbcExecuteBatchStart
public void jdbcExecuteBatchStart()
- Specified by:
jdbcExecuteBatchStart
in interface SessionEventListener
- Overrides:
jdbcExecuteBatchStart
in class BaseSessionEventListener
jdbcExecuteBatchEnd
public void jdbcExecuteBatchEnd()
- Specified by:
jdbcExecuteBatchEnd
in interface SessionEventListener
- Overrides:
jdbcExecuteBatchEnd
in class BaseSessionEventListener
cachePutStart
public void cachePutStart()
- Specified by:
cachePutStart
in interface SessionEventListener
- Overrides:
cachePutStart
in class BaseSessionEventListener
cachePutEnd
public void cachePutEnd()
- Specified by:
cachePutEnd
in interface SessionEventListener
- Overrides:
cachePutEnd
in class BaseSessionEventListener
cacheGetStart
public void cacheGetStart()
- Specified by:
cacheGetStart
in interface SessionEventListener
- Overrides:
cacheGetStart
in class BaseSessionEventListener
cacheGetEnd
public void cacheGetEnd(boolean hit)
- Specified by:
cacheGetEnd
in interface SessionEventListener
- Overrides:
cacheGetEnd
in class BaseSessionEventListener
flushStart
public void flushStart()
- Specified by:
flushStart
in interface SessionEventListener
- Overrides:
flushStart
in class BaseSessionEventListener
flushEnd
public void flushEnd(int numberOfEntities,
int numberOfCollections)
- Specified by:
flushEnd
in interface SessionEventListener
- Overrides:
flushEnd
in class BaseSessionEventListener
partialFlushStart
public void partialFlushStart()
- Specified by:
partialFlushStart
in interface SessionEventListener
- Overrides:
partialFlushStart
in class BaseSessionEventListener
partialFlushEnd
public void partialFlushEnd(int numberOfEntities,
int numberOfCollections)
- Specified by:
partialFlushEnd
in interface SessionEventListener
- Overrides:
partialFlushEnd
in class BaseSessionEventListener
end
public void end()
- Specified by:
end
in interface SessionEventListener
- Overrides:
end
in class BaseSessionEventListener
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.