lazycontainer-interface
Lazy Container
hi.
at first, I cant speak english very well.
I tried to LazyContainer.
There are JPAContainer or SQLContainer, but I like DAO-style Container.
so I tried this.
In this implementation, each table scroll needs just 3 DAO method calling.
first, for calling Container.size() second, for calling Container.getIdByIndex() third, for calling Container.getItemIds()
I separate this implementation to two part. so this jar contains just one interface for DAO. another jar contains LazyContainer.
I cant explain more detail. I'm sorry.
Sample code
public interface SampleDao extends RetrieveDelegate<...> { ... }
@Stateless ... public class SampleEjb implements SampleDao { ... }
@EJB private SampleDao sampleDao; ... LazyContainer<...> lazyContainer = new LazyContainer<...>(...); lazyContainer.setRetrieveDelegate(sampleDao); ... Table table = new Table(...); table.setContainerDataSource(lazyContainer);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Released
- 2013-08-15
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.1+
- Browser
- Browser Independent
lazycontainer-interface - Vaadin Add-on Directory
Lazy Containerhi.
at first, I cant speak english very well.
I tried to LazyContainer.
There are JPAContainer or SQLContainer, but I like DAO-style Container.
so I tried this.
In this implementation, each table scroll needs just 3 DAO method calling.
first, for calling Container.size()
second, for calling Container.getIdByIndex()
third, for calling Container.getItemIds()
I separate this implementation to two part.
so this jar contains just one interface for DAO.
another jar contains LazyContainer.
I cant explain more detail. I'm sorry.
Source Code