public final class QueryCriteria extends QueryPart
Modifier and Type | Class and Description |
---|---|
static class |
QueryCriteria.CriteriaType |
Constructor and Description |
---|
QueryCriteria() |
QueryCriteria(QueryCriteria.CriteriaType type) |
QueryCriteria(String statement,
Object... values) |
Modifier and Type | Method and Description |
---|---|
ConjunctivePart |
add(boolean andConjunction,
boolean first,
String statement,
Object... values) |
ConjunctivePart |
add(boolean andConjunction,
String statement,
Object... values) |
AndPart |
and(boolean first,
QueryCriteriaPart part) |
AndPart |
and(boolean first,
String statement,
Object... values) |
AndPart |
and(QueryCriteriaPart part) |
AndPart |
and(String statement,
Object... values) |
QueryCriteria |
clear() |
void |
collectParameterValues(List<Object> values) |
void |
collectSqlFragment(CodeWriter writer) |
QueryCriteriaPart |
getRootPart() |
QueryCriteria.CriteriaType |
getType() |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
OrPart |
or(boolean first,
QueryCriteriaPart part) |
OrPart |
or(boolean first,
String statement,
Object... values) |
OrPart |
or(QueryCriteriaPart part) |
OrPart |
or(String statement,
Object... values) |
QueryCriteria |
setRootPart(QueryCriteriaPart rootPart) |
QueryCriteria |
setType(QueryCriteria.CriteriaType type) |
getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
public QueryCriteria()
public QueryCriteria(QueryCriteria.CriteriaType type)
public boolean isEmpty()
public boolean isNotEmpty()
public QueryCriteria clear()
public QueryCriteria.CriteriaType getType()
public QueryCriteria setType(QueryCriteria.CriteriaType type)
public QueryCriteriaPart getRootPart()
public QueryCriteria setRootPart(QueryCriteriaPart rootPart)
public AndPart and(boolean first, QueryCriteriaPart part)
public AndPart and(QueryCriteriaPart part)
public OrPart or(boolean first, QueryCriteriaPart part)
public OrPart or(QueryCriteriaPart part)
public ConjunctivePart add(boolean andConjunction, boolean first, String statement, Object... values)
public ConjunctivePart add(boolean andConjunction, String statement, Object... values)
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment
in class SqlPart
public void collectParameterValues(List<Object> values)
collectParameterValues
in class SqlPart
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.