public final class ReadAheadCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadAheadCache.EntityReadAheadInfo |
Constructor and Description |
---|
ReadAheadCache(JDBCStoreManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addFinderResults(List results,
JDBCReadAheadMetaData readahead) |
void |
addPreloadData(Object pk,
JDBCFieldBridge field,
Object fieldValue)
Add preloaded data for an entity within the scope of a transaction
|
void |
create() |
void |
destroy() |
Collection |
getCachedCMRValue(Object pk,
JDBCCMRFieldBridge cmrField)
Returns the cached value of a CMR field or null if nothing was cached for this field.
|
ReadAheadCache.EntityReadAheadInfo |
getEntityReadAheadInfo(Object pk) |
Map |
getPreloadDataMap(Object entityPrimaryKey,
boolean create)
Gets the map of preloaded data.
|
boolean |
load(CmpEntityBeanContext ctx)
Loads all of the preloaded data for the ctx into it.
|
void |
removeCachedData(Object primaryKey) |
void |
start() |
void |
stop() |
public ReadAheadCache(JDBCStoreManager manager)
public void create()
public void start()
public void stop()
public void destroy()
public void addFinderResults(List results, JDBCReadAheadMetaData readahead)
public ReadAheadCache.EntityReadAheadInfo getEntityReadAheadInfo(Object pk)
public boolean load(CmpEntityBeanContext ctx)
ctx
- the context that will be loadedpublic Collection getCachedCMRValue(Object pk, JDBCCMRFieldBridge cmrField)
pk
- primary key.cmrField
- the field to get the cached value for.cmrField
or null if no value cached.public void addPreloadData(Object pk, JDBCFieldBridge field, Object fieldValue)
public void removeCachedData(Object primaryKey)
public Map getPreloadDataMap(Object entityPrimaryKey, boolean create)
entityPrimaryKey
- the primary key of the entitycreate
- should a new preload data map be created if one is not foundCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.