Skip navigation links

Package org.sormula.cache.readonly

Implementation of ReadOnlyCache.

See: Description

Package org.sormula.cache.readonly Description

Implementation of ReadOnlyCache. It is specified with Cached.type() by annotating a row class, Table, or Database.

Specify cache on class that is used for row:

 @Cached(type=ReadOnlyCache.class)
 public class SomeRow 
 {
     ...
 }
 

Specify cache on Table class:

 @Cached(type=ReadOnlyCache.class)
 public class SomeTable extends Table<SomeRow> 
 {
     ...
 }
 

Specify cache on Database class (all tables will be cached):

 @Cached(type=ReadOnlyCache.class)
 public class SomeDatabase extends Database 
 {
     ...
 }
 
 SomeDatabase db = new SomeDatabase(...);
 Table<SomeRow> table = db.getTable(SomeRow.class);
 
Since:
3.0
Skip navigation links