From 35b2c864b96420f96ec358f8161c558aa9bf2bd9 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Thu, 4 Jul 2019 16:18:42 +0200 Subject: [PATCH] [jOOQ/jOOQ#8904] Add Support annotations to DSL.name() and DSL.keyword() --- jOOQ/src/main/java/org/jooq/impl/DSL.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 441c38ecfb..02952bc9cb 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -9078,6 +9078,7 @@ public class DSL { * ); * */ + @Support public static Keyword keyword(String keyword) { return new KeywordImpl(keyword); } @@ -9109,6 +9110,7 @@ public class DSL { * @param unqualifiedName The SQL identifier's unqualified name * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name name(String unqualifiedName) { return new UnqualifiedName(unqualifiedName); } @@ -9136,6 +9138,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name name(String... qualifiedName) { if (qualifiedName == null || qualifiedName.length != 1) return new QualifiedName(qualifiedName); @@ -9170,6 +9173,7 @@ public class DSL { * @param nameParts The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name name(Name... nameParts) { return new QualifiedName(nameParts); } @@ -9197,6 +9201,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name name(Collection qualifiedName) { return name(qualifiedName.toArray(Tools.EMPTY_STRING)); } @@ -9211,6 +9216,7 @@ public class DSL { * @param unqualifiedName The SQL identifier's unqualified name * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name quotedName(String unqualifiedName) { return new UnqualifiedName(unqualifiedName, Quoted.QUOTED); } @@ -9225,6 +9231,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name quotedName(String... qualifiedName) { return new QualifiedName(qualifiedName, Quoted.QUOTED); } @@ -9239,6 +9246,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name quotedName(Collection qualifiedName) { return quotedName(qualifiedName.toArray(Tools.EMPTY_STRING)); } @@ -9253,6 +9261,7 @@ public class DSL { * @param unqualifiedName The SQL identifier's unqualified name * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name unquotedName(String unqualifiedName) { return new UnqualifiedName(unqualifiedName, Quoted.UNQUOTED); } @@ -9267,6 +9276,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name unquotedName(String... qualifiedName) { if (qualifiedName == null || qualifiedName.length != 1) return new QualifiedName(qualifiedName, Quoted.UNQUOTED); @@ -9284,6 +9294,7 @@ public class DSL { * @param qualifiedName The SQL identifier's qualified name parts * @return A {@link QueryPart} that will render the SQL identifier */ + @Support public static Name unquotedName(Collection qualifiedName) { return unquotedName(qualifiedName.toArray(Tools.EMPTY_STRING)); } @@ -9296,6 +9307,7 @@ public class DSL { * Compose a list of QueryParts into a new * QueryPart, with individual parts being comma-separated. */ + @Support public static QueryPart list(QueryPart... parts) { return list(Arrays.asList(parts)); } @@ -9304,6 +9316,7 @@ public class DSL { * Compose a list of QueryParts into a new * QueryPart, with individual parts being comma-separated. */ + @Support public static QueryPart list(Collection parts) { return new QueryPartList(parts); }