HHH-13976 Some javadoc clarifications and code style adjustments
This commit is contained in:
parent
dd6ebda110
commit
fcc5c150c0
|
@ -444,11 +444,9 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void beforeTransactionCompletion() {
|
public void beforeTransactionCompletion() {
|
||||||
owner.beforeTransactionCompletion();
|
this.owner.beforeTransactionCompletion();
|
||||||
if ( getConnectionReleaseMode() == ConnectionReleaseMode.BEFORE_TRANSACTION_COMPLETION ) {
|
|
||||||
this.logicalConnection.beforeTransactionCompletion();
|
this.logicalConnection.beforeTransactionCompletion();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterTransactionCompletion(boolean successful, boolean delayed) {
|
public void afterTransactionCompletion(boolean successful, boolean delayed) {
|
||||||
|
|
|
@ -152,7 +152,6 @@ public class LogicalConnectionManagedImpl extends AbstractLogicalConnectionImple
|
||||||
@Override
|
@Override
|
||||||
public void beforeTransactionCompletion() {
|
public void beforeTransactionCompletion() {
|
||||||
super.beforeTransactionCompletion();
|
super.beforeTransactionCompletion();
|
||||||
|
|
||||||
if ( connectionHandlingMode.getReleaseMode() == ConnectionReleaseMode.BEFORE_TRANSACTION_COMPLETION ) {
|
if ( connectionHandlingMode.getReleaseMode() == ConnectionReleaseMode.BEFORE_TRANSACTION_COMPLETION ) {
|
||||||
log.debug( "Initiating JDBC connection release from beforeTransactionCompletion" );
|
log.debug( "Initiating JDBC connection release from beforeTransactionCompletion" );
|
||||||
releaseConnection();
|
releaseConnection();
|
||||||
|
|
|
@ -36,8 +36,9 @@ public interface LogicalConnectionImplementor extends LogicalConnection {
|
||||||
void afterStatement();
|
void afterStatement();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification indicating a transaction is about to completed to trigger
|
* Notification indicating a transaction is about to be completed, so to trigger
|
||||||
* {@link org.hibernate.ConnectionReleaseMode#BEFORE_TRANSACTION_COMPLETION} releasing if needed
|
* releasing of the connection if needed ({@link org.hibernate.ConnectionReleaseMode#BEFORE_TRANSACTION_COMPLETION}
|
||||||
|
* is enabled)
|
||||||
*/
|
*/
|
||||||
void beforeTransactionCompletion();
|
void beforeTransactionCompletion();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue