Package de.xima.fc.gui.model.lazydata
Class LazyEntityListModel<T extends ITransferableEntity>
- java.lang.Object
-
- javax.faces.model.DataModel<T>
-
- org.primefaces.model.LazyDataModel<T>
-
- de.xima.fc.gui.model.lazydata.LazyEntityListModel<T>
-
- All Implemented Interfaces:
ILazyEntityListModel<T>
,ILazyListModel<T>
,Serializable
,Iterable<T>
,org.primefaces.model.SelectableDataModel<T>
public class LazyEntityListModel<T extends ITransferableEntity> extends org.primefaces.model.LazyDataModel<T> implements ILazyEntityListModel<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyEntityListModel(Class<T> entityClass)
LazyEntityListModel(Class<T> entityClass, Mandant mandant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPage(ITransferableEntity entity, int pageSize)
de.xima.cmn.criteria.QueryCriteriaManager
getQcm()
T
getRowData(String rowKey)
Object
getRowKey(T object)
T
getSelected()
List<T>
load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
List<T>
load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> multiSortMeta, Map<String,org.primefaces.model.FilterMeta> filters)
void
setQcm(de.xima.cmn.criteria.QueryCriteriaManager qcm)
void
setSelected(T selected)
void
updateRowCount()
-
Methods inherited from class org.primefaces.model.LazyDataModel
getPageSize, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, iterator, setPageSize, setRowCount, setRowIndex, setWrappedData
-
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
load
public List<T> load(int first, int pageSize, Map<String,org.primefaces.model.SortMeta> multiSortMeta, Map<String,org.primefaces.model.FilterMeta> filters)
- Specified by:
load
in interfaceILazyListModel<T extends ITransferableEntity>
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<T extends ITransferableEntity>
-
load
public List<T> load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,org.primefaces.model.FilterMeta> filters)
- Specified by:
load
in interfaceILazyListModel<T extends ITransferableEntity>
- Overrides:
load
in classorg.primefaces.model.LazyDataModel<T extends ITransferableEntity>
-
getPage
public int getPage(ITransferableEntity entity, int pageSize)
-
getRowData
public T getRowData(String rowKey)
- Specified by:
getRowData
in interfaceILazyListModel<T extends ITransferableEntity>
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<T extends ITransferableEntity>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<T extends ITransferableEntity>
-
getRowKey
public Object getRowKey(T object)
- Specified by:
getRowKey
in interfaceILazyListModel<T extends ITransferableEntity>
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<T extends ITransferableEntity>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<T extends ITransferableEntity>
-
setSelected
public void setSelected(T selected)
- Specified by:
setSelected
in interfaceILazyListModel<T extends ITransferableEntity>
-
getSelected
public T getSelected()
- Specified by:
getSelected
in interfaceILazyListModel<T extends ITransferableEntity>
-
getQcm
public de.xima.cmn.criteria.QueryCriteriaManager getQcm()
-
setQcm
public void setQcm(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
updateRowCount
public void updateRowCount()
-
-