public abstract class Query extends Object
Modifier and Type | Field and Description |
---|---|
protected NodeStatusCalculatorConfig |
config |
protected Map<String,Object> |
parameterMap |
protected StringBuilder |
sql |
Constructor and Description |
---|
Query(GenericPersistenceAccessor genericPersistenceAccessor,
NodeStatusCalculatorConfig config) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyLimitAndOffset() |
protected void |
applyOrder() |
protected void |
applyRestrictions() |
int |
count() |
protected <T> void |
executeQuery(org.opennms.features.status.api.node.strategy.query.RowHandler<T> rowHandler) |
protected <T,X> X |
executeQuerySingleResult(java.util.function.Function<T,X> function) |
protected NodeStatusCalculatorConfig |
getConfig() |
protected abstract String |
getSeverityColumn() |
protected abstract String |
getViewName() |
Map<OnmsSeverity,Long> |
overview() |
abstract Status |
status() |
protected StringBuilder sql
protected final NodeStatusCalculatorConfig config
public Query(GenericPersistenceAccessor genericPersistenceAccessor, NodeStatusCalculatorConfig config)
public int count()
public Map<OnmsSeverity,Long> overview()
protected void applyLimitAndOffset()
protected void applyOrder()
protected void applyRestrictions()
protected NodeStatusCalculatorConfig getConfig()
protected <T> void executeQuery(org.opennms.features.status.api.node.strategy.query.RowHandler<T> rowHandler)
protected <T,X> X executeQuerySingleResult(java.util.function.Function<T,X> function)
public abstract Status status()
protected abstract String getSeverityColumn()
protected abstract String getViewName()
Copyright © 2017. All rights reserved.