public abstract class AbstractSelectableDaoBuffer<T extends SelectableElement> extends AbstractDaoBuffer<T> implements SelectableFetchingBuffer<T>
Modifier and Type | Field and Description |
---|---|
protected String |
idField |
protected String |
selectionField |
dao, logger
Constructor and Description |
---|
AbstractSelectableDaoBuffer(AbstractPersistence<T> dao,
String idField,
String selectionField) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getSelected() |
int |
sizeSelected() |
abstract void |
updateAllSelection(boolean selection) |
void |
updateSelection(int id,
boolean selection) |
add, getList, getList, getList, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateAllSelectionByIds
public AbstractSelectableDaoBuffer(AbstractPersistence<T> dao, String idField, String selectionField)
public List<T> getSelected() throws SQLException
getSelected
in interface SelectableFetchingBuffer<T extends SelectableElement>
SQLException
public void updateSelection(int id, boolean selection) throws Exception
updateSelection
in interface SelectableFetchingBuffer<T extends SelectableElement>
Exception
public abstract void updateAllSelection(boolean selection) throws Exception
updateAllSelection
in interface SelectableFetchingBuffer<T extends SelectableElement>
Exception
public int sizeSelected() throws Exception
sizeSelected
in interface SelectableFetchingBuffer<T extends SelectableElement>
Exception
Copyright © 2016. All Rights Reserved.