diff --git a/jOOQ/src/main/java/org/jooq/QueryPart.java b/jOOQ/src/main/java/org/jooq/QueryPart.java index e10ea6ff42..68e2285734 100644 --- a/jOOQ/src/main/java/org/jooq/QueryPart.java +++ b/jOOQ/src/main/java/org/jooq/QueryPart.java @@ -191,6 +191,14 @@ public interface QueryPart extends Serializable { + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/QOM.java b/jOOQ/src/main/java/org/jooq/impl/QOM.java index 72646e40e7..f96fdcdab6 100644 --- a/jOOQ/src/main/java/org/jooq/impl/QOM.java +++ b/jOOQ/src/main/java/org/jooq/impl/QOM.java @@ -57,6 +57,7 @@ import java.util.function.Predicate; // ... import org.jooq.Catalog; +import org.jooq.CheckReturnValue; import org.jooq.Collation; import org.jooq.Comment; import org.jooq.CommonTableExpression; @@ -238,8 +239,11 @@ public final class QOM { TupleImpl2 { @NotNull Q1 $1(); - @NotNull Tuple2 $1(Q1 newPart1); @NotNull Q2 $2(); + + @CheckReturnValue + @NotNull Tuple2 $1(Q1 newPart1); + @CheckReturnValue @NotNull Tuple2 $2(Q2 newPart2); } @@ -287,6 +291,7 @@ public final class QOM { * UnmodifiableList from the combined data. */ @NotNull + @CheckReturnValue default UnmodifiableList $concat(Collection other) { QueryPartList r = new QueryPartList<>(this); r.addAll(other); @@ -298,6 +303,7 @@ public final class QOM { * position. */ @NotNull + @CheckReturnValue default UnmodifiableList $remove(int position) { QueryPartList r = new QueryPartList<>(); @@ -328,6 +334,7 @@ public final class QOM { * Return a new UnmodifiableList without the {@link #$first()} element. */ @NotNull + @CheckReturnValue default UnmodifiableList $removeFirst() { QueryPartList r = new QueryPartList<>(); @@ -342,6 +349,7 @@ public final class QOM { * element. */ @NotNull + @CheckReturnValue default UnmodifiableList $removeLast() { QueryPartList r = new QueryPartList<>(); @@ -356,6 +364,7 @@ public final class QOM { * the argument position. */ @NotNull + @CheckReturnValue default UnmodifiableList $set(int position, Q newValue) { QueryPartList r = new QueryPartList<>(); @@ -373,6 +382,7 @@ public final class QOM { * values at the argument position. */ @NotNull + @CheckReturnValue default UnmodifiableList $setAll(int position, Collection newValues) { QueryPartList r = new QueryPartList<>(); @@ -417,27 +427,38 @@ public final class QOM { { @Nullable With $with(); @NotNull Table $into(); + @CheckReturnValue @NotNull Insert $into(Table into); @NotNull UnmodifiableList> $columns(); + @CheckReturnValue @NotNull Insert $columns(Collection> columns); @Nullable Select $select(); + @CheckReturnValue @NotNull Insert $select(Select select); boolean $defaultValues(); + @CheckReturnValue @NotNull Insert $defaultValues(boolean defaultValues); @NotNull UnmodifiableList $values(); + @CheckReturnValue @NotNull Insert $values(Collection values); boolean $onDuplicateKeyIgnore(); + @CheckReturnValue @NotNull Insert $onDuplicateKeyIgnore(boolean onDuplicateKeyIgnore); boolean $onDuplicateKeyUpdate(); + @CheckReturnValue @NotNull Insert $onDuplicateKeyUpdate(boolean onDuplicateKeyUpdate); @NotNull UnmodifiableList> $onConflict(); + @CheckReturnValue @NotNull Insert $onConflict(Collection> onConflictFields); // [#13640] TODO: What to do about the CONSTRAINT? Re-design this model? @Nullable Condition $onConflictWhere(); + @CheckReturnValue @NotNull Insert $onConflictWhere(Condition where); @NotNull UnmodifiableMap $updateSet(); + @CheckReturnValue @NotNull Insert $updateSet(Map updateSet); @Nullable Condition $updateWhere(); + @CheckReturnValue @NotNull Insert $updateWhere(Condition where); } @@ -448,8 +469,10 @@ public final class QOM { InsertAsResultQuery { @NotNull Insert $insert(); + @CheckReturnValue @NotNull InsertReturning $insert(Insert insert); @NotNull UnmodifiableList $returning(); + @CheckReturnValue @NotNull InsertReturning $returning(Collection returning); } @@ -462,16 +485,22 @@ public final class QOM { { @Nullable With $with(); @NotNull Table $table(); + @CheckReturnValue @NotNull Update $table(Table table); @NotNull UnmodifiableList> $from(); + @CheckReturnValue @NotNull Update $from(Collection> from); @NotNull UnmodifiableMap $set(); + @CheckReturnValue @NotNull Update $set(Map set); @Nullable Condition $where(); + @CheckReturnValue @NotNull Update $where(Condition condition); @NotNull UnmodifiableList> $orderBy(); + @CheckReturnValue @NotNull Update $orderBy(Collection> orderBy); @Nullable Field $limit(); + @CheckReturnValue @NotNull Update $limit(Field limit); } @@ -482,8 +511,10 @@ public final class QOM { UpdateAsResultQuery { @NotNull Update $update(); + @CheckReturnValue @NotNull UpdateReturning $update(Update update); @NotNull UnmodifiableList $returning(); + @CheckReturnValue @NotNull UpdateReturning $returning(Collection returning); } @@ -496,14 +527,19 @@ public final class QOM { { @Nullable With $with(); @NotNull Table $from(); + @CheckReturnValue @NotNull Delete $from(Table table); @NotNull UnmodifiableList> $using(); + @CheckReturnValue @NotNull Delete $using(Collection> using); @Nullable Condition $where(); + @CheckReturnValue @NotNull Delete $where(Condition condition); @NotNull UnmodifiableList> $orderBy(); + @CheckReturnValue @NotNull Delete $orderBy(Collection> orderBy); @Nullable Field $limit(); + @CheckReturnValue @NotNull Delete $limit(Field limit); } @@ -514,8 +550,10 @@ public final class QOM { DeleteAsResultQuery { @NotNull Delete $delete(); + @CheckReturnValue @NotNull DeleteReturning $delete(Delete delete); @NotNull UnmodifiableList $returning(); + @CheckReturnValue @NotNull DeleteReturning $returning(Collection returning); } @@ -1227,10 +1265,13 @@ public final class QOM { UOperator3, UnmodifiableList, Field>>, Field, CaseSimple> { @NotNull default Field $value() { return $arg1(); } + @CheckReturnValue @NotNull default CaseSimple $value(Field value) { return $arg1(value); } @NotNull default UnmodifiableList, Field>> $when() { return $arg2(); } + @CheckReturnValue @NotNull default CaseSimple $when(UnmodifiableList, Field>> when) { return $arg2(when); } @Nullable default Field $else() { return $arg3(); } + @CheckReturnValue @NotNull default CaseSimple $else(Field else_) { return $arg3(else_); } } @@ -1240,8 +1281,10 @@ public final class QOM { UOperator2>>, Field, CaseSearched> { @NotNull default UnmodifiableList>> $when() { return $arg1(); } + @CheckReturnValue @NotNull default CaseSearched $when(UnmodifiableList>> when) { return $arg1(when); } @Nullable default Field $else() { return $arg2(); } + @CheckReturnValue @NotNull default CaseSearched $else(Field else_) { return $arg2(else_); } } @@ -1251,10 +1294,13 @@ public final class QOM { UOperator3, UnmodifiableList, Field>>, Field, Decode> { @NotNull default Field $value() { return $arg1(); } + @CheckReturnValue @NotNull default Decode $value(Field value) { return $arg1(value); } @NotNull default UnmodifiableList, Field>> $when() { return $arg2(); } + @CheckReturnValue @NotNull default Decode $when(UnmodifiableList, Field>> when) { return $arg2(when); } @Nullable default Field $else() { return $arg3(); } + @CheckReturnValue @NotNull default Decode $else(Field else_) { return $arg3(else_); } } @@ -1368,8 +1414,11 @@ public final class QOM { @NotNull Catalog $database(); boolean $ifExists(); @NotNull Catalog $renameTo(); + @CheckReturnValue @NotNull AlterDatabase $database(Catalog database); + @CheckReturnValue @NotNull AlterDatabase $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterDatabase $renameTo(Catalog renameTo); } @@ -1396,19 +1445,33 @@ public final class QOM { boolean $dropNotNull(); @Nullable Cascade $cascade(); @Nullable Constraint $renameConstraintTo(); + @CheckReturnValue @NotNull AlterDomain $domain(Domain domain); + @CheckReturnValue @NotNull AlterDomain $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterDomain $addConstraint(Constraint addConstraint); + @CheckReturnValue @NotNull AlterDomain $dropConstraint(Constraint dropConstraint); + @CheckReturnValue @NotNull AlterDomain $dropConstraintIfExists(boolean dropConstraintIfExists); + @CheckReturnValue @NotNull AlterDomain $renameTo(Domain renameTo); + @CheckReturnValue @NotNull AlterDomain $renameConstraint(Constraint renameConstraint); + @CheckReturnValue @NotNull AlterDomain $renameConstraintIfExists(boolean renameConstraintIfExists); + @CheckReturnValue @NotNull AlterDomain $setDefault(Field setDefault); + @CheckReturnValue @NotNull AlterDomain $dropDefault(boolean dropDefault); + @CheckReturnValue @NotNull AlterDomain $setNotNull(boolean setNotNull); + @CheckReturnValue @NotNull AlterDomain $dropNotNull(boolean dropNotNull); + @CheckReturnValue @NotNull AlterDomain $cascade(Cascade cascade); + @CheckReturnValue @NotNull AlterDomain $renameConstraintTo(Constraint renameConstraintTo); } @@ -1425,9 +1488,13 @@ public final class QOM { boolean $ifExists(); @Nullable Table $on(); @NotNull Index $renameTo(); + @CheckReturnValue @NotNull AlterIndex $index(Index index); + @CheckReturnValue @NotNull AlterIndex $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterIndex $on(Table on); + @CheckReturnValue @NotNull AlterIndex $renameTo(Index renameTo); } @@ -1443,8 +1510,11 @@ public final class QOM { @NotNull Schema $schema(); boolean $ifExists(); @NotNull Schema $renameTo(); + @CheckReturnValue @NotNull AlterSchema $schema(Schema schema); + @CheckReturnValue @NotNull AlterSchema $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterSchema $renameTo(Schema renameTo); } @@ -1471,19 +1541,33 @@ public final class QOM { @Nullable CycleOption $cycle(); @Nullable Field $cache(); boolean $noCache(); + @CheckReturnValue @NotNull AlterSequence $sequence(Sequence sequence); + @CheckReturnValue @NotNull AlterSequence $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterSequence $renameTo(Sequence renameTo); + @CheckReturnValue @NotNull AlterSequence $restart(boolean restart); + @CheckReturnValue @NotNull AlterSequence $restartWith(Field restartWith); + @CheckReturnValue @NotNull AlterSequence $startWith(Field startWith); + @CheckReturnValue @NotNull AlterSequence $incrementBy(Field incrementBy); + @CheckReturnValue @NotNull AlterSequence $minvalue(Field minvalue); + @CheckReturnValue @NotNull AlterSequence $noMinvalue(boolean noMinvalue); + @CheckReturnValue @NotNull AlterSequence $maxvalue(Field maxvalue); + @CheckReturnValue @NotNull AlterSequence $noMaxvalue(boolean noMaxvalue); + @CheckReturnValue @NotNull AlterSequence $cycle(CycleOption cycle); + @CheckReturnValue @NotNull AlterSequence $cache(Field cache); + @CheckReturnValue @NotNull AlterSequence $noCache(boolean noCache); } @@ -1502,11 +1586,17 @@ public final class QOM { @Nullable Field $addValue(); @Nullable Field $renameValue(); @Nullable Field $renameValueTo(); + @CheckReturnValue @NotNull AlterType $type(Name type); + @CheckReturnValue @NotNull AlterType $renameTo(Name renameTo); + @CheckReturnValue @NotNull AlterType $setSchema(Schema setSchema); + @CheckReturnValue @NotNull AlterType $addValue(Field addValue); + @CheckReturnValue @NotNull AlterType $renameValue(Field renameValue); + @CheckReturnValue @NotNull AlterType $renameValueTo(Field renameValueTo); } @@ -1525,11 +1615,17 @@ public final class QOM { @Nullable Comment $comment(); @Nullable Table $renameTo(); @Nullable Select $as(); + @CheckReturnValue @NotNull AlterView $view(Table view); + @CheckReturnValue @NotNull AlterView $fields(Collection> fields); + @CheckReturnValue @NotNull AlterView $ifExists(boolean ifExists); + @CheckReturnValue @NotNull AlterView $comment(Comment comment); + @CheckReturnValue @NotNull AlterView $renameTo(Table renameTo); + @CheckReturnValue @NotNull AlterView $as(Select as); } @@ -1546,9 +1642,13 @@ public final class QOM { boolean $isView(); @Nullable Field $field(); @NotNull Comment $comment(); + @CheckReturnValue @NotNull CommentOn $table(Table table); + @CheckReturnValue @NotNull CommentOn $isView(boolean isView); + @CheckReturnValue @NotNull CommentOn $field(Field field); + @CheckReturnValue @NotNull CommentOn $comment(Comment comment); } @@ -1563,7 +1663,9 @@ public final class QOM { { @NotNull Catalog $database(); boolean $ifNotExists(); + @CheckReturnValue @NotNull CreateDatabase $database(Catalog database); + @CheckReturnValue @NotNull CreateDatabase $ifNotExists(boolean ifNotExists); } @@ -1581,10 +1683,15 @@ public final class QOM { @NotNull DataType $dataType(); @Nullable Field $default_(); @NotNull UnmodifiableList $constraints(); + @CheckReturnValue @NotNull CreateDomain $domain(Domain domain); + @CheckReturnValue @NotNull CreateDomain $ifNotExists(boolean ifNotExists); + @CheckReturnValue @NotNull CreateDomain $dataType(DataType dataType); + @CheckReturnValue @NotNull CreateDomain $default_(Field default_); + @CheckReturnValue @NotNull CreateDomain $constraints(Collection constraints); } @@ -1610,6 +1717,15 @@ public final class QOM { + + + + + + + + + @@ -1637,13 +1753,21 @@ public final class QOM { @NotNull UnmodifiableList> $include(); @Nullable Condition $where(); boolean $excludeNullKeys(); + @CheckReturnValue @NotNull CreateIndex $unique(boolean unique); + @CheckReturnValue @NotNull CreateIndex $index(Index index); + @CheckReturnValue @NotNull CreateIndex $ifNotExists(boolean ifNotExists); + @CheckReturnValue @NotNull CreateIndex $table(Table table); + @CheckReturnValue @NotNull CreateIndex $on(Collection> on); + @CheckReturnValue @NotNull CreateIndex $include(Collection> include); + @CheckReturnValue @NotNull CreateIndex $where(Condition where); + @CheckReturnValue @NotNull CreateIndex $excludeNullKeys(boolean excludeNullKeys); } @@ -1665,6 +1789,11 @@ public final class QOM { + + + + + @@ -1689,14 +1818,23 @@ public final class QOM { @Nullable TableCommitAction $onCommit(); @Nullable Comment $comment(); @Nullable SQL $storage(); + @CheckReturnValue @NotNull CreateTable $table(Table table); + @CheckReturnValue @NotNull CreateTable $temporary(boolean temporary); + @CheckReturnValue @NotNull CreateTable $ifNotExists(boolean ifNotExists); + @CheckReturnValue @NotNull CreateTable $tableElements(Collection tableElements); + @CheckReturnValue @NotNull CreateTable $select(Select select); + @CheckReturnValue @NotNull CreateTable $withData(WithOrWithoutData withData); + @CheckReturnValue @NotNull CreateTable $onCommit(TableCommitAction onCommit); + @CheckReturnValue @NotNull CreateTable $comment(Comment comment); + @CheckReturnValue @NotNull CreateTable $storage(SQL storage); } @@ -1729,6 +1867,22 @@ public final class QOM { + + + + + + + + + + + + + + + + @@ -1757,7 +1911,9 @@ public final class QOM { { @NotNull Schema $schema(); boolean $ifNotExists(); + @CheckReturnValue @NotNull CreateSchema $schema(Schema schema); + @CheckReturnValue @NotNull CreateSchema $ifNotExists(boolean ifNotExists); } @@ -1781,16 +1937,27 @@ public final class QOM { @Nullable CycleOption $cycle(); @Nullable Field $cache(); boolean $noCache(); + @CheckReturnValue @NotNull CreateSequence $sequence(Sequence sequence); + @CheckReturnValue @NotNull CreateSequence $ifNotExists(boolean ifNotExists); + @CheckReturnValue @NotNull CreateSequence $startWith(Field startWith); + @CheckReturnValue @NotNull CreateSequence $incrementBy(Field incrementBy); + @CheckReturnValue @NotNull CreateSequence $minvalue(Field minvalue); + @CheckReturnValue @NotNull CreateSequence $noMinvalue(boolean noMinvalue); + @CheckReturnValue @NotNull CreateSequence $maxvalue(Field maxvalue); + @CheckReturnValue @NotNull CreateSequence $noMaxvalue(boolean noMaxvalue); + @CheckReturnValue @NotNull CreateSequence $cycle(CycleOption cycle); + @CheckReturnValue @NotNull CreateSequence $cache(Field cache); + @CheckReturnValue @NotNull CreateSequence $noCache(boolean noCache); } @@ -1805,7 +1972,9 @@ public final class QOM { { @NotNull Catalog $database(); boolean $ifExists(); + @CheckReturnValue @NotNull DropDatabase $database(Catalog database); + @CheckReturnValue @NotNull DropDatabase $ifExists(boolean ifExists); } @@ -1821,8 +1990,11 @@ public final class QOM { @NotNull Domain $domain(); boolean $ifExists(); @Nullable Cascade $cascade(); + @CheckReturnValue @NotNull DropDomain $domain(Domain domain); + @CheckReturnValue @NotNull DropDomain $ifExists(boolean ifExists); + @CheckReturnValue @NotNull DropDomain $cascade(Cascade cascade); } @@ -1843,6 +2015,8 @@ public final class QOM { + + /** * The DROP INDEX statement. @@ -1857,9 +2031,13 @@ public final class QOM { boolean $ifExists(); @Nullable Table $on(); @Nullable Cascade $cascade(); + @CheckReturnValue @NotNull DropIndex $index(Index index); + @CheckReturnValue @NotNull DropIndex $ifExists(boolean ifExists); + @CheckReturnValue @NotNull DropIndex $on(Table on); + @CheckReturnValue @NotNull DropIndex $cascade(Cascade cascade); } @@ -1880,6 +2058,8 @@ public final class QOM { + + /** * The DROP SCHEMA statement. @@ -1893,8 +2073,11 @@ public final class QOM { @NotNull Schema $schema(); boolean $ifExists(); @Nullable Cascade $cascade(); + @CheckReturnValue @NotNull DropSchema $schema(Schema schema); + @CheckReturnValue @NotNull DropSchema $ifExists(boolean ifExists); + @CheckReturnValue @NotNull DropSchema $cascade(Cascade cascade); } @@ -1909,7 +2092,9 @@ public final class QOM { { @NotNull Sequence $sequence(); boolean $ifExists(); + @CheckReturnValue @NotNull DropSequence $sequence(Sequence sequence); + @CheckReturnValue @NotNull DropSequence $ifExists(boolean ifExists); } @@ -1926,9 +2111,13 @@ public final class QOM { @NotNull Table $table(); boolean $ifExists(); @Nullable Cascade $cascade(); + @CheckReturnValue @NotNull DropTable $temporary(boolean temporary); + @CheckReturnValue @NotNull DropTable $table(Table table); + @CheckReturnValue @NotNull DropTable $ifExists(boolean ifExists); + @CheckReturnValue @NotNull DropTable $cascade(Cascade cascade); } @@ -1949,6 +2138,8 @@ public final class QOM { + + /** * The DROP VIEW statement. @@ -1961,7 +2152,9 @@ public final class QOM { { @NotNull Table $view(); boolean $ifExists(); + @CheckReturnValue @NotNull DropView $view(Table view); + @CheckReturnValue @NotNull DropView $ifExists(boolean ifExists); } @@ -1979,10 +2172,15 @@ public final class QOM { @Nullable Role $to(); boolean $toPublic(); boolean $withGrantOption(); + @CheckReturnValue @NotNull Grant $privileges(Collection privileges); + @CheckReturnValue @NotNull Grant $on(Table on); + @CheckReturnValue @NotNull Grant $to(Role to); + @CheckReturnValue @NotNull Grant $toPublic(boolean toPublic); + @CheckReturnValue @NotNull Grant $withGrantOption(boolean withGrantOption); } @@ -2000,10 +2198,15 @@ public final class QOM { @NotNull Table $on(); @Nullable Role $from(); boolean $fromPublic(); + @CheckReturnValue @NotNull Revoke $privileges(Collection privileges); + @CheckReturnValue @NotNull Revoke $grantOptionFor(boolean grantOptionFor); + @CheckReturnValue @NotNull Revoke $on(Table on); + @CheckReturnValue @NotNull Revoke $from(Role from); + @CheckReturnValue @NotNull Revoke $fromPublic(boolean fromPublic); } @@ -2021,8 +2224,11 @@ public final class QOM { @NotNull Name $name(); @NotNull Param $value(); boolean $local(); + @CheckReturnValue @NotNull SetCommand $name(Name name); + @CheckReturnValue @NotNull SetCommand $value(Param value); + @CheckReturnValue @NotNull SetCommand $local(boolean local); } @@ -2038,6 +2244,7 @@ public final class QOM { // SetCatalog { @NotNull Catalog $catalog(); + @CheckReturnValue @NotNull SetCatalog $catalog(Catalog catalog); } @@ -2053,6 +2260,7 @@ public final class QOM { // SetSchema { @NotNull Schema $schema(); + @CheckReturnValue @NotNull SetSchema $schema(Schema schema); } @@ -2068,8 +2276,11 @@ public final class QOM { @NotNull Table $table(); @Nullable IdentityRestartOption $restartIdentity(); @Nullable Cascade $cascade(); + @CheckReturnValue @NotNull Truncate $table(Table table); + @CheckReturnValue @NotNull Truncate $restartIdentity(IdentityRestartOption restartIdentity); + @CheckReturnValue @NotNull Truncate $cascade(Cascade cascade); } @@ -2090,6 +2301,8 @@ public final class QOM { + + @@ -5044,6 +5257,7 @@ public final class QOM { // AnyValue { @NotNull Field $field(); + @CheckReturnValue @NotNull AnyValue $field(Field field); } @@ -5058,7 +5272,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Avg $field(Field field); + @CheckReturnValue @NotNull Avg $distinct(boolean distinct); } @@ -5074,6 +5290,7 @@ public final class QOM { // BitAndAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitAndAgg $value(Field value); } @@ -5089,6 +5306,7 @@ public final class QOM { // BitOrAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitOrAgg $value(Field value); } @@ -5104,6 +5322,7 @@ public final class QOM { // BitXorAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitXorAgg $value(Field value); } @@ -5119,6 +5338,7 @@ public final class QOM { // BitNandAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitNandAgg $value(Field value); } @@ -5134,6 +5354,7 @@ public final class QOM { // BitNorAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitNorAgg $value(Field value); } @@ -5149,6 +5370,7 @@ public final class QOM { // BitXNorAgg { @NotNull Field $value(); + @CheckReturnValue @NotNull BitXNorAgg $value(Field value); } @@ -5162,6 +5384,7 @@ public final class QOM { // BoolAnd { @NotNull Condition $condition(); + @CheckReturnValue @NotNull BoolAnd $condition(Condition condition); } @@ -5175,6 +5398,7 @@ public final class QOM { // BoolOr { @NotNull Condition $condition(); + @CheckReturnValue @NotNull BoolOr $condition(Condition condition); } @@ -5194,7 +5418,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull Corr $y(Field y); + @CheckReturnValue @NotNull Corr $x(Field x); } @@ -5209,7 +5435,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Count $field(Field field); + @CheckReturnValue @NotNull Count $distinct(boolean distinct); } @@ -5229,7 +5457,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull CovarSamp $y(Field y); + @CheckReturnValue @NotNull CovarSamp $x(Field x); } @@ -5249,7 +5479,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull CovarPop $y(Field y); + @CheckReturnValue @NotNull CovarPop $x(Field x); } @@ -5264,7 +5496,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Max $field(Field field); + @CheckReturnValue @NotNull Max $distinct(boolean distinct); } @@ -5278,6 +5512,7 @@ public final class QOM { // Median { @NotNull Field $field(); + @CheckReturnValue @NotNull Median $field(Field field); } @@ -5292,7 +5527,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Min $field(Field field); + @CheckReturnValue @NotNull Min $distinct(boolean distinct); } @@ -5319,7 +5556,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Product $field(Field field); + @CheckReturnValue @NotNull Product $distinct(boolean distinct); } @@ -5339,7 +5578,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrAvgX $y(Field y); + @CheckReturnValue @NotNull RegrAvgX $x(Field x); } @@ -5359,7 +5600,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrAvgY $y(Field y); + @CheckReturnValue @NotNull RegrAvgY $x(Field x); } @@ -5379,7 +5622,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrCount $y(Field y); + @CheckReturnValue @NotNull RegrCount $x(Field x); } @@ -5399,7 +5644,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrIntercept $y(Field y); + @CheckReturnValue @NotNull RegrIntercept $x(Field x); } @@ -5419,7 +5666,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrR2 $y(Field y); + @CheckReturnValue @NotNull RegrR2 $x(Field x); } @@ -5439,7 +5688,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrSlope $y(Field y); + @CheckReturnValue @NotNull RegrSlope $x(Field x); } @@ -5459,7 +5710,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrSxx $y(Field y); + @CheckReturnValue @NotNull RegrSxx $x(Field x); } @@ -5479,7 +5732,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrSxy $y(Field y); + @CheckReturnValue @NotNull RegrSxy $x(Field x); } @@ -5499,7 +5754,9 @@ public final class QOM { { @NotNull Field $y(); @NotNull Field $x(); + @CheckReturnValue @NotNull RegrSyy $y(Field y); + @CheckReturnValue @NotNull RegrSyy $x(Field x); } @@ -5518,6 +5775,7 @@ public final class QOM { // StddevPop { @NotNull Field $field(); + @CheckReturnValue @NotNull StddevPop $field(Field field); } @@ -5536,6 +5794,7 @@ public final class QOM { // StddevSamp { @NotNull Field $field(); + @CheckReturnValue @NotNull StddevSamp $field(Field field); } @@ -5550,7 +5809,9 @@ public final class QOM { { @NotNull Field $field(); boolean $distinct(); + @CheckReturnValue @NotNull Sum $field(Field field); + @CheckReturnValue @NotNull Sum $distinct(boolean distinct); } @@ -5569,6 +5830,7 @@ public final class QOM { // VarPop { @NotNull Field $field(); + @CheckReturnValue @NotNull VarPop $field(Field field); } @@ -5587,6 +5849,7 @@ public final class QOM { // VarSamp { @NotNull Field $field(); + @CheckReturnValue @NotNull VarSamp $field(Field field); } @@ -6653,6 +6916,7 @@ public final class QOM { interface UOperator1 extends UOperator { Q1 $arg1(); + @CheckReturnValue @NotNull default R $arg1(Q1 newArg1) { return $constructor().apply(newArg1); } @NotNull @@ -6689,7 +6953,9 @@ public final class QOM { Q1 $arg1(); Q2 $arg2(); + @CheckReturnValue @NotNull default R $arg1(Q1 newArg1) { return $constructor().apply(newArg1, $arg2()); } + @CheckReturnValue @NotNull default R $arg2(Q2 newArg2) { return $constructor().apply($arg1(), newArg2); } @NotNull @@ -6727,8 +6993,12 @@ public final class QOM { Q1 $arg1(); Q2 $arg2(); Q3 $arg3(); + + @CheckReturnValue @NotNull default R $arg1(Q1 newArg1) { return $constructor().apply(newArg1, $arg2(), $arg3()); } + @CheckReturnValue @NotNull default R $arg2(Q2 newArg2) { return $constructor().apply($arg1(), newArg2, $arg3()); } + @CheckReturnValue @NotNull default R $arg3(Q3 newArg3) { return $constructor().apply($arg1(), $arg2(), newArg3); } @NotNull @@ -6768,9 +7038,14 @@ public final class QOM { Q2 $arg2(); Q3 $arg3(); Q4 $arg4(); + + @CheckReturnValue @NotNull default R $arg1(Q1 newArg1) { return $constructor().apply(newArg1, $arg2(), $arg3(), $arg4()); } + @CheckReturnValue @NotNull default R $arg2(Q2 newArg2) { return $constructor().apply($arg1(), newArg2, $arg3(), $arg4()); } + @CheckReturnValue @NotNull default R $arg3(Q3 newArg3) { return $constructor().apply($arg1(), $arg2(), newArg3, $arg4()); } + @CheckReturnValue @NotNull default R $arg4(Q4 newArg4) { return $constructor().apply($arg1(), $arg2(), $arg3(), newArg4); } @NotNull