com.bstek.dorado.data.entity
public class EntityList<E> extends EntityCollection<E> implements java.util.List<E>
List型返回结果的代理。| Constructor and Description |
|---|
EntityList(java.util.List<E> target,
AggregationDataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
E element) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
E |
get(int index) |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
protected void |
replaceAllElementWithProxyIfNecessary(java.util.Collection<? extends E> collection)
判断集合中的每一个对象是否需要动态代理,如果需要将该集合元素替换为新创建的动态代理。
|
E |
set(int index,
E element) |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, equals, getDataType, getElementType, getTarget, hashCode, isEmpty, iterator, proxyElementIfNecessary, remove, removeAll, replaceAllElementIfNecessary, retainAll, setDataType, size, toArray, toArraypublic EntityList(java.util.List<E> target, AggregationDataType dataType) throws java.lang.Exception
target - 被代理的List对象dataType - 相应的数据类型java.lang.Exceptionprotected void replaceAllElementWithProxyIfNecessary(java.util.Collection<? extends E> collection)
EntityCollectionreplaceAllElementWithProxyIfNecessary in class EntityCollection<E>public boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>public java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>public java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.