E - 型パラメータ@Published public class EntityList<E> extends java.util.ArrayList<E>
UniversalDaoから返される結果リストの保持クラス。
ページネーションのためのページ数や検索条件に一致した件数なども本クラスで保持する。| コンストラクタと説明 |
|---|
EntityList()
デフォルトコンストラクタ
|
EntityList(java.util.Collection<? extends E> collection)
指定のコレクションでEntityListを生成する。
|
EntityList(int initCapacity)
指定の初期容量でEntityListを生成する。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
add(int index,
E element)
非推奨です。
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
非推奨です。
|
Pagination |
getPagination()
ページングのための情報を取得する。
|
E |
remove(int index)
非推奨です。
|
E |
set(int index,
E element)
非推奨です。
|
protected void |
setMax(long max)
検索結果の取得最大件数を設定する。
|
protected void |
setPage(long page)
ページ番号を設定する。
|
protected void |
setResultCount(long resultCount)
検索結果の総件数を設定する。
|
public EntityList()
public EntityList(int initCapacity)
initCapacity - 初期容量ArrayList.ArrayList(int)public EntityList(java.util.Collection<? extends E> collection)
collection - コレクションArrayList.addAll(Collection)protected void setPage(long page)
page - ページ番号protected void setMax(long max)
max - 取得最大件数protected void setResultCount(long resultCount)
resultCount - 検索結果の総件数public Pagination getPagination()
@Deprecated
public void add(int index,
E element)
@Deprecated
public boolean addAll(int index,
java.util.Collection<? extends E> c)
@Deprecated public E remove(int index)