diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 3bb12355eb..33088099d3 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -6141,6 +6141,78 @@ public class DSL { return function("coalesce", nullSafeDataType(field), nullSafe(combine(field, fields))); } + /** + * Gets the SQL Server-style ISNULL(value, defaultValue) function. + * + * @see #nvl(Field, Field) + */ + @Support + @Transition( + name = "ISNULL", + args = { + "Field", + "Field" + }, + to = "Function" + ) + public static Field isnull(T value, T defaultValue) { + return nvl(value, defaultValue); + } + + /** + * Gets the SQL Server-style ISNULL(value, defaultValue) function. + * + * @see #nvl(Field, Field) + */ + @Support + @Transition( + name = "ISNULL", + args = { + "Field", + "Field" + }, + to = "Function" + ) + public static Field isnull(T value, Field defaultValue) { + return nvl(value, defaultValue); + } + + /** + * Gets the SQL Server-style ISNULL(value, defaultValue) function. + * + * @see #nvl(Field, Field) + */ + @Support + @Transition( + name = "ISNULL", + args = { + "Field", + "Field" + }, + to = "Function" + ) + public static Field isnull(Field value, T defaultValue) { + return nvl(value, defaultValue); + } + + /** + * Gets the SQL Server-style ISNULL(value, defaultValue) function. + * + * @see #nvl(Field, Field) + */ + @Support + @Transition( + name = "ISNULL", + args = { + "Field", + "Field" + }, + to = "Function" + ) + public static Field isnull(Field value, Field defaultValue) { + return nvl(value, defaultValue); + } + /** * Gets the Oracle-style NVL(value, defaultValue) function. *