com.ibm.commerce.price.utils

Class RefreshOnceCatalogEntryShippingAccessBean

  • java.lang.Object
    • com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
      • com.ibm.commerce.fulfillment.objects.CatalogEntryShippingAccessBean
        • com.ibm.commerce.price.utils.RefreshOnceCatalogEntryShippingAccessBean
  • All Implemented Interfaces:
    com.ibm.commerce.datatype.InstantiateOnceAccessBean, java.io.Serializable


    public final class RefreshOnceCatalogEntryShippingAccessBean
    extends com.ibm.commerce.fulfillment.objects.CatalogEntryShippingAccessBean
    implements com.ibm.commerce.datatype.InstantiateOnceAccessBean

    A CatalogEntryShippingAccessBean sub-class intended to be used for read operations only.

    This sub-class remembers whether or not the EJB bean specified by the intial key exists, and does not execute the refreshCopyHelper super class method more than once.

    This class is provided for use by the Helper class in the same package. Any other use is unsupported.

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.ibm.commerce.fulfillment.objects.CatalogEntryShippingAccessBean

        COPYRIGHT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.datatype.InstantiateOnceAccessBeanHelper getInstantiateOnceAccessBeanHelper()
      Returns the access bean helper that knows if the refreshCopyHelper has been called, and if the EJB bean is known to not exist.
      void instantiateEntity()
      Calls the super class refreshCopyHelper method the first time this method is called.
      • Methods inherited from class com.ibm.commerce.fulfillment.objects.CatalogEntryShippingAccessBean

        findByCatalogEntryIds, findByCatalogEntryIdsNoCache, findWithPushDownQuery, findWithPushDownQueryNoCache, getCatalogEntryId, getCatalogEntryIdInEntityType, getEntity, getHeight, getHeightInEntityType, getLength, getLengthInEntityType, getNominalQuantity, getNominalQuantityInEntityType, getQuantityMeasure, getQuantityMultiple, getQuantityMultipleInEntityType, getSizeMeasure, getWeight, getWeightInEntityType, getWeightMeasure, getWidth, getWidthInEntityType, setHeight, setHeight, setInitKey_catalogEntryId, setInitKey_catalogEntryId, setLength, setLength, setNominalQuantity, setNominalQuantity, setQuantityMeasure, setQuantityMultiple, setQuantityMultiple, setSizeMeasure, setWeight, setWeight, setWeightMeasure, setWidth, setWidth
      • Methods inherited from class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean

        createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RefreshOnceCatalogEntryShippingAccessBean

        public RefreshOnceCatalogEntryShippingAccessBean()
        Default constructor.
      • RefreshOnceCatalogEntryShippingAccessBean

        public RefreshOnceCatalogEntryShippingAccessBean(boolean abKnownToNotExist)
        Constructor to be used when the caller already knows the EJB bean does not exist.
        Parameters:
        abKnownToNotExist -
    • Method Detail

      • getInstantiateOnceAccessBeanHelper

        public com.ibm.commerce.datatype.InstantiateOnceAccessBeanHelper getInstantiateOnceAccessBeanHelper()
        Returns the access bean helper that knows if the refreshCopyHelper has been called, and if the EJB bean is known to not exist.
        Specified by:
        getInstantiateOnceAccessBeanHelper in interface com.ibm.commerce.datatype.InstantiateOnceAccessBean
        Returns:
        the helper.
      • instantiateEntity

        public void instantiateEntity()
        Calls the super class refreshCopyHelper method the first time this method is called. If ObjectNotFoundException is thrown, remembers that the EJB bean does not exist.
        Specified by:
        instantiateEntity in interface com.ibm.commerce.datatype.InstantiateOnceAccessBean
        Overrides:
        instantiateEntity in class com.ibm.commerce.fulfillment.objects.CatalogEntryShippingAccessBean