public class FirstLevelCache extends Object
Constructor and Description |
---|
FirstLevelCache() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String entityName,
Number revision,
Object id) |
boolean |
containsEntityName(Object id,
Number revision,
Object entity) |
Object |
get(String entityName,
Number revision,
Object id) |
String |
getFromEntityNameCache(Object id,
Number revision,
Object entity)
Gets the entityName from the cache.
|
void |
put(String entityName,
Number revision,
Object id,
Object entity) |
void |
putOnEntityNameCache(Object id,
Number revision,
Object entity,
String entityName)
Adds the entityName into the cache.
|
public void putOnEntityNameCache(Object id, Number revision, Object entity, String entityName)
id
- primaryKeyrevision
- revision numberentity
- object retrieved by enversentityName
- value of the cachepublic String getFromEntityNameCache(Object id, Number revision, Object entity)
id
- primaryKeyrevision
- revision numberentity
- object retrieved by enversCopyright © 2019 JBoss by Red Hat. All rights reserved.