Transform
directly@Deprecated public class LookupCustomizer<T> extends Object
The predicate transform will applied to the predicates in the incoming query yielding a a predicate. If the predicate does not need to be transformed then the function can return the incoming argument. If the predicate should be removed the transform should return null. This is a way to remove or change a predicate before the query is executed. This is a good way to add new predicates to a query or to limit the result of the query before it is executed. Transforms also allow a predicate referencing a property path that does not exist on database mapped object to be changed to something that is valid.
The result transform will be applied to the results of the query after the query is executed. If the result does not need to be transformed then the function can return the incoming argument. This is a way to remove or change a result after the query is executed.
transformers should not have to deal with null items
Modifier and Type | Class and Description |
---|---|
static class |
LookupCustomizer.Builder<T>
Deprecated.
|
static interface |
LookupCustomizer.Transform<P,R>
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LookupCustomizer.Transform<Predicate,Predicate> |
getPredicateTransform()
Deprecated.
|
LookupCustomizer.Transform<T,T> |
getResultTransform()
Deprecated.
|
public LookupCustomizer.Transform<Predicate,Predicate> getPredicateTransform()
public LookupCustomizer.Transform<T,T> getResultTransform()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.