| java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache
ReadAheadCache | final public class ReadAheadCache (Code) | | ReadAheadCache stores all of the data readahead for an entity.
Data is stored in the JDBCStoreManager entity tx data map on a per entity
basis. The read ahead data for each entity is stored with a soft reference.
author: Dain Sundstrom version: $Revision: 57209 $ |
Inner Class :final public static class EntityReadAheadInfo | |
addPreloadData | public void addPreloadData(Object pk, JDBCFieldBridge field, Object fieldValue)(Code) | | Add preloaded data for an entity within the scope of a transaction
|
create | public void create()(Code) | | |
destroy | public void destroy()(Code) | | |
getCachedCMRValue | public Collection getCachedCMRValue(Object pk, JDBCCMRFieldBridge cmrField)(Code) | | Returns the cached value of a CMR field or null if nothing was cached for this field.
Parameters: pk - primary key. Parameters: cmrField - the field to get the cached value for. cached value for the cmrField or null if no value cached. |
getEntityReadAheadInfo | public EntityReadAheadInfo getEntityReadAheadInfo(Object pk)(Code) | | |
getPreloadDataMap | public Map getPreloadDataMap(Object entityPrimaryKey, boolean create)(Code) | | Gets the map of preloaded data.
Parameters: entityPrimaryKey - the primary key of the entity Parameters: create - should a new preload data map be created if one is not found the preload data map for null if one is not found |
load | public boolean load(EntityEnterpriseContext ctx)(Code) | | Loads all of the preloaded data for the ctx into it.
Parameters: ctx - the context that will be loaded true if at least one field was loaded. |
removeCachedData | public void removeCachedData(Object primaryKey)(Code) | | |
start | public void start()(Code) | | |
|
|