/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.ejb; /** * 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 EntityInstanceCache * * @author Marc Fleury * @version $Revision: 1.5.4.1 $ */ public interface EntityCache extends InstanceCache { /** * Returns the key used to cache the context * * @param id Object id / primary key * @return Cache key */ Object createCacheKey(Object id); }