Class WorkflowFlushEntityInterceptorExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
com.broadleafcommerce.enterprise.workflow.persistence.persister.WorkflowFlushEntityInterceptorExtensionHandler
All Implemented Interfaces:
com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionHandler, org.broadleafcommerce.common.extension.ExtensionHandler

@Repository("blWorkflowFlushEntityInterceptorExtensionHandler") public class WorkflowFlushEntityInterceptorExtensionHandler extends org.broadleafcommerce.common.extension.AbstractExtensionHandler implements com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionHandler
Intercept Hibernate updates for sandboxable entities. Detects if any sandboxable references were swapped out for original references and will cause those dirty properties to be ignored by Hibernate. The goal is to cause these properties not to engage Hibernate dirty state detection and on their own force a persistence event during flush.
Author:
Jeff Fischer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionManager
     

    Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    enabled, priority
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    processFlush(org.hibernate.event.spi.FlushEntityEvent event, org.broadleafcommerce.common.extension.ExtensionResultHolder<String[]> result)
     

    Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    getPriority, isEnabled, setEnabled, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled
  • Field Details

    • extensionManager

      protected com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionManager extensionManager
  • Constructor Details

    • WorkflowFlushEntityInterceptorExtensionHandler

      public WorkflowFlushEntityInterceptorExtensionHandler()
  • Method Details

    • init

      @PostConstruct public void init()
    • processFlush

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType processFlush(org.hibernate.event.spi.FlushEntityEvent event, org.broadleafcommerce.common.extension.ExtensionResultHolder<String[]> result) throws org.hibernate.HibernateException
      Specified by:
      processFlush in interface com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionHandler
      Throws:
      org.hibernate.HibernateException