summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-08 15:11:54 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-08 15:11:54 +0000
commit08081350076fda0690c9d93dbd1f1a03638f3052 (patch)
treea2fa9ab82c4da7f6b46a7b9529acf2b0138e3b00 /java
parentBack out change (diff)
downloadice-08081350076fda0690c9d93dbd1f1a03638f3052.tar.bz2
ice-08081350076fda0690c9d93dbd1f1a03638f3052.tar.xz
ice-08081350076fda0690c9d93dbd1f1a03638f3052.zip
Added ice_getCachedConnection
Diffstat (limited to 'java')
-rw-r--r--java/src/Ice/ObjectPrx.java1
-rw-r--r--java/src/Ice/ObjectPrxHelperBase.java22
2 files changed, 23 insertions, 0 deletions
diff --git a/java/src/Ice/ObjectPrx.java b/java/src/Ice/ObjectPrx.java
index c489b9f60f5..da2e4c6a8b4 100644
--- a/java/src/Ice/ObjectPrx.java
+++ b/java/src/Ice/ObjectPrx.java
@@ -127,6 +127,7 @@ public interface ObjectPrx
**/
Connection ice_connection();
Connection ice_getConnection();
+ Connection ice_getCachedConnection();
boolean equals(java.lang.Object r);
}
diff --git a/java/src/Ice/ObjectPrxHelperBase.java b/java/src/Ice/ObjectPrxHelperBase.java
index 6c6a977d843..fdde0d32269 100644
--- a/java/src/Ice/ObjectPrxHelperBase.java
+++ b/java/src/Ice/ObjectPrxHelperBase.java
@@ -785,6 +785,28 @@ public class ObjectPrxHelperBase implements ObjectPrx
}
}
+ public final Connection
+ ice_getCachedConnection()
+ {
+ _ObjectDel __del = null;
+ synchronized(this)
+ {
+ __del = _delegate;
+ }
+
+ if(__del != null)
+ {
+ try
+ {
+ return __del.__getConnection(new BooleanHolder());
+ }
+ catch(CollocationOptimizationException ex)
+ {
+ }
+ }
+ return null;
+ }
+
public final boolean
equals(java.lang.Object r)
{