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(java.lang.Object instance)
Tests if an object instance matches the filter.
|
java.util.Comparator<java.lang.Comparable[]> |
getComparator()
The comparator corresponding to the 'order by' clause, if any.
|
java.lang.String |
getEntityTypeName()
The fully qualified entity type name accepted by this filter.
|
java.util.Set<java.lang.String> |
getParameterNames()
Returns the parameter names or an empty Set if there are no parameters.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters() |
java.lang.String[] |
getProjection()
The array of '.' separated path names of the projected fields if any, or
null otherwise. |
java.lang.Class<?>[] |
getProjectionTypes() |
SortField[] |
getSortFields()
The array of sort specifications if defined, or
null otherwise. |
ObjectFilter |
withParameters(java.util.Map<java.lang.String,java.lang.Object> namedParameters)
Creates a new ObjectFilter based on current one and the given parameters.
|
java.lang.String getEntityTypeName()
java.lang.String[] getProjection()
null otherwise.java.lang.Class<?>[] getProjectionTypes()
java.util.Set<java.lang.String> getParameterNames()
java.util.Map<java.lang.String,java.lang.Object> getParameters()
ObjectFilter withParameters(java.util.Map<java.lang.String,java.lang.Object> namedParameters)
SortField[] getSortFields()
null otherwise.java.util.Comparator<java.lang.Comparable[]> getComparator()
null if no 'order by' was specified (getSortFields() also returns null)ObjectFilter.FilterResult filter(java.lang.Object instance)
instance - the instance to test; this is never nullFilterResult if there is a match or null otherwise