Class | Description |
---|---|
ReadOnlyCache<R> |
A cache that retains rows that selected, inserted, updated, and deleted.
|
UncommittedDelete<R> |
Row in
ReadOnlyCache that has been deleted. |
UncommittedInsert<R> |
A row that has been inserted into a
ReadOnlyCache but not yet written to database. |
UncommittedReadOnlyRow<R> | |
UncommittedSelect<R> |
A row that has been selected from database and stored in a
ReadOnlyCache but not yet committed. |
UncommittedUpdate<R> |
A row that has been updated in a
ReadOnlyCache . |
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);