]> source.dussan.org Git - vaadin-framework.git/commit
Add Container.Indexed.getItemIds(int, int) for a range of items (#8028)
authorHenri Sara <hesara@vaadin.com>
Fri, 31 Aug 2012 10:29:42 +0000 (13:29 +0300)
committerHenri Sara <hesara@vaadin.com>
Fri, 31 Aug 2012 11:09:58 +0000 (14:09 +0300)
commit01646b14df5708e50e4eb031ec5b4f0da4ab5d15
treeaea2f654ed4f0ddca0f61708d1a3be8edb09deaf
parent61a1218d388b85b496e0fd98f2a5c5226ab4f83d
Add Container.Indexed.getItemIds(int, int) for a range of items (#8028)

This permits optimization of data fetches from various containers
where getting single items by index in a loop might be costly.

Also add a helper method in ContainerHelpers to make it easier to
implement the new method where performance of fetching an id by index is
not an issue. SQLContainer still uses this helper instead of an
optimized implementation.
server/src/com/vaadin/data/Container.java
server/src/com/vaadin/data/ContainerHelpers.java [new file with mode: 0644]
server/src/com/vaadin/data/RangeOutOfContainerBoundsException.java [new file with mode: 0644]
server/src/com/vaadin/data/util/AbstractInMemoryContainer.java
server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
server/src/com/vaadin/ui/ComboBox.java
server/src/com/vaadin/ui/Table.java
server/tests/src/com/vaadin/data/util/TestIndexedContainer.java