Class | Description |
---|---|
ReadWriteCache<R> |
A cache that retains rows that selected, inserted, updated, and deleted.
|
UncommittedDelete<R> |
Row in
ReadWriteCache that has been deleted. |
UncommittedInsert<R> |
A row that has been inserted into a writable cache but not yet written to database.
|
UncommittedSave<R> |
A row that has been saved into a writable cache but not yet written to database.
|
UncommittedSelect<R> |
A row that has been selected from database and stored in a writable cache but not yet committed.
|
UncommittedUpdate<R> |
A row that has been updated in a writable cache but not yet written to database.
|
ReadWriteCache
. 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=ReadWriteCache.class) public class SomeRow { ... }
Specify cache on Table class:
@Cached(type=ReadWriteCache.class) public class SomeTable extends Table<SomeRow> { ... }
Specify cache on Database class (all tables will be cached):
@Cached(type=ReadWriteCache.class) public class SomeDatabase extends Database { ... } SomeDatabase db = new SomeDatabase(...); Table<SomeRow> table = db.getTable(SomeRow.class);