openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jrba...@apache.org
Subject svn commit: r1340228 - /openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/
Date Fri, 18 May 2012 20:05:42 GMT
Author: jrbauer
Date: Fri May 18 20:05:42 2012
New Revision: 1340228

URL: http://svn.apache.org/viewvc?rev=1340228&view=rev
Log:
OPENJPA-2165 provide setters for element validation and tracker in new delayed proxy types

Modified:
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedHashSetProxy.java
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedHashSetProxy.java
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedListProxy.java
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedPriorityQueueProxy.java
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedTreeSetProxy.java
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedVectorProxy.java

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedHashSetProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedHashSetProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedHashSetProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedHashSetProxy.java
Fri May 18 20:05:42 2012
@@ -110,6 +110,10 @@ public class DelayedHashSetProxy extends
         return this.changeTracker;
     }
 
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+
     @Override
     public Object copy(Object paramObject) {
         return new HashSet((Collection) paramObject);
@@ -119,6 +123,10 @@ public class DelayedHashSetProxy extends
         return this.elementType;
     }
 
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
+
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,
             boolean paramBoolean2) {

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedHashSetProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedHashSetProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedHashSetProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedHashSetProxy.java
Fri May 18 20:05:42 2012
@@ -109,7 +109,11 @@ public class DelayedLinkedHashSetProxy e
     public ChangeTracker getChangeTracker() {
         return this.changeTracker;
     }
-
+    
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+    
     @Override
     public Object copy(Object paramObject) {
         return new LinkedHashSet((Collection) paramObject);
@@ -118,6 +122,10 @@ public class DelayedLinkedHashSetProxy e
     public Class getElementType() {
         return this.elementType;
     }
+    
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
 
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedListProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedListProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedListProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedLinkedListProxy.java
Fri May 18 20:05:42 2012
@@ -108,6 +108,10 @@ public class DelayedLinkedListProxy exte
         return this.changeTracker;
     }
 
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+    
     @Override
     public Object copy(Object paramObject) {
         return new LinkedList((Collection) paramObject);
@@ -118,6 +122,10 @@ public class DelayedLinkedListProxy exte
         return this.elementType;
     }
 
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
+
     @Override
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedPriorityQueueProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedPriorityQueueProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedPriorityQueueProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedPriorityQueueProxy.java
Fri May 18 20:05:42 2012
@@ -132,6 +132,10 @@ public class DelayedPriorityQueueProxy e
         return this.changeTracker;
     }
 
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+    
     public Object copy(Object paramObject) {
         return new PriorityQueue((PriorityQueue) paramObject);
     }
@@ -140,6 +144,10 @@ public class DelayedPriorityQueueProxy e
         return this.elementType;
     }
 
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
+    
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,
             boolean paramBoolean2) {

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedTreeSetProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedTreeSetProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedTreeSetProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedTreeSetProxy.java
Fri May 18 20:05:42 2012
@@ -109,6 +109,10 @@ public class DelayedTreeSetProxy extends
         return this.changeTracker;
     }
 
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+    
     public Object copy(Object paramObject) {
         return new TreeSet((SortedSet) paramObject);
     }
@@ -117,6 +121,10 @@ public class DelayedTreeSetProxy extends
         return this.elementType;
     }
 
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
+    
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,
             boolean paramBoolean2) {

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedVectorProxy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedVectorProxy.java?rev=1340228&r1=1340227&r2=1340228&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedVectorProxy.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/DelayedVectorProxy.java
Fri May 18 20:05:42 2012
@@ -198,6 +198,10 @@ public class DelayedVectorProxy extends 
         return this.changeTracker;
     }
 
+    protected void setChangeTracker(CollectionChangeTracker ct) {
+        changeTracker = ct;
+    }
+    
     @Override
     public Object copy(Object paramObject) {
         if (isDelayLoad()) {
@@ -211,6 +215,10 @@ public class DelayedVectorProxy extends 
         return this.elementType;
     }
 
+    protected void setElementType(Class<?> elemType) {
+        elementType = elemType;
+    }
+
     @Override
     public ProxyCollection newInstance(Class paramClass,
             Comparator paramComparator, boolean paramBoolean1,



Mime
View raw message