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