- 
- All Superinterfaces:
- Constraint,- ConstraintEnforcementStep,- ConstraintFinalStep,- FieldOrConstraint,- Named,- QueryPart,- Serializable
 
 public interface ConstraintForeignKeyOnStep extends ConstraintEnforcementStep The step in theConstraintconstruction DSL API that allows for addingON DELETEandON UPDATEclauses.ReferencingXYZ*Steptypes directly from client codeIt is usually not recommended to reference any XYZ*Steptypes 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*Steptypes directly:- They're operating on mutable implementations (as of jOOQ 3.x)
- They're less composable and not easy to get right when dynamic SQL gets complex
- They're less readable
- They might have binary incompatible changes between minor releases
 - Author:
- Lukas Eder
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintForeignKeyOnSteponDeleteCascade()Add anON DELETE CASCADEclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponDeleteNoAction()Add anON DELETE NO ACTIONclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponDeleteRestrict()Add anON DELETE RESTRICTclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponDeleteSetDefault()Add anON DELETE SET DEFAULTclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponDeleteSetNull()Add anON DELETE SET NULLclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponUpdateCascade()Add anON UPDATE CASCADEclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponUpdateNoAction()Add anON UPDATE NO ACTIONclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponUpdateRestrict()Add anON UPDATE RESTRICTclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponUpdateSetDefault()Add anON UPDATE SET DEFAULTclause to theFOREIGN KEYconstraint.ConstraintForeignKeyOnSteponUpdateSetNull()Add anON UPDATE SET NULLclause to theFOREIGN KEYconstraint.- 
Methods inherited from interface org.jooq.ConstraintEnforcementStepenforced, notEnforced
 - 
Methods inherited from interface org.jooq.NamedgetComment, getName, getQualifiedName, getUnqualifiedName
 
- 
 
- 
- 
- 
Method Detail- 
onDeleteNoAction@Support ConstraintForeignKeyOnStep onDeleteNoAction() Add anON DELETE NO ACTIONclause to theFOREIGN KEYconstraint.This is the standard action according to the SQL standard. If a given SQLDialectdoes 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.
 - 
onDeleteRestrict@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INGRES,MARIADB,MEMSQL,MYSQL,POSTGRES,SQLITE,SYBASE}) ConstraintForeignKeyOnStep onDeleteRestrict() Add anON DELETE RESTRICTclause to theFOREIGN KEYconstraint.
 - 
onDeleteCascade@Support ConstraintForeignKeyOnStep onDeleteCascade() Add anON DELETE CASCADEclause to theFOREIGN KEYconstraint.
 - 
onDeleteSetNull@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onDeleteSetNull() Add anON DELETE SET NULLclause to theFOREIGN KEYconstraint.
 - 
onDeleteSetDefault@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,MEMSQL,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onDeleteSetDefault() Add anON DELETE SET DEFAULTclause to theFOREIGN KEYconstraint.
 - 
onUpdateNoAction@Support ConstraintForeignKeyOnStep onUpdateNoAction() Add anON UPDATE NO ACTIONclause to theFOREIGN KEYconstraint.This is the standard action according to the SQL standard. If a given SQLDialectdoes 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.
 - 
onUpdateRestrict@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INGRES,MARIADB,MEMSQL,MYSQL,POSTGRES,SQLITE,SYBASE}) ConstraintForeignKeyOnStep onUpdateRestrict() Add anON UPDATE RESTRICTclause to theFOREIGN KEYconstraint.
 - 
onUpdateCascade@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MEMSQL,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateCascade() Add anON UPDATE CASCADEclause to theFOREIGN KEYconstraint.
 - 
onUpdateSetNull@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MEMSQL,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateSetNull() Add anON UPDATE SET NULLclause to theFOREIGN KEYconstraint.
 - 
onUpdateSetDefault@Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,MEMSQL,MYSQL,POSTGRES,SQLITE,SQLSERVER,SYBASE}) ConstraintForeignKeyOnStep onUpdateSetDefault() Add anON UPDATE SET DEFAULTclause to theFOREIGN KEYconstraint.
 
- 
 
-