R
- type of row objectspublic class CachedTable<R> extends Table<R>
Table
annotated
with Cached
with default values for all Cached
elements.
Use this class to create a cached table when you would like a single instance of a cached table but don't want to all instances of a table to cached. For example:
Table<SomeRow> table = ... Table<SomeRow> cachedTable = new CachedTable<>(table);
An alternative to using this class is to subclass a table class and annotate it with Cached
supplying any element values that you like:
@Cached(type=..., size=...) public class MyCachedTable extends Table<SomeRow> { ... } Table<SomeRow> cachedTable = new MyCachedTable<>(...);
Constructor and Description |
---|
CachedTable(Database database,
java.lang.Class<R> rowClass) |
CachedTable(Table<R> table) |
begin, commit, delete, delete, deleteAll, deleteAll, deleteAllBatch, deleteBatch, flush, getCache, getDatabase, getLazySelectCascadeFields, getNameTranslators, getQualifiedTableName, getRequiredCascades, getRowClass, getRowTranslator, getTableName, getTypeTranslator, initCache, initCachedAnnotation, initNameTranslators, initRowTranslator, initTableName, initTypeTranslatorMap, insert, insertAll, insertAllBatch, insertBatch, isAutoGeneratedKeys, isCached, isReadOnly, newRow, putTypeTranslator, putTypeTranslator, rollback, save, saveAll, saveAllBatch, saveBatch, select, selectAll, selectAllCustom, selectAllWhere, selectAllWhereOrdered, selectAvg, selectAvg, selectCount, selectCount, selectCount, selectCount, selectCustom, selectMax, selectMax, selectMin, selectMin, selectSum, selectSum, selectWhere, setAutoGeneratedKeys, setReadOnly, setRequiredCascades, setTableName, translateName, update, updateAll, updateAllBatch, updateBatch
public CachedTable(Table<R> table) throws SormulaException
SormulaException
public CachedTable(Database database, java.lang.Class<R> rowClass) throws SormulaException
SormulaException