public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep
Constraint
construction DSL API that allows for
adding ON DELETE
and ON UPDATE
clauses.
XYZ*Step
types directly from client code
It is usually not recommended to reference any XYZ*Step
types
directly from client code, or assign them to local variables. When writing
dynamic SQL, creating a statement's components dynamically, and passing them
to the DSL API statically is usually a better choice. See the manual's
section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.
Drawbacks of referencing the XYZ*Step
types directly:
Modifier and Type | Method and Description |
---|---|
ConstraintForeignKeyOnStep |
onDeleteCascade()
Add an
ON DELETE CASCADE clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onDeleteNoAction()
Add an
ON DELETE NO ACTION clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onDeleteRestrict()
Add an
ON DELETE RESTRICT clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onDeleteSetDefault()
Add an
ON DELETE SET DEFAULT clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onDeleteSetNull()
Add an
ON DELETE SET NULL clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onUpdateCascade()
Add an
ON UPDATE CASCADE clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onUpdateNoAction()
Add an
ON UPDATE NO ACTION clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onUpdateRestrict()
Add an
ON UPDATE RESTRICT clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onUpdateSetDefault()
Add an
ON UPDATE SET DEFAULT clause to the
FOREIGN KEY constraint. |
ConstraintForeignKeyOnStep |
onUpdateSetNull()
Add an
ON UPDATE SET NULL clause to the
FOREIGN KEY constraint. |
getComment, getName, getQualifiedName, getUnqualifiedName
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onDeleteNoAction()
ON DELETE NO ACTION
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SYBASE}) ConstraintForeignKeyOnStep onDeleteRestrict()
ON DELETE RESTRICT
clause to the
FOREIGN KEY
constraint.@Support ConstraintForeignKeyOnStep onDeleteCascade()
ON DELETE CASCADE
clause to the
FOREIGN KEY
constraint.@Support ConstraintForeignKeyOnStep onDeleteSetNull()
ON DELETE SET NULL
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onDeleteSetDefault()
ON DELETE SET DEFAULT
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateNoAction()
ON UPDATE NO ACTION
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SYBASE}) ConstraintForeignKeyOnStep onUpdateRestrict()
ON UPDATE RESTRICT
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateCascade()
ON UPDATE CASCADE
clause to the
FOREIGN KEY
constraint.@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateSetNull()
ON UPDATE SET NULL
clause to the
FOREIGN KEY
constraint.Copyright © 2019. All rights reserved.