Class DefaultAbstractOrderPrepareInterceptor

    • Constructor Detail

      • DefaultAbstractOrderPrepareInterceptor

        public DefaultAbstractOrderPrepareInterceptor()
    • Method Detail

      • getAttributesForOrderEntriesRecalculation

        protected java.util.Collection<java.lang.String> getAttributesForOrderEntriesRecalculation()
        returns qualifiers of order attributes, which, when modified, the order and orderEntries need to be recalculated.
      • getAttributesForOrderRecalculation

        protected java.util.Collection<java.lang.String> getAttributesForOrderRecalculation()
        returns qualifiers of order attributes, which, when modified, the order needs to be recalculated.
      • isCalculatedFlagUnchangedOrFalse

        protected boolean isCalculatedFlagUnchangedOrFalse​(AbstractOrderModel order,
                                                           InterceptorContext ctx)
        As all of the order calculation is moved to the SL we can do the calculation and set the calculated flag in a single database update. Therefore if the order has the calculated flag to to true we trust that the order is already calculated and therefore let the flag be persisted
      • setKeyGenerator

        public void setKeyGenerator​(KeyGenerator keyGenerator)
      • setAttributesForOrderRecalculation

        public void setAttributesForOrderRecalculation​(java.util.Collection<java.lang.String> attributesForOrderRecalculation)
      • setAttributesForOrderEntriesRecalculation

        public void setAttributesForOrderEntriesRecalculation​(java.util.Collection<java.lang.String> attributesForOrderEntriesRecalculation)