|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.addon.jpacontainer.util.DefaultQueryModifierDelegate
public class DefaultQueryModifierDelegate
A default (empty) implementation of the QueryModifierDelegate
interface. This is provided for the convenience of the developer who needs to
implement only a specific delegate method.
| Constructor Summary | |
|---|---|
DefaultQueryModifierDelegate()
|
|
| Method Summary | |
|---|---|
void |
filtersWereAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
This method is called after all filters have been applied to the query. |
void |
filtersWillBeAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query,
List<javax.persistence.criteria.Predicate> predicates)
This method is called after filters (in the form of Container.Filter) have
been translated into instances of Predicate, but before the
resulting predicates have been added to query. |
void |
orderByWasAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
This method is called after the order by has been applied for the query. |
void |
orderByWillBeAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query,
List<javax.persistence.criteria.Order> orderBy)
This method is called after all SortBy instances have been
translated into Order instances, but before they have been
applied to the query. |
void |
queryHasBeenBuilt(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
This method is called after the CriteriaQuery instance has been
completely built (configured). |
void |
queryWillBeBuilt(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
This method is called after the CriteriaQuery instance (
query) has been instantiated, but before any state has been
set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultQueryModifierDelegate()
| Method Detail |
|---|
public void queryWillBeBuilt(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
CriteriaQuery instance (
query) has been instantiated, but before any state has been
set.
Operations and configuration may be performed on the query instance.
This default implementation does nothing.
queryWillBeBuilt in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being built
public void queryHasBeenBuilt(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
CriteriaQuery instance has been
completely built (configured).
Any operations may be performed on the query instance.
This default implementation does nothing.
queryHasBeenBuilt in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being built
public void filtersWillBeAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query,
List<javax.persistence.criteria.Predicate> predicates)
Container.Filter) have
been translated into instances of Predicate, but before the
resulting predicates have been added to query.
The contents of the predicates list may be modified at this
point. Any operations may be performed on the query instance.
This default implementation does nothing.
filtersWillBeAdded in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being builtpredicates - the list of predicates (Predicate) to be applied. The
contents of this list may be modified.
public void filtersWereAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
filtersWereAdded in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being built
public void orderByWillBeAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query,
List<javax.persistence.criteria.Order> orderBy)
SortBy instances have been
translated into Order instances, but before they have been
applied to the query.
The contents of the orderBy list may be modified at this
point. Any operations may be performed on the query instance.
This default implementation does nothing.
orderByWillBeAdded in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being builtorderBy - the list of order by rules (Order) to be applied. The
contents of this list may be modified.
public void orderByWasAdded(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.CriteriaQuery<?> query)
orderByWasAdded in interface QueryModifierDelegatecriteriaBuilder - the CriteriaBuilder used to build the queryquery - the CriteriaQuery being built
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||