java.lang.Object
io.ebeaninternal.server.cache.CacheChangeSet
List of changes to be applied to L2 cache.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct specifying if we also need to process invalidation for entities based on views. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeanInsert(String baseTable) On bean insert register table for view based entity invalidation.<T> voidaddBeanRemove(BeanDescriptor<T> desc, Object id) Remove a bean from the cache.<T> voidaddBeanRemoveMany(BeanDescriptor<T> desc, Collection<Object> ids) Remove a bean from the cache.<T> voidaddBeanUpdate(BeanDescriptor<T> desc, String key, Map<String, Object> changes, boolean updateNaturalKey, long version) Update a bean entry.voidaddClearBean(BeanDescriptor<?> descriptor) Add an entry to clear a bean cache.voidaddClearQuery(BeanDescriptor<?> descriptor) Add an entry to clear a query cache.voidaddInvalidate(BeanDescriptor<?> descriptor) Add an entry to clear a query cache.voidaddInvalidate(Set<String> tables) Add invalidation on a set of tables.<T> voidaddManyClear(BeanDescriptor<T> desc, String manyProperty) Add many property clear.<T> voidaddManyPut(BeanDescriptor<T> desc, String manyProperty, String parentKey, CachedManyIds entry) Add many property put.<T> voidaddManyRemove(BeanDescriptor<T> desc, String manyProperty, String parentKey) Add many property remove.<T> voidaddNaturalKeyPut(BeanDescriptor<T> desc, String key, String val) Update a natural key.voidapply()Apply the changes to the L2 cache except entity/view invalidation.Return the touched tables.
-
Constructor Details
-
CacheChangeSet
public CacheChangeSet()Construct specifying if we also need to process invalidation for entities based on views.
-
-
Method Details
-
touchedTables
Return the touched tables. -
apply
public void apply()Apply the changes to the L2 cache except entity/view invalidation.Return the set of table changes to process invalidation for entities based on views.
-
addInvalidate
Add an entry to clear a query cache. -
addInvalidate
Add invalidation on a set of tables. -
addClearQuery
Add an entry to clear a query cache. -
addClearBean
Add an entry to clear a bean cache. -
addManyClear
Add many property clear. -
addManyRemove
Add many property remove. -
addManyPut
public <T> void addManyPut(BeanDescriptor<T> desc, String manyProperty, String parentKey, CachedManyIds entry) Add many property put. -
addBeanInsert
On bean insert register table for view based entity invalidation. -
addBeanRemove
Remove a bean from the cache. -
addBeanRemoveMany
Remove a bean from the cache. -
addBeanUpdate
public <T> void addBeanUpdate(BeanDescriptor<T> desc, String key, Map<String, Object> changes, boolean updateNaturalKey, long version) Update a bean entry. -
addNaturalKeyPut
Update a natural key.
-