public abstract class ResultTransformFilter extends 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 |
---|---|
List<Object> |
query(List queries)
Transforms the queried results to a collection of different objects
|
List |
query(String query)
Transforms the queried results to a collection of different objects
|
protected abstract Object |
transformElement(Object obj)
Transform a result object
|
protected List<Object> |
transformList(List<Object> result)
Transforms a collection to a collection of different objects.
|
protected ResultTransformFilter(QueryFilter next)
next
- - the query filter to retrieve the results frompublic List query(String query) throws Exception
query
in interface QueryFilter
query
- - the query stringException
public List<Object> query(List queries) throws Exception
query
in interface QueryFilter
queries
- - the query mapException
protected List<Object> transformList(List<Object> result) throws Exception
result
- - the collection to transformException
protected abstract Object transformElement(Object obj) throws Exception
obj
- - the object instance to transformException
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.