@ -284,10 +284,14 @@ public class DateFormatter implements Formatter<Date> {
@@ -284,10 +284,14 @@ public class DateFormatter implements Formatter<Date> {
@ -350,20 +350,20 @@ public class SingleConnectionDataSource extends DriverManagerDataSource
@@ -350,20 +350,20 @@ public class SingleConnectionDataSource extends DriverManagerDataSource
// Invocation on ConnectionProxy interface coming in...
returnswitch(method.getName()){
// Only consider equal when proxies are identical.
case"equals"->(proxy==args[0]);
// Only consider equal when proxies are identical.
@ -625,7 +625,7 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
@@ -625,7 +625,7 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
else{
thrownewjakarta.jms.IllegalStateException(
"setClientID call not supported on proxy for shared Connection. "+
"Set the 'clientId' property on the SingleConnectionFactory instead.");
"Set the 'clientId' property on the SingleConnectionFactory instead.");
}
}
case"setExceptionListener"->{
@ -647,9 +647,9 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
@@ -647,9 +647,9 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
else{
thrownewjakarta.jms.IllegalStateException(
"setExceptionListener call not supported on proxy for shared Connection. "+
"Set the 'exceptionListener' property on the SingleConnectionFactory instead. "+
@ -1151,15 +1151,15 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean
@@ -1151,15 +1151,15 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean
// Invocation on Session interface coming in...
returnswitch(method.getName()){
// Only consider equal when proxies are identical.
case"equals"->(proxy==args[0]);
// Only consider equal when proxies are identical.
// Use hashCode of Session proxy.
case"hashCode"->System.identityHashCode(proxy);
// Use hashCode of Session proxy.
// Handle close method: suppress, not valid.
case"close"->null;
// Handle close method: suppress, not valid.
default->{
// Invoke method on target Session.
try{
// Invoke method on target Session.
ObjectretVal=method.invoke(this.target,args);
// If return value is a Query or Criteria, apply transaction timeout.
@ -413,17 +413,17 @@ public class LocalSessionFactoryBuilder extends Configuration {
@@ -413,17 +413,17 @@ public class LocalSessionFactoryBuilder extends Configuration {
@ -252,16 +252,16 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory
@@ -252,16 +252,16 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory
@ -145,17 +145,17 @@ public class TransactionAwareConnectionFactoryProxy extends DelegatingConnection
@@ -145,17 +145,17 @@ public class TransactionAwareConnectionFactoryProxy extends DelegatingConnection
returnswitch(method.getName()){
case"unwrap"->this.connection;
// Handle close method: only close if not within a transaction.
@ -167,7 +167,7 @@ public class TransactionAwareConnectionFactoryProxy extends DelegatingConnection
@@ -167,7 +167,7 @@ public class TransactionAwareConnectionFactoryProxy extends DelegatingConnection
privateStringproxyToString(@NullableObjectproxy){
// Allow for differentiating between the proxy and the raw Connection.
return"Transaction-aware proxy for target Connection ["+this.connection.toString()+"]";
return"Transaction-aware proxy for target Connection ["+this.connection+"]";
@ -520,16 +520,16 @@ final class DefaultDatabaseClient implements DatabaseClient {
@@ -520,16 +520,16 @@ final class DefaultDatabaseClient implements DatabaseClient {