public class L3CacheRepositoryDecorator extends AbstractRepositoryDecorator<Entity>
L3Cache based on a Query
if RepositoryCapability.CACHEABLE.
Delegates to the underlying Repository
| Constructor and Description |
|---|
L3CacheRepositoryDecorator(Repository<Entity> decoratedRepository,
L3Cache l3Cache,
TransactionInformation transactionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected Repository<Entity> |
delegate() |
java.util.stream.Stream<Entity> |
findAll(Query<Entity> query)
Retrieves a
List of identifiers from the L3Cache if the
Repository is cacheable and the Query is
limited (i.e. |
Entity |
findOne(Query<Entity> query)
Retrieves a single identifier from the
L3Cache if the
Repository is cacheable and hasn't been touched in this transaction. |
add, add, aggregate, close, count, count, delete, delete, deleteAll, deleteAll, deleteById, findAll, findAll, findOneById, findOneById, forEachBatched, getCapabilities, getEntityType, getName, getQueryOperators, iterator, query, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachBatchedforEach, spliteratorpublic L3CacheRepositoryDecorator(Repository<Entity> decoratedRepository, L3Cache l3Cache, TransactionInformation transactionInformation)
protected Repository<Entity> delegate()
delegate in class AbstractRepositoryDecorator<Entity>public java.util.stream.Stream<Entity> findAll(Query<Entity> query)
List of identifiers from the L3Cache if the
Repository is cacheable and the Query is
limited (i.e. contains a pageSize) between 0 and MAX_PAGE_SIZEfindAll in interface Repository<Entity>findAll in class AbstractRepositoryDecorator<Entity>query - The QueryEntitypublic Entity findOne(Query<Entity> query)
L3Cache if the
Repository is cacheable and hasn't been touched in this transaction.findOne in interface Repository<Entity>findOne in class AbstractRepositoryDecorator<Entity>query - The QueryEntity or null if not foundCopyright © 2017. All Rights Reserved.