r3 - 22 Jan 2007 - 10:47:40 - TanDunlinYou are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > WorkingWithTables > DataCacheManager

DataCacheManager

The DataCacheManager provides cached access to datasources, so that the records are not read more often than necessary. You can obtain a DataCache using the getCache(name) method. You can also set a cache explicitly using putCache(name,cache). This option to prime the cache manager by inserting records allows arbitrary record processing at any stage in the report generation process.

Example

var all = DataCacheManager.getCache("All");
var filtered = all.filter("Column",Value); // substitute appropriate column names and values
DataCacheManager.putCache("Filtered",filtered);

Sample

DataCache.jar

  1. Save the file to desired directory
  2. Run Elixir Report Designer
  3. Click on 'Add FileSystem' and select 'Jar FileSystem'
  4. Enter 'KnowledgeBase' for Name and locate 'DataCache.jar'

-- JonPriddey - 12 Sep 2005

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback