Class RefreshUtil
java.lang.Object
com.broadleafcommerce.enterprise.workflow.persistence.entitymanager.RefreshUtil
Performs a targeted refresh of a node to make sure the latest sandbox state is included, if applicable.
- Author:
- Jeff Fischer
- See Also:
-
EntityManager.refresh(Object)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrefreshNode(org.hibernate.Session session, Object node) Refresh an object's internal persistent state with the most relevant sandbox clones.static voidrefreshNode(org.hibernate.Session session, Object node, ReadOnlyEntityRequests readOnlyEntityRequests) static voidrefreshNode(org.hibernate.Session session, Object node, Map<String, Object> library, boolean includeCollectionInvalidation, ReadOnlyEntityRequests readOnlyEntityRequests, boolean isParentReadOnly, String... ignoreFields) static voidrefreshNode(org.hibernate.Session session, Object node, Map<String, Object> library, boolean includeCollectionInvalidation, String... ignoreFields)
-
Field Details
-
BATCH_OPERATION_ACTIVE
-
-
Constructor Details
-
RefreshUtil
public RefreshUtil()
-
-
Method Details
-
refreshNode
-
refreshNode
-
refreshNode
Refresh an object's internal persistent state with the most relevant sandbox clones.- Parameters:
session- the Hibernate session to use for refreshing the persistent statenode- the object to refresh
-
refreshNode
public static void refreshNode(org.hibernate.Session session, Object node, ReadOnlyEntityRequests readOnlyEntityRequests)
-