DTO - public class LazyDtoContainer<DTO> extends Object
PagingCriteria and return DtoList.| Modifier and Type | Class and Description |
|---|---|
static interface |
LazyDtoContainer.DtoLoader<DTO>
Interface for the data loader to which LazyDtoContainer delegates the
actual data loading.
|
com.vaadin.data.Container.Indexed.ItemAddEvent, com.vaadin.data.Container.Indexed.ItemRemoveEventcom.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeEvent, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Viewer| Constructor and Description |
|---|
LazyDtoContainer(LazyDtoContainer.DtoLoader<DTO> loader,
int batchSize,
Class<DTO> dtoClass,
Serializable idPropertyId,
String... sortablePropertyIds)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContainerFilter(com.vaadin.data.Container.Filter filter) |
boolean |
addContainerProperty(Object propertyId,
Class<?> type,
Object defaultValue) |
Object |
addItem() |
com.vaadin.data.Item |
addItem(Object itemId) |
Object |
addItemAfter(Object previousItemId) |
com.vaadin.data.Item |
addItemAfter(Object previousItemId,
Object newItemId) |
Object |
addItemAt(int index) |
com.vaadin.data.Item |
addItemAt(int index,
Object newItemId) |
void |
addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
void |
addPropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
boolean |
containsId(Object itemId) |
void |
discard() |
Object |
firstItemId() |
Collection<com.vaadin.data.Container.Filter> |
getContainerFilters() |
com.vaadin.data.Property |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<?> |
getContainerPropertyIds() |
Object |
getIdByIndex(int index) |
com.vaadin.data.Item |
getItem(Object itemId) |
Collection<?> |
getItemIds() |
List<?> |
getItemIds(int startIndex,
int numberOfItems) |
Collection<?> |
getSortableContainerPropertyIds() |
Class<?> |
getType(Object propertyId) |
int |
indexOfId(Object itemId) |
boolean |
isFirstId(Object itemId) |
boolean |
isLastId(Object itemId) |
Object |
lastItemId() |
Object |
nextItemId(Object itemId) |
Object |
prevItemId(Object itemId) |
void |
refresh() |
void |
removeAllContainerFilters() |
boolean |
removeAllItems() |
void |
removeContainerFilter(com.vaadin.data.Container.Filter filter) |
boolean |
removeContainerProperty(Object propertyId) |
boolean |
removeItem(Object itemId) |
void |
removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
void |
removePropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
protected void |
setWrappedContainer(org.vaadin.addons.lazyquerycontainer.LazyQueryContainer wrapped)
Sets the wrapped container.
|
int |
size() |
void |
sort(Object[] propertyId,
boolean[] ascending) |
public LazyDtoContainer(LazyDtoContainer.DtoLoader<DTO> loader, int batchSize, Class<DTO> dtoClass, Serializable idPropertyId, String... sortablePropertyIds)
dtoClass - loader - batchSize - idPropertyId - sortablePropertyIds - protected void setWrappedContainer(org.vaadin.addons.lazyquerycontainer.LazyQueryContainer wrapped)
wrapped - public void refresh()
LazyQueryContainer.refresh()public void discard()
LazyQueryContainer.discard()public com.vaadin.data.Item getItem(Object itemId)
getItem in interface com.vaadin.data.Containerpublic Collection<?> getContainerPropertyIds()
getContainerPropertyIds in interface com.vaadin.data.Containerpublic Collection<?> getItemIds()
getItemIds in interface com.vaadin.data.Containerpublic com.vaadin.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty in interface com.vaadin.data.Containerpublic Class<?> getType(Object propertyId)
getType in interface com.vaadin.data.Containerpublic int size()
size in interface com.vaadin.data.Containerpublic boolean containsId(Object itemId)
containsId in interface com.vaadin.data.Containerpublic com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic Object addItem() throws UnsupportedOperationException
addItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException
addContainerProperty in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic boolean removeAllItems()
throws UnsupportedOperationException
removeAllItems in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic Object nextItemId(Object itemId)
nextItemId in interface com.vaadin.data.Container.Orderedpublic Object prevItemId(Object itemId)
prevItemId in interface com.vaadin.data.Container.Orderedpublic Object firstItemId()
firstItemId in interface com.vaadin.data.Container.Orderedpublic Object lastItemId()
lastItemId in interface com.vaadin.data.Container.Orderedpublic boolean isFirstId(Object itemId)
isFirstId in interface com.vaadin.data.Container.Orderedpublic boolean isLastId(Object itemId)
isLastId in interface com.vaadin.data.Container.Orderedpublic Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
addItemAfter in interface com.vaadin.data.Container.OrderedUnsupportedOperationExceptionpublic com.vaadin.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
addItemAfter in interface com.vaadin.data.Container.OrderedUnsupportedOperationExceptionpublic int indexOfId(Object itemId)
indexOfId in interface com.vaadin.data.Container.Indexedpublic Object getIdByIndex(int index)
getIdByIndex in interface com.vaadin.data.Container.Indexedpublic List<?> getItemIds(int startIndex, int numberOfItems)
getItemIds in interface com.vaadin.data.Container.Indexedpublic Object addItemAt(int index) throws UnsupportedOperationException
addItemAt in interface com.vaadin.data.Container.IndexedUnsupportedOperationExceptionpublic com.vaadin.data.Item addItemAt(int index,
Object newItemId)
throws UnsupportedOperationException
addItemAt in interface com.vaadin.data.Container.IndexedUnsupportedOperationExceptionpublic Collection<com.vaadin.data.Container.Filter> getContainerFilters()
getContainerFilters in interface com.vaadin.data.Container.Filterablepublic void addContainerFilter(com.vaadin.data.Container.Filter filter)
throws com.vaadin.data.util.filter.UnsupportedFilterException
addContainerFilter in interface com.vaadin.data.Container.Filterablecom.vaadin.data.util.filter.UnsupportedFilterExceptionpublic void removeContainerFilter(com.vaadin.data.Container.Filter filter)
removeContainerFilter in interface com.vaadin.data.Container.Filterablepublic void removeAllContainerFilters()
removeAllContainerFilters in interface com.vaadin.data.Container.Filterablepublic void sort(Object[] propertyId, boolean[] ascending)
sort in interface com.vaadin.data.Container.Sortablepublic Collection<?> getSortableContainerPropertyIds()
getSortableContainerPropertyIds in interface com.vaadin.data.Container.Sortablepublic void addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addItemSetChangeListener in interface com.vaadin.data.Container.ItemSetChangeNotifierpublic void addListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addListener in interface com.vaadin.data.Container.ItemSetChangeNotifierpublic void removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeItemSetChangeListener in interface com.vaadin.data.Container.ItemSetChangeNotifierpublic void removeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeListener in interface com.vaadin.data.Container.ItemSetChangeNotifierpublic void addPropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
addPropertySetChangeListener in interface com.vaadin.data.Container.PropertySetChangeNotifierpublic void addListener(com.vaadin.data.Container.PropertySetChangeListener listener)
addListener in interface com.vaadin.data.Container.PropertySetChangeNotifierpublic void removePropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
removePropertySetChangeListener in interface com.vaadin.data.Container.PropertySetChangeNotifierpublic void removeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
removeListener in interface com.vaadin.data.Container.PropertySetChangeNotifierCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.