E - 型パラメータ@Published(tag="architect") public class DeferredEntityList<E> extends EntityList<E>
DeferredEntityList.close()メソッドを使用し、リソース解放を行うこと。
検索結果は、DeferredEntityList.iterator()で取得したIteratorを用いて取得する。
Iterator.next()を呼び出したタイミングで、
ResultSet.next()を呼び出し次レコードの値を返却する。
DeferredEntityList.iterator()の複数回呼び出しはサポートしない。
これは、ResultSet.TYPE_FORWARD_ONLYのカーソルしかサポートしないため、
一度読み込んだレコードを再度読み込むことは出来ないためである。
本クラスでは、DeferredEntityList.iterator()のみサポートする。
これ以外のメソッドが呼び出された場合は、UnsupportedOperationExceptionを送出する。| Constructor and Description |
|---|
DeferredEntityList(java.lang.Class<E> entityClass,
nablarch.common.dao.SqlResourceHolder resourceHolder)
遅延EntityListを生成する。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Deprecated.
|
boolean |
addAll(java.util.Collection<? extends E> c)
Deprecated.
|
void |
clear()
Deprecated.
|
void |
close() |
boolean |
contains(java.lang.Object o)
Deprecated.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
void |
ensureCapacity(int minCapacity)
Deprecated.
|
E |
get(int index)
Deprecated.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
java.util.ListIterator<E> |
listIterator()
Deprecated.
|
java.util.ListIterator<E> |
listIterator(int index)
Deprecated.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
protected void |
removeRange(int fromIndex,
int toIndex)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size()
Deprecated.
|
java.util.List<E> |
subList(int fromIndex,
int toIndex)
Deprecated.
|
java.lang.Object[] |
toArray()
Deprecated.
|
<T> T[] |
toArray(T[] a)
Deprecated.
|
java.lang.String |
toString() |
void |
trimToSize()
Deprecated.
|
add, addAll, getPagination, remove, set, setMax, setPage, setResultCountpublic DeferredEntityList(java.lang.Class<E> entityClass, nablarch.common.dao.SqlResourceHolder resourceHolder)
entityClass - EntityのクラスresourceHolder - SQLリソース@Published public java.util.Iterator<E> iterator()
iterator in class java.util.ArrayList<E>public void close()
@Deprecated public java.util.ListIterator<E> listIterator()
listIterator in class java.util.ArrayList<E>@Deprecated public java.util.ListIterator<E> listIterator(int index)
listIterator in class java.util.ArrayList<E>@Deprecated public boolean addAll(java.util.Collection<? extends E> c)
addAll in class java.util.ArrayList<E>@Deprecated public void clear()
clear in class java.util.ArrayList<E>@Deprecated public boolean contains(java.lang.Object o)
contains in class java.util.ArrayList<E>@Deprecated public void ensureCapacity(int minCapacity)
ensureCapacity in class java.util.ArrayList<E>@Deprecated public int indexOf(java.lang.Object o)
indexOf in class java.util.ArrayList<E>@Deprecated public boolean isEmpty()
isEmpty in class java.util.ArrayList<E>@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in class java.util.ArrayList<E>@Deprecated public boolean remove(java.lang.Object o)
remove in class java.util.ArrayList<E>@Deprecated
protected void removeRange(int fromIndex,
int toIndex)
removeRange in class java.util.ArrayList<E>@Deprecated public int size()
size in class java.util.ArrayList<E>@Deprecated public java.lang.Object[] toArray()
toArray in class java.util.ArrayList<E>@Deprecated public <T> T[] toArray(T[] a)
toArray in class java.util.ArrayList<E>@Deprecated public void trimToSize()
trimToSize in class java.util.ArrayList<E>@Deprecated public java.util.List<E> subList(int fromIndex, int toIndex)
subList in class java.util.ArrayList<E>@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in class java.util.AbstractCollection<E>@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in class java.util.ArrayList<E>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in class java.util.ArrayList<E>public java.lang.String toString()
toString in class java.util.AbstractCollection<E>