diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 16b3cc54b8..ed6663cf99 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -7011,6 +7011,33 @@ public class DSL { return new NameImpl(qualifiedName); } + /** + * Create a new SQL identifier using a qualified name. + *
+ * Use this method to construct syntax-safe, SQL-injection-safe SQL + * identifiers for use in plain SQL where {@link QueryPart} objects are + * accepted. For instance, this can be used with any of these methods: + *
+ * An example:
+ *
+ * @param qualifiedName The SQL identifier's qualified name parts
+ * @return A {@link QueryPart} that will render the SQL identifier
+ */
+ public static Name name(Collection
+ * // This qualified name here
+ * name("book", "title");
+ *
+ * // ... will render this SQL on SQL Server with RenderNameStyle.QUOTED set
+ * [book].[title]
+ *