Class QueryCriteriaPart
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.jdbc.sql.select.QueryPart
com.northconcepts.datapipeline.jdbc.sql.select.QueryCriteriaPart
- Direct Known Subclasses:
ConditionPart,ConjunctivePart,NotPart
Base class for the nodes of a
QueryCriteria condition tree.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryCriteriaPartadd(QueryCriteriaPart part) protected QueryCriteriaPartAppends a condition and its parameter values as a child part.protected QueryCriteriaPartaddFirst(QueryCriteriaPart part) protected QueryCriteriaPartInserts a condition and its parameter values as the first child part.voidcollectParameterValues(List<Object> values) Appends the values for this part's?parameters to the list in order; adds nothing by default.intReturns the number of conditions (ConditionParts) in this part's subtree.protected List<QueryCriteriaPart> getParts()Returns the live list of child parts.abstract booleanReturns true if this part renders any SQL; parts that do not, such as an emptyAndPart, are skipped.Methods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
collectSqlFragment, getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
-
Constructor Details
-
QueryCriteriaPart
public QueryCriteriaPart()
-
-
Method Details
-
isApplicable
public abstract boolean isApplicable()Returns true if this part renders any SQL; parts that do not, such as an emptyAndPart, are skipped. -
getParts
Returns the live list of child parts. -
add
Appends a condition and its parameter values as a child part. -
addFirst
Inserts a condition and its parameter values as the first child part. -
add
-
addFirst
-
getConditionCount
public int getConditionCount()Returns the number of conditions (ConditionParts) in this part's subtree. -
collectParameterValues
Description copied from class:SqlPartAppends the values for this part's?parameters to the list in order; adds nothing by default.- Overrides:
collectParameterValuesin classSqlPart
-