@Component(value="cuba_OrmCacheSupport")
public class OrmCacheSupport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Metadata |
metadata |
static java.lang.String |
NAME |
protected Persistence |
persistence |
| Constructor and Description |
|---|
OrmCacheSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
evictMasterEntity(BaseGenericIdEntity entity,
EntityAttributeChanges changes)
Evicts an entity from cache if it has the given entity as an element of collection.
|
public static final java.lang.String NAME
@Inject protected Metadata metadata
@Inject protected Persistence persistence
public void evictMasterEntity(BaseGenericIdEntity entity, @Nullable EntityAttributeChanges changes)
entity - which is being updated and can potentially be an element of a collectionchanges - changes in the entity. Null when creating and removing the entity.