diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 18eb74cb49..5476bbf106 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -17026,6 +17026,96 @@ public static Field xmlforest(Collection> fields) { return new Xmlforest(fields); } + /** + * The MEDIAN function. + */ + @NotNull + @Support({ CUBRID, H2, HSQLDB, MARIADB, POSTGRES }) + public static AggregateFunction median(Field field) { + return new Median(field); + } + + /** + * The REGR_AVG_X function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrAvgX(Field y, Field x) { + return new RegrAvgx(y, x); + } + + /** + * The REGR_AVG_Y function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrAvgY(Field y, Field x) { + return new RegrAvgy(y, x); + } + + /** + * The REGR_COUNT function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrCount(Field y, Field x) { + return new RegrCount(y, x); + } + + /** + * The REGR_INTERCEPT function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrIntercept(Field y, Field x) { + return new RegrIntercept(y, x); + } + + /** + * The REGR_R2 function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrR2(Field y, Field x) { + return new RegrR2(y, x); + } + + /** + * The REGR_SLOPE function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrSlope(Field y, Field x) { + return new RegrSlope(y, x); + } + + /** + * The REGR_S_X_X function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrSXX(Field y, Field x) { + return new RegrSxx(y, x); + } + + /** + * The REGR_S_X_Y function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrSXY(Field y, Field x) { + return new RegrSxy(y, x); + } + + /** + * The REGR_S_Y_Y function. + */ + @NotNull + @Support({ POSTGRES }) + public static AggregateFunction regrSYY(Field y, Field x) { + return new RegrSyy(y, x); + } + /** * The STDDEV_POP function. */ @@ -21902,159 +21992,6 @@ public static AggregateFunction mode(Field field) { return new Mode(Tools.nullSafe(field)); } - /** - * Get the median over a numeric field: median(field). - */ - @NotNull - @Support({ CUBRID, H2, HSQLDB, MARIADB, POSTGRES }) - public static AggregateFunction median(Field field) { - return new Median(Tools.nullSafe(field)); - } - - /** - * Get the REGR_SLOPE linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrSlope(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_slope", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_INTERCEPT linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrIntercept(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_intercept", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_COUNT linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrCount(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_count", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_R2 linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrR2(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_r2", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_AVGX linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrAvgX(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_avgx", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_AVGY linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrAvgY(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_avgy", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_SXX linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrSXX(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_sxx", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_SYY linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrSYY(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_syy", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - - /** - * Get the REGR_SXY linear regression function. - *

- * The linear regression functions fit an ordinary-least-squares regression - * line to a set of number pairs. You can use them as both aggregate and - * window functions, where this is supported. - *

- * Note that {@link SQLDialect#DB2} does not support linear regression - * window functions. - */ - @NotNull - @Support({ POSTGRES }) - public static AggregateFunction regrSXY(Field y, Field x) { - return new DefaultAggregateFunction<>("regr_sxy", SQLDataType.NUMERIC, Tools.nullSafe(y), Tools.nullSafe(x)); - } - /** * Get the aggregated concatenation for a field. *

diff --git a/jOOQ/src/main/java/org/jooq/impl/Median.java b/jOOQ/src/main/java/org/jooq/impl/Median.java index e8e0866490..26236eb3ce 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Median.java +++ b/jOOQ/src/main/java/org/jooq/impl/Median.java @@ -37,34 +37,53 @@ */ package org.jooq.impl; -// ... -import static org.jooq.SQLDialect.POSTGRES; -import static org.jooq.impl.DSL.inline; -import static org.jooq.impl.DSL.percentileCont; -import static org.jooq.impl.Names.N_MEDIAN; +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; import java.math.BigDecimal; -import java.util.Set; -import org.jooq.Context; -import org.jooq.Field; -import org.jooq.SQLDialect; /** - * @author Lukas Eder + * The MEDIAN statement. */ -final class Median extends DefaultAggregateFunction { +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class Median +extends + DefaultAggregateFunction +{ - /** - * Generated UID - */ - private static final long serialVersionUID = -7378732863724089028L; - private static final Set EMULATE_WITH_PERCENTILES = SQLDialect.supportedBy(POSTGRES); + private static final long serialVersionUID = 1L; - Median(Field arg) { - super(false, N_MEDIAN, SQLDataType.NUMERIC, arg); + Median( + Field field + ) { + super( + false, + N_MEDIAN, + NUMERIC, + nullSafeNotNull(field, INTEGER) + ); } + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + + private static final Set EMULATE_WITH_PERCENTILES = SQLDialect.supportedBy(POSTGRES); + @Override public final void accept(Context ctx) { if (EMULATE_WITH_PERCENTILES.contains(ctx.dialect())) @@ -72,4 +91,6 @@ public final void accept(Context ctx) { else super.accept(ctx); } + + } diff --git a/jOOQ/src/main/java/org/jooq/impl/Names.java b/jOOQ/src/main/java/org/jooq/impl/Names.java index 765f0286b3..9ac00a02d8 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Names.java +++ b/jOOQ/src/main/java/org/jooq/impl/Names.java @@ -209,6 +209,16 @@ final class Names { static final Name N_RAWTOHEX = unquotedName("rawtohex"); static final Name N_REGEXP_REPLACE = unquotedName("regexp_replace"); static final Name N_REGEX_REPLACE = unquotedName("regex_replace"); + + static final Name N_REGR_AVGX = unquotedName("regr_avgx"); + static final Name N_REGR_AVGY = unquotedName("regr_avgy"); + static final Name N_REGR_COUNT = unquotedName("regr_count"); + static final Name N_REGR_INTERCEPT = unquotedName("regr_intercept"); + static final Name N_REGR_R2 = unquotedName("regr_r2"); + static final Name N_REGR_SLOPE = unquotedName("regr_slope"); + static final Name N_REGR_SXX = unquotedName("regr_sxx"); + static final Name N_REGR_SXY = unquotedName("regr_sxy"); + static final Name N_REGR_SYY = unquotedName("regr_syy"); static final Name N_REPEAT = unquotedName("repeat"); static final Name N_REPLACE = unquotedName("replace"); static final Name N_REPLICATE = unquotedName("replicate"); diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrAvgx.java b/jOOQ/src/main/java/org/jooq/impl/RegrAvgx.java new file mode 100644 index 0000000000..76bd03043b --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrAvgx.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR AVG X statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrAvgx +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrAvgx( + Field y, + Field x + ) { + super( + false, + N_REGR_AVGX, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrAvgy.java b/jOOQ/src/main/java/org/jooq/impl/RegrAvgy.java new file mode 100644 index 0000000000..659badfc8b --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrAvgy.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR AVG Y statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrAvgy +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrAvgy( + Field y, + Field x + ) { + super( + false, + N_REGR_AVGY, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrCount.java b/jOOQ/src/main/java/org/jooq/impl/RegrCount.java new file mode 100644 index 0000000000..678ca5ff02 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrCount.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR COUNT statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrCount +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrCount( + Field y, + Field x + ) { + super( + false, + N_REGR_COUNT, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrIntercept.java b/jOOQ/src/main/java/org/jooq/impl/RegrIntercept.java new file mode 100644 index 0000000000..182701196c --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrIntercept.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR INTERCEPT statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrIntercept +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrIntercept( + Field y, + Field x + ) { + super( + false, + N_REGR_INTERCEPT, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrR2.java b/jOOQ/src/main/java/org/jooq/impl/RegrR2.java new file mode 100644 index 0000000000..3abd28b684 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrR2.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR R2 statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrR2 +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrR2( + Field y, + Field x + ) { + super( + false, + N_REGR_R2, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrSlope.java b/jOOQ/src/main/java/org/jooq/impl/RegrSlope.java new file mode 100644 index 0000000000..aa5d760c17 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrSlope.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR SLOPE statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrSlope +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrSlope( + Field y, + Field x + ) { + super( + false, + N_REGR_SLOPE, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrSxx.java b/jOOQ/src/main/java/org/jooq/impl/RegrSxx.java new file mode 100644 index 0000000000..aed0dd787e --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrSxx.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR S X X statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrSxx +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrSxx( + Field y, + Field x + ) { + super( + false, + N_REGR_SXX, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrSxy.java b/jOOQ/src/main/java/org/jooq/impl/RegrSxy.java new file mode 100644 index 0000000000..221f951f7b --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrSxy.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR S X Y statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrSxy +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrSxy( + Field y, + Field x + ) { + super( + false, + N_REGR_SXY, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +} diff --git a/jOOQ/src/main/java/org/jooq/impl/RegrSyy.java b/jOOQ/src/main/java/org/jooq/impl/RegrSyy.java new file mode 100644 index 0000000000..fbc50888d6 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/RegrSyy.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.DSL.*; +import static org.jooq.impl.Internal.*; +import static org.jooq.impl.Keywords.*; +import static org.jooq.impl.Names.*; +import static org.jooq.impl.SQLDataType.*; +import static org.jooq.impl.Tools.*; +import static org.jooq.impl.Tools.BooleanDataKey.*; +import static org.jooq.SQLDialect.*; + +import org.jooq.*; +import org.jooq.impl.*; +import org.jooq.tools.*; + +import java.util.*; +import java.math.BigDecimal; + + +/** + * The REGR S Y Y statement. + */ +@SuppressWarnings({ "rawtypes", "unchecked", "unused" }) +final class RegrSyy +extends + DefaultAggregateFunction +{ + + private static final long serialVersionUID = 1L; + + RegrSyy( + Field y, + Field x + ) { + super( + false, + N_REGR_SYY, + NUMERIC, + nullSafeNotNull(y, INTEGER), + nullSafeNotNull(x, INTEGER) + ); + } + + // ------------------------------------------------------------------------- + // XXX: QueryPart API + // ------------------------------------------------------------------------- + + + +}