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
FieldsModifier and TypeFieldDescriptionprotected com.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionManagerFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()org.broadleafcommerce.common.extension.ExtensionResultStatusTypeprocessFlush(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, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
processFlushin interfacecom.broadleafcommerce.enterprise.common.persistence.persister.FlushEntityInterceptorExtensionHandler- Throws:
org.hibernate.HibernateException
-