public abstract class ActiveMQAbstractView<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected Collection<T> |
collection |
protected String |
options |
protected ActiveMQFilterPredicate<T> |
predicate |
protected String |
sortColumn |
protected String |
sortOrder |
Constructor and Description |
---|
ActiveMQAbstractView() |
Modifier and Type | Method and Description |
---|---|
abstract Class |
getClassT() |
Comparator<T> |
getComparator() |
abstract String |
getDefaultOrderColumn() |
List<T> |
getPagedResult(int page,
int pageSize) |
Predicate<T> |
getPredicate() |
String |
getResultsAsJson(int page,
int pageSize) |
void |
setCollection(Collection<T> collection) |
void |
setOptions(String options) |
abstract JsonObjectBuilder |
toJson(T obj) |
protected String |
toString(Object o)
JsonObjectBuilder will throw an NPE if a null value is added.
|
protected Collection<T> collection
protected ActiveMQFilterPredicate<T> predicate
protected String sortColumn
protected String sortOrder
protected String options
public void setCollection(Collection<T> collection)
public String getResultsAsJson(int page, int pageSize)
public Comparator<T> getComparator()
public void setOptions(String options)
public abstract Class getClassT()
public abstract JsonObjectBuilder toJson(T obj)
public abstract String getDefaultOrderColumn()
Copyright © 2019 JBoss by Red Hat. All rights reserved.