mirror of https://github.com/apache/openjpa.git
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:
parent
901c70e1d6
commit
f617557bc3
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue