From 1bc29aec2e77b9e753b4d941c46d337f86cb2859 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 17 Sep 2019 11:19:16 +0200 Subject: [PATCH] [jOOQ/jOOQ#9222] Align @Support annotations in DatePart and DSL Many `DatePart` constants have a corresponding convenience method in `DSL` which calls `EXTRACT()` using that `DatePart`. Here the `@Support` annotations of the enum constants and the convenience methods should align. --- jOOQ/src/main/java/org/jooq/impl/DSL.java | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index d19340e200..67e89f313d 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -15412,7 +15412,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#WEEK} */ - @Support({ H2, POSTGRES }) + @Support({ H2, HSQLDB, POSTGRES }) public static Field week(java.util.Date value) { return extract(value, DatePart.WEEK); } @@ -15425,7 +15425,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#WEEK} */ - @Support({ H2, POSTGRES }) + @Support({ H2, HSQLDB, POSTGRES }) public static Field week(Temporal value) { return extract(value, DatePart.WEEK); } @@ -15708,7 +15708,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#MILLISECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field millisecond(java.util.Date value) { return extract(value, DatePart.MILLISECOND); } @@ -15721,7 +15721,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#MILLISECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field millisecond(Temporal value) { return extract(value, DatePart.MILLISECOND); } @@ -15734,7 +15734,7 @@ public class DSL { * This is the same as calling {@link #extract(Field, DatePart)} * with {@link DatePart#MILLISECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field millisecond(Field field) { return extract(field, DatePart.MILLISECOND); } @@ -15745,7 +15745,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#MICROSECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field microsecond(java.util.Date value) { return extract(value, DatePart.MICROSECOND); } @@ -15758,7 +15758,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#MICROSECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field microsecond(Temporal value) { return extract(value, DatePart.MICROSECOND); } @@ -15771,7 +15771,7 @@ public class DSL { * This is the same as calling {@link #extract(Field, DatePart)} * with {@link DatePart#MICROSECOND} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field microsecond(Field field) { return extract(field, DatePart.MICROSECOND); } @@ -15782,7 +15782,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#TIMEZONE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezone(java.util.Date value) { return extract(value, DatePart.TIMEZONE); } @@ -15795,7 +15795,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#TIMEZONE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezone(Temporal value) { return extract(value, DatePart.TIMEZONE); } @@ -15808,7 +15808,7 @@ public class DSL { * This is the same as calling {@link #extract(Field, DatePart)} * with {@link DatePart#TIMEZONE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezone(Field field) { return extract(field, DatePart.TIMEZONE); } @@ -15819,7 +15819,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#TIMEZONE_HOUR} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneHour(java.util.Date value) { return extract(value, DatePart.TIMEZONE_HOUR); } @@ -15832,7 +15832,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#TIMEZONE_HOUR} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneHour(Temporal value) { return extract(value, DatePart.TIMEZONE_HOUR); } @@ -15845,7 +15845,7 @@ public class DSL { * This is the same as calling {@link #extract(Field, DatePart)} * with {@link DatePart#TIMEZONE_HOUR} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneHour(Field field) { return extract(field, DatePart.TIMEZONE_HOUR); } @@ -15856,7 +15856,7 @@ public class DSL { * This is the same as calling {@link #extract(java.util.Date, DatePart)} * with {@link DatePart#TIMEZONE_MINUTE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneMinute(java.util.Date value) { return extract(value, DatePart.TIMEZONE_MINUTE); } @@ -15869,7 +15869,7 @@ public class DSL { * This is the same as calling {@link #extract(Temporal, DatePart)} * with {@link DatePart#TIMEZONE_MINUTE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneMinute(Temporal value) { return extract(value, DatePart.TIMEZONE_MINUTE); } @@ -15882,7 +15882,7 @@ public class DSL { * This is the same as calling {@link #extract(Field, DatePart)} * with {@link DatePart#TIMEZONE_MINUTE} */ - @Support + @Support({ H2, HSQLDB, POSTGRES }) public static Field timezoneMinute(Field field) { return extract(field, DatePart.TIMEZONE_MINUTE); }