public final class FilterResult
extends java.lang.Object
| Constructor and Description |
|---|
FilterResult(java.lang.Object instance,
java.lang.Object[] projection,
java.lang.Comparable[] sortProjection) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getInstance()
Returns the matched object.
|
java.lang.Object[] |
getProjection()
Returns the projection, if a projection was requested or
null otherwise. |
java.lang.Comparable[] |
getSortProjection()
Returns the projection of fields that appear in the 'order by' clause, if any, or
null otherwise. |
java.lang.String |
toString() |
public FilterResult(java.lang.Object instance,
java.lang.Object[] projection,
java.lang.Comparable[] sortProjection)
public java.lang.Object getInstance()
public java.lang.Object[] getProjection()
null otherwise.public java.lang.Comparable[] getSortProjection()
null otherwise.
Please note that no actual sorting is performed! The 'order by' clause is ignored but the fields listed there are still projected and returned so the caller can easily sort the results if needed. Do not use 'order by' with filters if this behaviour does not suit you.
public java.lang.String toString()
toString in class java.lang.Object