Package nablarch.common.dao
Class EntityList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
nablarch.common.dao.EntityList<E>
- Type Parameters:
E- 型パラメータ
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess
- Direct Known Subclasses:
DeferredEntityList
UniversalDaoから返される結果リストの保持クラス。
ページネーションのためのページ数や検索条件に一致した件数なども本クラスで保持する。- Author:
- kawasima, Hisaaki Shioiri
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionデフォルトコンストラクタEntityList(int initCapacity) 指定の初期容量でEntityListを生成する。EntityList(Collection<? extends E> collection) 指定のコレクションでEntityListを生成する。 -
Method Summary
Modifier and TypeMethodDescriptionvoid本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。booleanaddAll(int index, Collection<? extends E> c) 本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。ページングのための情報を取得する。remove(int index) 本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。protected voidsetMax(long max) 検索結果の取得最大件数を設定する。protected voidsetPage(long page) ページ番号を設定する。protected voidsetResultCount(long resultCount) 検索結果の総件数を設定する。Methods inherited from class java.util.ArrayList
add, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
EntityList
public EntityList()デフォルトコンストラクタ -
EntityList
public EntityList(int initCapacity) 指定の初期容量でEntityListを生成する。- Parameters:
initCapacity- 初期容量- See Also:
-
EntityList
指定のコレクションでEntityListを生成する。- Parameters:
collection- コレクション- See Also:
-
-
Method Details
-
setPage
protected void setPage(long page) ページ番号を設定する。- Parameters:
page- ページ番号
-
setMax
protected void setMax(long max) 検索結果の取得最大件数を設定する。- Parameters:
max- 取得最大件数
-
setResultCount
protected void setResultCount(long resultCount) 検索結果の総件数を設定する。- Parameters:
resultCount- 検索結果の総件数
-
getPagination
ページングのための情報を取得する。- Returns:
- ページングの情報
-
add
本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。 -
addAll
本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。 -
remove
本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。 -
set
本メソッドは利用できない。 呼び出した場合、UnsupportedOperationExceptionを送出する。
-