-
- All Superinterfaces:
Field<T>
,FieldOrConstraint
,FieldOrRow
,GroupField
,Named
,OrderField<T>
,QueryPart
,SelectField<T>
,SelectFieldOrAsterisk
,Serializable
,Typed<T>
,WindowBeforeOverStep<T>
,WindowOverStep<T>
- All Known Subinterfaces:
AggregateFunction<T>
,ArrayAggOrderByStep<T>
,GroupConcatOrderByStep
,GroupConcatSeparatorStep
public interface AggregateFilterStep<T> extends WindowBeforeOverStep<T>
The step in the specification of aggregate functions where the SQL:2003 standardFILTER clause
can be added.Referencing
XYZ*Step
types directly from client codeIt is usually not recommended to reference any
XYZ*Step
types directly from client code, or assign them to local variables. When writing dynamic SQL, creating a statement's components dynamically, and passing them to the DSL API statically is usually a better choice. See the manual's section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.Drawbacks of referencing the
XYZ*Step
types directly:- They're operating on mutable implementations (as of jOOQ 3.x)
- They're less composable and not easy to get right when dynamic SQL gets complex
- They're less readable
- They might have binary incompatible changes between minor releases
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WindowBeforeOverStep<T>
filterWhere(Boolean field)
Deprecated.- 3.8.0 - [#4763] - UsefilterWhere(Condition)
(typically withDSL.trueCondition()
,DSL.falseCondition()
, orDSL.noCondition()
as the parameter) orfilterWhere(Field)
instead.WindowBeforeOverStep<T>
filterWhere(String sql)
Add aFILTER clause
to the aggregate function.WindowBeforeOverStep<T>
filterWhere(String sql, Object... bindings)
Add aFILTER clause
to the aggregate function.WindowBeforeOverStep<T>
filterWhere(String sql, QueryPart... parts)
Add aFILTER clause
to the aggregate function.WindowBeforeOverStep<T>
filterWhere(Collection<? extends Condition> conditions)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.WindowBeforeOverStep<T>
filterWhere(Condition condition)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.WindowBeforeOverStep<T>
filterWhere(Condition... conditions)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.WindowBeforeOverStep<T>
filterWhere(Field<Boolean> field)
Add aFILTER clause
to the aggregate function.WindowBeforeOverStep<T>
filterWhere(SQL sql)
Add aFILTER clause
to the aggregate function.-
Methods inherited from interface org.jooq.Field
abs, acos, add, add, as, as, as, as, asc, ascii, asin, atan, atan2, atan2, avg, avgOver, between, between, between, between, betweenSymmetric, betweenSymmetric, betweenSymmetric, betweenSymmetric, bitAnd, bitAnd, bitLength, bitNand, bitNand, bitNor, bitNor, bitNot, bitOr, bitOr, bitXNor, bitXNor, bitXor, bitXor, cast, cast, cast, ceil, changed, charLength, coalesce, coalesce, coerce, coerce, coerce, collate, collate, collate, compare, compare, compare, compare, concat, concat, concat, contains, contains, containsIgnoreCase, containsIgnoreCase, cos, cosh, cot, coth, count, countDistinct, countOver, decode, decode, decode, decode, deg, desc, div, div, divide, divide, endsWith, endsWith, endsWithIgnoreCase, endsWithIgnoreCase, eq, eq, eq, eq, equal, equal, equal, equal, equalIgnoreCase, equalIgnoreCase, equals, exp, extract, field, firstValue, floor, from, ge, ge, ge, ge, get, getComment, getName, getValue, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterThan, greaterThan, greaterThan, greaterThan, greatest, greatest, gt, gt, gt, gt, in, in, in, in, in, isDistinctFrom, isDistinctFrom, isFalse, isJson, isNotDistinctFrom, isNotDistinctFrom, isNotJson, isNotNull, isNull, isTrue, lag, lag, lag, lag, lastValue, le, le, le, le, lead, lead, lead, lead, least, least, length, lessOrEqual, lessOrEqual, lessOrEqual, lessOrEqual, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeRegex, likeRegex, ln, log, lower, lpad, lpad, lpad, lpad, lt, lt, lt, lt, ltrim, max, maxOver, median, min, minOver, minus, minus, mod, mod, modulo, modulo, mul, mul, multiply, multiply, ne, ne, ne, ne, neg, notBetween, notBetween, notBetween, notBetween, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notContains, notContains, notContainsIgnoreCase, notContainsIgnoreCase, notEqual, notEqual, notEqual, notEqual, notEqualIgnoreCase, notEqualIgnoreCase, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLike, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeRegex, notLikeRegex, notSimilarTo, notSimilarTo, notSimilarTo, notSimilarTo, nullif, nullif, nvl, nvl, nvl2, nvl2, octetLength, original, plus, plus, plus, position, position, pow, pow, power, power, rad, rem, rem, repeat, repeat, replace, replace, replace, replace, reset, round, round, rpad, rpad, rpad, rpad, rtrim, shl, shl, shr, shr, sign, similarTo, similarTo, similarTo, similarTo, sin, sinh, sort, sort, sortAsc, sortAsc, sortDefault, sortDesc, sortDesc, sqrt, startsWith, startsWith, startsWithIgnoreCase, startsWithIgnoreCase, stddevPop, stddevPopOver, stddevSamp, stddevSampOver, sub, sub, substring, substring, substring, substring, subtract, subtract, sum, sumOver, tan, tanh, times, times, trim, unaryMinus, unaryPlus, upper, varPop, varPopOver, varSamp, varSampOver
-
Methods inherited from interface org.jooq.Named
getQualifiedName, getUnqualifiedName
-
Methods inherited from interface org.jooq.Typed
getBinding, getConverter, getDataType, getDataType, getType
-
-
-
-
Method Detail
-
filterWhere
@Support WindowBeforeOverStep<T> filterWhere(Condition condition)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.
-
filterWhere
@Support WindowBeforeOverStep<T> filterWhere(Condition... conditions)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.
-
filterWhere
@Support WindowBeforeOverStep<T> filterWhere(Collection<? extends Condition> conditions)
Add aFILTER clause
to the aggregate function, connecting conditions with each other withOperator.AND
.
-
filterWhere
@Support WindowBeforeOverStep<T> filterWhere(Field<Boolean> field)
Add aFILTER clause
to the aggregate function.
-
filterWhere
@Deprecated @Support WindowBeforeOverStep<T> filterWhere(Boolean field)
Deprecated.- 3.8.0 - [#4763] - UsefilterWhere(Condition)
(typically withDSL.trueCondition()
,DSL.falseCondition()
, orDSL.noCondition()
as the parameter) orfilterWhere(Field)
instead. Due to ambiguity between calling this method usingField.equals(Object)
argument, vs. calling the other method via aField.equal(Object)
argument, this method will be removed in the future.Add aFILTER clause
to the aggregate function.
-
filterWhere
@Support @PlainSQL WindowBeforeOverStep<T> filterWhere(SQL sql)
Add aFILTER clause
to the aggregate function.NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
- See Also:
DSL.condition(SQL)
,SQL
-
filterWhere
@Support @PlainSQL WindowBeforeOverStep<T> filterWhere(String sql)
Add aFILTER clause
to the aggregate function.NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
- See Also:
DSL.condition(String)
,SQL
-
filterWhere
@Support @PlainSQL WindowBeforeOverStep<T> filterWhere(String sql, Object... bindings)
Add aFILTER clause
to the aggregate function.NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
-
filterWhere
@Support @PlainSQL WindowBeforeOverStep<T> filterWhere(String sql, QueryPart... parts)
Add aFILTER clause
to the aggregate function.NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
-
-