public interface FilterEnabler
Filter
in the Hibernate Session
based on the current,
thread local context. FilterEnablers are used primarily to turn on and
off query manipulaton behavior that facilitates enterprise functionality.Modifier and Type | Method and Description |
---|---|
void |
disableFilter(org.hibernate.Session session,
org.broadleafcommerce.common.web.BroadleafRequestContext context)
Turn off the Hibernate
Filter for the session using
the thread local context. |
void |
enableFilter(org.hibernate.Session session,
org.broadleafcommerce.common.web.BroadleafRequestContext context)
Turn on the Hibernate
Filter for the session using
the thread local context. |
boolean |
isDirtyEnable(org.hibernate.Session session,
org.broadleafcommerce.common.web.BroadleafRequestContext context)
If
enableFilter(org.hibernate.Session, org.broadleafcommerce.common.web.BroadleafRequestContext) has not been run before,
or if some state has changed since the last time it was run that would cause a different outcome now. |
void enableFilter(org.hibernate.Session session, org.broadleafcommerce.common.web.BroadleafRequestContext context)
Filter
for the session using
the thread local context.session
- the Hibernate sessioncontext
- the thread local contextvoid disableFilter(org.hibernate.Session session, org.broadleafcommerce.common.web.BroadleafRequestContext context)
Filter
for the session using
the thread local context.session
- the Hibernate sessioncontext
- the thread local contextboolean isDirtyEnable(org.hibernate.Session session, org.broadleafcommerce.common.web.BroadleafRequestContext context)
enableFilter(org.hibernate.Session, org.broadleafcommerce.common.web.BroadleafRequestContext)
has not been run before,
or if some state has changed since the last time it was run that would cause a different outcome now.session
- context
- Copyright © 2017. All rights reserved.