站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

EntityCache (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb
Interface EntityCache

All Superinterfaces:
AllowedOperationsFlags, ContainerPlugin, InstanceCache, org.jboss.system.Service
All Known Implementing Classes:
EntityInstanceCache, PerTxEntityInstanceCache

public interface EntityCache
extends InstanceCache

EntityCaches can work from several keys.

A cache can use the natural primaryKey from the EJBObject, or DB dependent keys or a proprietary key

Version:
$Revision: 1.7 $
Author:
Marc Fleury
See Also:
EntityInstanceCache

Field Summary
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Method Summary
 Object createCacheKey(Object id)
          Returns the key used to cache the context
 
Methods inherited from interface org.jboss.ejb.InstanceCache
flush, get, getCacheSize, insert, isActive, release, remove
 
Methods inherited from interface org.jboss.ejb.ContainerPlugin
setContainer
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

createCacheKey

public Object createCacheKey(Object id)
Returns the key used to cache the context

Parameters:
id - Object id / primary key
Returns:
Cache key


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.