mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
HHH-13595 Remove the invocations to the no-op methods of ConnectionObserver
This commit is contained in:
parent
db92f7aa00
commit
44c6f0fa3f
@ -100,7 +100,6 @@ private LogicalConnectionManagedImpl(
|
|||||||
private Connection acquireConnectionIfNeeded() {
|
private Connection acquireConnectionIfNeeded() {
|
||||||
if ( physicalConnection == null ) {
|
if ( physicalConnection == null ) {
|
||||||
// todo : is this the right place for these observer calls?
|
// todo : is this the right place for these observer calls?
|
||||||
observer.jdbcConnectionAcquisitionStart();
|
|
||||||
try {
|
try {
|
||||||
physicalConnection = jdbcConnectionAccess.obtainConnection();
|
physicalConnection = jdbcConnectionAccess.obtainConnection();
|
||||||
}
|
}
|
||||||
@ -186,8 +185,6 @@ private void releaseConnection() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo : is this the right place for these observer calls?
|
|
||||||
observer.jdbcConnectionReleaseStart();
|
|
||||||
try {
|
try {
|
||||||
if ( !physicalConnection.isClosed() ) {
|
if ( !physicalConnection.isClosed() ) {
|
||||||
sqlExceptionHelper.logAndClearWarnings( physicalConnection );
|
sqlExceptionHelper.logAndClearWarnings( physicalConnection );
|
||||||
|
@ -361,10 +361,6 @@ public void releaseResources() {
|
|||||||
} );
|
} );
|
||||||
nclobs = null;
|
nclobs = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( jdbcObserver != null ) {
|
|
||||||
jdbcObserver.jdbcReleaseRegistryResourcesEnd();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasRegistered(final HashMap resource) {
|
private boolean hasRegistered(final HashMap resource) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user