GAEContainer
Vaadin Container for Google App Engine.
GAEContainer enables usage of the App Engine Datastore trough the Vaadin Container interface. The GAEContainer has support for a multi-level cache hierarchy with highly customizable implementations for local memory and distributed Memcache, optimistic locking and manual commits for items, multivalued properties and filtering with a set of different filters.
Sample code
//set up the cache configs static final LocalMemoryCacheConfig localMemoryCacheConfig = new LocalMemoryCacheConfig.Builder() .withCacheFilteredIndexes(true) .withCacheFilteredSizes(true) .withIndexCapacity(50) .withIndexLifeTime(60) .withItemCapacity(500) .withItemLifeTime(60) .withLineSize(25) .withRemoveStrategy(RemoveStrategy.LRU) .withSizeCapacity(10) .withSizeLifeTime(60).Build(); static final MemCacheConfig memCacheConfig = new MemCacheConfig.Builder() .withCacheFilteredIndexes(true) .withIndexLifeTime(500) .withItemLifeTime(500) .withLineSize(50).Build(); //create the GAEContainer with the caches and property write trough and no optimistic locking private GAEContainer addressBookData = new GAEContainer("People", true, false, CacheFactory.getCache(localMemoryCacheConfig), CacheFactory.getCache(memCacheConfig)); ... ... private String[] initAddressList() { contactList.setContainerDataSource(addressBookData); contactList.setVisibleColumns(visibleCols); contactList.setSelectable(true); ..... }
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
- 2010-12-03
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.2+
- Browser
- N/A
GAEContainer - Vaadin Add-on Directory
Vaadin Container for Google App Engine.GAEContainer enables usage of the App Engine Datastore trough the Vaadin Container interface. The GAEContainer has support for a multi-level cache hierarchy with highly customizable implementations for local memory and distributed Memcache, optimistic locking and manual commits for items, multivalued properties and filtering with a set of different filters.