org.jboss.ejb
Interface EntityCache

All Superinterfaces:
AllowedOperationsFlags (src) , ContainerPlugin (src) , InstanceCache (src) , Service (src)
All Known Implementing Classes:
EntityInstanceCache (src) , PerTxEntityInstanceCache (src)

public interface EntityCache
extends InstanceCache (src)

EntityCaches can work from several keys.

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

See Also:
EntityInstanceCache

Field Summary
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src)
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
 java.lang.Object createCacheKey(java.lang.Object id)
          Returns the key used to cache the context
 
Methods inherited from interface org.jboss.ejb.InstanceCache (src)
flush, get, getCacheSize, insert, isActive, release, remove
 
Methods inherited from interface org.jboss.ejb.ContainerPlugin (src)
setContainer
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Method Detail

createCacheKey

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

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