public class CachedStoreEntityDescriptionAccessBean extends StoreEntityDescriptionAccessBean implements com.ibm.commerce.datatype.AbstractEntityAccessBeanFinderResult.CachedEntityAccessBean
A StoreEntityDescription access bean that takes advantage of the StoreEntityDescriptionCache.
Only superclasses and the StoreEntityDescriptionCache class should reference this class. WebSphere Commerce data beans may also extend this class. (Any other reference is unsupported.)
Constructor and Description |
---|
CachedStoreEntityDescriptionAccessBean()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable | __getCache()
Get the hashtable of cached entity access bean attributes.
|
java.lang.Object | __getKey()
Obtain the primary key object for the cached entity access bean.
|
void | __setCache(java.util.Hashtable ahshCache)
Replace the hashtable of cached entity access bean attributes.
|
javax.ejb.EJBObject | getEJBRef()
Get the EJB reference for this cached entity access bean.
|
protected void | initialize(StoreEntityDescriptionAccessBean anAB)
Initializes this access bean with the copy helper attributes of the specified access bean if it has the same class, or with the EJB reference otherwise.
|
void | refreshCopyHelper()
Refresh the hashtable of cached entity access bean attributes.
|
void | setEJBRef(javax.ejb.EJBObject aEjbRef)
Set the EJB reference for this cached entity access bean.
|
void | setInitKey_languageId(java.lang.String astrLanguageId)
Set primary key information to be used when finding the enterprise bean by primary key.
|
void | setInitKey_storeEntityId(java.lang.String astrStoreEntityId)
Set primary key information to be used when finding the enterprise bean by primary key.
|
public CachedStoreEntityDescriptionAccessBean()
Constructor.
Only superclasses and the StoreEntityDescriptionCache class should use this method. (Any other use is unsupported.)
protected void initialize(StoreEntityDescriptionAccessBean anAB) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.CreateException
Initializes this access bean with the copy helper attributes of the specified access bean if it has the same class, or with the EJB reference otherwise.
Only constructors of WebSphere Commerce data bean subclasses should use this method. (Any other use is unsupported.)
public java.lang.Object __getKey() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.CreateException
Obtain the primary key object for the cached entity access bean.
The AbstractEntityAccessBean behavior is enhanced to return a valid key when the initial primary key information has been set via the setinitKey_xxx methods.
public javax.ejb.EJBObject getEJBRef() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.CreateException
Get the EJB reference for this cached entity access bean.
public void setEJBRef(javax.ejb.EJBObject aEjbRef)
Set the EJB reference for this cached entity access bean.
The AbstractEntityAccessBean interface is overridden to make it public instead of protected.
public void __setCache(java.util.Hashtable ahshCache)
Replace the hashtable of cached entity access bean attributes.
The AbstractEntityAccessBean interface is overridden to make it public instead of protected.
The AbstractEntityAccessBean behavior is enhanced to also set the primary key information via calls to the setInitKey_xxx methods using attribute values found in the specified hashtable.
public java.util.Hashtable __getCache()
Get the hashtable of cached entity access bean attributes.
The AbstractEntityAccessBean interface is overridden to make it public instead of protected.
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.CreateException
Refresh the hashtable of cached entity access bean attributes.
The AbstractEntityAccessBean behavior is enhanced to obtain this information from the cache when the access bean does not yet know its EJB reference. The intended performance improvement is to avoid loading the EJB into the EJB cache unnecessarily.
public void setInitKey_storeEntityId(java.lang.String astrStoreEntityId)
Set primary key information to be used when finding the enterprise bean by primary key.
The AbstractEntityAccessBean behavior is overridden so that this subclass can remember the primary key information and use it in the overridden __getKey method.
public void setInitKey_languageId(java.lang.String astrLanguageId)
Set primary key information to be used when finding the enterprise bean by primary key.
The AbstractEntityAccessBean behavior is overridden so that this subclass can remember the primary key information and use it in the overridden __getKey method.