|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.console.filter.ResultTransformFilter
public abstract class ResultTransformFilter
Field Summary |
---|
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter |
---|
QUERY_DELIMETER |
Constructor Summary | |
---|---|
protected |
ResultTransformFilter(QueryFilter next)
Constructs a query filter that transform the format of the query result |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ResultTransformFilter(QueryFilter next)
next
- - the query filter to retrieve the results fromMethod Detail |
---|
public List query(String query) throws Exception
query
in interface QueryFilter
query
- - the query string
Exception
public List<Object> query(List queries) throws Exception
query
in interface QueryFilter
queries
- - the query map
Exception
protected List<Object> transformList(List<Object> result) throws Exception
result
- - the collection to transform
Exception
protected abstract Object transformElement(Object obj) throws Exception
obj
- - the object instance to transform
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |