public class FirstLevelCache extends Object
Modifier and Type | Field and Description |
---|---|
static EnversMessageLogger |
LOG |
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 static final EnversMessageLogger LOG
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 © 2012 JBoss by Red Hat. All Rights Reserved.