diff --git a/jOOQ/src/main/java/org/jooq/ConstraintForeignKeyOnStep.java b/jOOQ/src/main/java/org/jooq/ConstraintForeignKeyOnStep.java index 4b2d99e40b..2986b17fea 100644 --- a/jOOQ/src/main/java/org/jooq/ConstraintForeignKeyOnStep.java +++ b/jOOQ/src/main/java/org/jooq/ConstraintForeignKeyOnStep.java @@ -52,6 +52,7 @@ import static org.jooq.SQLDialect.HSQLDB; // ... import static org.jooq.SQLDialect.MARIADB; import static org.jooq.SQLDialect.MYSQL; +// ... import static org.jooq.SQLDialect.POSTGRES; import static org.jooq.SQLDialect.SQLITE; // ... @@ -87,8 +88,13 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep { /** * Add an ON DELETE NO ACTION clause to the * FOREIGN KEY constraint. + *

+ * This is the standard action according to the SQL standard. If a given + * {@link SQLDialect} does not support setting this action explicitly, no + * explicit action will be specified and calling this method is equivalent + * to not calling any method at all. */ - @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) + @Support ConstraintForeignKeyOnStep onDeleteNoAction(); /** @@ -109,7 +115,7 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep { * Add an ON DELETE SET NULL clause to the * FOREIGN KEY constraint. */ - @Support + @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) ConstraintForeignKeyOnStep onDeleteSetNull(); /** @@ -122,8 +128,13 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep { /** * Add an ON UPDATE NO ACTION clause to the * FOREIGN KEY constraint. + *

+ * This is the standard action according to the SQL standard. If a given + * {@link SQLDialect} does not support setting this action explicitly, no + * explicit action will be specified and calling this method is equivalent + * to not calling any method at all. */ - @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) + @Support ConstraintForeignKeyOnStep onUpdateNoAction(); /**