Package com.jk.data.datasource
Class JKDataSourceListener
java.lang.Object
com.jk.data.datasource.JKDataSourceListener
- All Implemented Interfaces:
Serializable
,org.hibernate.SessionEventListener
The listener interface for receiving JKDataSource events.
The class that is interested in processing a JKDataSource
event implements this interface, and the object created
with that class is registered with a component using the
component's method. When
the JKDataSource event occurs, that object's appropriate
method is invoked.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheGetEnd
(boolean hit) Cache get end.void
Cache get start.void
Cache put end.void
Cache put start.void
dirtyCalculationEnd
(boolean dirty) Dirty calculation end.void
Dirty calculation start.void
end()
End.void
flushEnd
(int numberOfEntities, int numberOfCollections) Flush end.void
Flush start.void
Jdbc connection acquisition end.void
Jdbc connection acquisition start.void
Jdbc connection release end.void
Jdbc connection release start.void
Jdbc execute batch end.void
Jdbc execute batch start.void
Jdbc execute statement end.void
Jdbc execute statement start.void
Jdbc prepare statement end.void
Jdbc prepare statement start.void
partialFlushEnd
(int numberOfEntities, int numberOfCollections) Partial flush end.void
Partial flush start.void
transactionCompletion
(boolean successful) Transaction completion.
-
Constructor Details
-
JKDataSourceListener
public JKDataSourceListener(int index) Instantiates a new JK data source listener.- Parameters:
index
- the index
-
-
Method Details
-
transactionCompletion
public void transactionCompletion(boolean successful) Transaction completion.- Specified by:
transactionCompletion
in interfaceorg.hibernate.SessionEventListener
- Parameters:
successful
- the successful
-
jdbcConnectionAcquisitionStart
public void jdbcConnectionAcquisitionStart()Jdbc connection acquisition start.- Specified by:
jdbcConnectionAcquisitionStart
in interfaceorg.hibernate.SessionEventListener
-
jdbcConnectionAcquisitionEnd
public void jdbcConnectionAcquisitionEnd()Jdbc connection acquisition end.- Specified by:
jdbcConnectionAcquisitionEnd
in interfaceorg.hibernate.SessionEventListener
-
jdbcConnectionReleaseStart
public void jdbcConnectionReleaseStart()Jdbc connection release start.- Specified by:
jdbcConnectionReleaseStart
in interfaceorg.hibernate.SessionEventListener
-
jdbcConnectionReleaseEnd
public void jdbcConnectionReleaseEnd()Jdbc connection release end.- Specified by:
jdbcConnectionReleaseEnd
in interfaceorg.hibernate.SessionEventListener
-
jdbcPrepareStatementStart
public void jdbcPrepareStatementStart()Jdbc prepare statement start.- Specified by:
jdbcPrepareStatementStart
in interfaceorg.hibernate.SessionEventListener
-
jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd()Jdbc prepare statement end.- Specified by:
jdbcPrepareStatementEnd
in interfaceorg.hibernate.SessionEventListener
-
jdbcExecuteStatementStart
public void jdbcExecuteStatementStart()Jdbc execute statement start.- Specified by:
jdbcExecuteStatementStart
in interfaceorg.hibernate.SessionEventListener
-
jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd()Jdbc execute statement end.- Specified by:
jdbcExecuteStatementEnd
in interfaceorg.hibernate.SessionEventListener
-
jdbcExecuteBatchStart
public void jdbcExecuteBatchStart()Jdbc execute batch start.- Specified by:
jdbcExecuteBatchStart
in interfaceorg.hibernate.SessionEventListener
-
jdbcExecuteBatchEnd
public void jdbcExecuteBatchEnd()Jdbc execute batch end.- Specified by:
jdbcExecuteBatchEnd
in interfaceorg.hibernate.SessionEventListener
-
cachePutStart
public void cachePutStart()Cache put start.- Specified by:
cachePutStart
in interfaceorg.hibernate.SessionEventListener
-
cachePutEnd
public void cachePutEnd()Cache put end.- Specified by:
cachePutEnd
in interfaceorg.hibernate.SessionEventListener
-
cacheGetStart
public void cacheGetStart()Cache get start.- Specified by:
cacheGetStart
in interfaceorg.hibernate.SessionEventListener
-
cacheGetEnd
public void cacheGetEnd(boolean hit) Cache get end.- Specified by:
cacheGetEnd
in interfaceorg.hibernate.SessionEventListener
- Parameters:
hit
- the hit
-
flushStart
public void flushStart()Flush start.- Specified by:
flushStart
in interfaceorg.hibernate.SessionEventListener
-
flushEnd
public void flushEnd(int numberOfEntities, int numberOfCollections) Flush end.- Specified by:
flushEnd
in interfaceorg.hibernate.SessionEventListener
- Parameters:
numberOfEntities
- the number of entitiesnumberOfCollections
- the number of collections
-
partialFlushStart
public void partialFlushStart()Partial flush start.- Specified by:
partialFlushStart
in interfaceorg.hibernate.SessionEventListener
-
partialFlushEnd
public void partialFlushEnd(int numberOfEntities, int numberOfCollections) Partial flush end.- Specified by:
partialFlushEnd
in interfaceorg.hibernate.SessionEventListener
- Parameters:
numberOfEntities
- the number of entitiesnumberOfCollections
- the number of collections
-
dirtyCalculationStart
public void dirtyCalculationStart()Dirty calculation start.- Specified by:
dirtyCalculationStart
in interfaceorg.hibernate.SessionEventListener
-
dirtyCalculationEnd
public void dirtyCalculationEnd(boolean dirty) Dirty calculation end.- Specified by:
dirtyCalculationEnd
in interfaceorg.hibernate.SessionEventListener
- Parameters:
dirty
- the dirty
-
end
public void end()End.- Specified by:
end
in interfaceorg.hibernate.SessionEventListener
-