public abstract class ResultTransformFilter extends java.lang.Object implements QueryFilter
QUERY_DELIMETER| Modifier | Constructor and Description |
|---|---|
protected |
ResultTransformFilter(QueryFilter next)
Constructs a query filter that transform the format of the query result
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
query(java.util.List queries)
Transforms the queried results to a collection of different objects
|
java.util.List |
query(java.lang.String query)
Transforms the queried results to a collection of different objects
|
protected abstract java.lang.Object |
transformElement(java.lang.Object obj)
Transform a result object
|
protected java.util.List<java.lang.Object> |
transformList(java.util.List<java.lang.Object> result)
Transforms a collection to a collection of different objects.
|
protected ResultTransformFilter(QueryFilter next)
next - - the query filter to retrieve the results frompublic java.util.List query(java.lang.String query)
throws java.lang.Exception
query in interface QueryFilterquery - - the query stringjava.lang.Exceptionpublic java.util.List<java.lang.Object> query(java.util.List queries)
throws java.lang.Exception
query in interface QueryFilterqueries - - the query mapjava.lang.Exceptionprotected java.util.List<java.lang.Object> transformList(java.util.List<java.lang.Object> result)
throws java.lang.Exception
result - - the collection to transformjava.lang.Exceptionprotected abstract java.lang.Object transformElement(java.lang.Object obj)
throws java.lang.Exception
obj - - the object instance to transformjava.lang.ExceptionCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.