Package org.hibernate
Interface SessionEventListener
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
SessionEventListenerManager
- All Known Implementing Classes:
BaseSessionEventListener
,SessionEventListenerManagerImpl
,StatisticalLoggingSessionEventListener
@Incubating public interface SessionEventListener extends Serializable
Implemented by custom listeners that respond to low-level events involving interactions between theSession
and the database or second-level cache.A
SessionEventListener
class applying to all newly-created sessions may be registered using the configuration property "hibernate.session.events.auto". A new instance of the class will be created for each new session.This an incubating API, subject to change.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
cacheGetEnd(boolean hit)
default void
cacheGetStart()
default void
cachePutEnd()
default void
cachePutStart()
default void
dirtyCalculationEnd(boolean dirty)
default void
dirtyCalculationStart()
default void
end()
default void
flushEnd(int numberOfEntities, int numberOfCollections)
default void
flushStart()
default void
jdbcConnectionAcquisitionEnd()
default void
jdbcConnectionAcquisitionStart()
default void
jdbcConnectionReleaseEnd()
default void
jdbcConnectionReleaseStart()
default void
jdbcExecuteBatchEnd()
default void
jdbcExecuteBatchStart()
default void
jdbcExecuteStatementEnd()
default void
jdbcExecuteStatementStart()
default void
jdbcPrepareStatementEnd()
default void
jdbcPrepareStatementStart()
default void
partialFlushEnd(int numberOfEntities, int numberOfCollections)
default void
partialFlushStart()
default void
prePartialFlushEnd()
default void
prePartialFlushStart()
default void
transactionCompletion(boolean successful)
-
-
-
Method Detail
-
transactionCompletion
default void transactionCompletion(boolean successful)
-
jdbcConnectionAcquisitionStart
default void jdbcConnectionAcquisitionStart()
-
jdbcConnectionAcquisitionEnd
default void jdbcConnectionAcquisitionEnd()
-
jdbcConnectionReleaseStart
default void jdbcConnectionReleaseStart()
-
jdbcConnectionReleaseEnd
default void jdbcConnectionReleaseEnd()
-
jdbcPrepareStatementStart
default void jdbcPrepareStatementStart()
-
jdbcPrepareStatementEnd
default void jdbcPrepareStatementEnd()
-
jdbcExecuteStatementStart
default void jdbcExecuteStatementStart()
-
jdbcExecuteStatementEnd
default void jdbcExecuteStatementEnd()
-
jdbcExecuteBatchStart
default void jdbcExecuteBatchStart()
-
jdbcExecuteBatchEnd
default void jdbcExecuteBatchEnd()
-
cachePutStart
default void cachePutStart()
-
cachePutEnd
default void cachePutEnd()
-
cacheGetStart
default void cacheGetStart()
-
cacheGetEnd
default void cacheGetEnd(boolean hit)
-
flushStart
default void flushStart()
-
flushEnd
default void flushEnd(int numberOfEntities, int numberOfCollections)
-
prePartialFlushStart
default void prePartialFlushStart()
-
prePartialFlushEnd
default void prePartialFlushEnd()
-
partialFlushStart
default void partialFlushStart()
-
partialFlushEnd
default void partialFlushEnd(int numberOfEntities, int numberOfCollections)
-
dirtyCalculationStart
default void dirtyCalculationStart()
-
dirtyCalculationEnd
default void dirtyCalculationEnd(boolean dirty)
-
end
default void end()
-
-