public interface ObjectFilter
Modifier and Type | Interface and Description |
---|---|
static interface |
ObjectFilter.FilterResult
The output of the
filter(java.lang.Object) method. |
Modifier and Type | Method and Description |
---|---|
ObjectFilter.FilterResult |
filter(Object instance)
Tests if an object instance matches the filter.
|
Comparator<Comparable[]> |
getComparator()
The comparator corresponding to the 'order by' clause, if any.
|
String |
getEntityTypeName()
The fully qualified entity type name accepted by this filter.
|
Set<String> |
getParameterNames()
Returns the parameter names or an empty Set if there are no parameters.
|
Map<String,Object> |
getParameters() |
String[] |
getProjection()
The array of '.' separated path names of the projected fields if any, or
null otherwise. |
Class<?>[] |
getProjectionTypes() |
SortField[] |
getSortFields()
The array of sort specifications if defined, or
null otherwise. |
ObjectFilter |
withParameters(Map<String,Object> namedParameters)
Creates a new ObjectFilter based on current one and the given parameters.
|
String getEntityTypeName()
String[] getProjection()
null
otherwise.Class<?>[] getProjectionTypes()
Set<String> getParameterNames()
ObjectFilter withParameters(Map<String,Object> namedParameters)
SortField[] getSortFields()
null
otherwise.Comparator<Comparable[]> getComparator()
null
if no 'order by' was specified (getSortFields()
also returns null
)ObjectFilter.FilterResult filter(Object instance)
instance
- the instance to test; this is never null
FilterResult
if there is a match or null
otherwiseCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.