com.bstek.dorado.data.entity
public abstract class EntityCollection<E> extends java.lang.Object implements java.util.Collection<E>
Constructor and Description |
---|
EntityCollection(java.util.Collection<E> target,
AggregationDataType dataType) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
AggregationDataType |
getDataType()
返回集合的数据类型。
|
DataType |
getElementType()
返回集合元素的数据类型。
|
java.util.Collection<E> |
getTarget()
返回被代理的集合类。
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
protected E |
proxyElementIfNecessary(E element)
判断是否需要为传入的对象创建动态代理,如果需要将返回新创建的动态代理,否则将直接返回对象自身。
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
protected void |
replaceAllElementIfNecessary() |
protected abstract void |
replaceAllElementWithProxyIfNecessary(java.util.Collection<? extends E> collection)
判断集合中的每一个对象是否需要动态代理,如果需要将该集合元素替换为新创建的动态代理。
|
boolean |
retainAll(java.util.Collection<?> c) |
void |
setDataType(AggregationDataType dataType) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public EntityCollection(java.util.Collection<E> target, AggregationDataType dataType)
target
- 被代理的集合类。dataType
- 集合的数据类型。public void setDataType(AggregationDataType dataType)
public AggregationDataType getDataType()
public DataType getElementType()
protected E proxyElementIfNecessary(E element)
element
- Object 可能需要代理的对象protected void replaceAllElementIfNecessary()
protected abstract void replaceAllElementWithProxyIfNecessary(java.util.Collection<? extends E> collection)
public java.util.Collection<E> getTarget()
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
public void clear()
clear
in interface java.util.Collection<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<E>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
public int size()
size
in interface java.util.Collection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.