OPENJPA-2165 provide setters for element validation and tracker in new delayed proxy types

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeremy Bauer 2012-05-18 19:27:41 +00:00
parent 901c70e1d6
commit f617557bc3
6 changed files with 49 additions and 1 deletions

View File

@ -110,6 +110,10 @@ public class DelayedHashSetProxy extends HashSet implements DelayedProxy, ProxyC
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 HashSet implements DelayedProxy, ProxyC
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,
boolean paramBoolean2) {

View File

@ -110,6 +110,10 @@ public class DelayedLinkedHashSetProxy extends LinkedHashSet implements DelayedP
return this.changeTracker;
}
protected void setChangeTracker(CollectionChangeTracker ct) {
changeTracker = ct;
}
@Override
public Object copy(Object paramObject) {
return new LinkedHashSet((Collection) paramObject);
@ -119,6 +123,10 @@ public class DelayedLinkedHashSetProxy extends LinkedHashSet implements DelayedP
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,
boolean paramBoolean2) {

View File

@ -108,6 +108,10 @@ public class DelayedLinkedListProxy extends LinkedList implements ProxyCollectio
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 extends LinkedList implements ProxyCollectio
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
@Override
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,

View File

@ -132,6 +132,10 @@ public class DelayedPriorityQueueProxy extends PriorityQueue implements ProxyCol
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 extends PriorityQueue implements ProxyCol
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,
boolean paramBoolean2) {

View File

@ -109,6 +109,10 @@ public class DelayedTreeSetProxy extends TreeSet implements ProxyCollection, Del
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 TreeSet implements ProxyCollection, Del
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,
boolean paramBoolean2) {

View File

@ -198,6 +198,10 @@ public class DelayedVectorProxy extends Vector implements ProxyCollection, Delay
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 Vector implements ProxyCollection, Delay
return this.elementType;
}
protected void setElementType(Class<?> elemType) {
elementType = elemType;
}
@Override
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator, boolean paramBoolean1,