R
- cache row typepublic abstract class WritableCache<R> extends AbstractCache<R>
Constructor and Description |
---|
WritableCache(Table<R> table,
Cached cachedAnnotation)
Constructs for a table and annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(Transaction transaction)
Writes any uncommitted rows to database with
Object.wait() and then commits them
by invoking AbstractCache.commit(Transaction) . |
void |
write()
Writes uncommitted rows to database by invoking
UncommittedWritableRow.write(WriteOperations)
on all rows in AbstractCache.getUncommittedCache() . |
begin, check, contains, evict, evictAll, getCachedAnnotation, getCommitted, getCommittedCache, getHits, getMisses, getPercentHits, getPrimaryKeyExtractor, getPrimaryKeyValues, getTable, getUncommitted, getUncommittedCache, hit, initCommittedCache, initUncommittedCache, log, miss, putCommitted, putUncommitted, removeCommited, rollback, setCommittedCache, setUncommittedCache, transition
public WritableCache(Table<R> table, Cached cachedAnnotation) throws CacheException
table
- cache rows for this tablecachedAnnotation
- cache annotation that defines cache parametersCacheException
- if errorpublic void commit(Transaction transaction) throws CacheException
Object.wait()
and then commits them
by invoking AbstractCache.commit(Transaction)
.commit
in interface Cache<R>
commit
in class AbstractCache<R>
transaction
- database transactionCacheException
- if errorpublic void write() throws CacheException
UncommittedWritableRow.write(WriteOperations)
on all rows in AbstractCache.getUncommittedCache()
.CacheException
- if error