A step in the construction of the Referencing
CREATE TRIGGER statement.
Referencing 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:
- 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
-
Method Summary
Modifier and TypeMethodDescription@NotNull CreateTriggerEventOrStepAdd theAFTER DELETEclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOrStepAdd theAFTER INSERTclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOfStepAdd theAFTER UPDATEclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOrStepAdd theBEFORE DELETEclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOrStepAdd theBEFORE INSERTclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOfStepAdd theBEFORE UPDATEclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOrStepAdd theINSTEAD OF DELETEclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOrStepAdd theINSTEAD OF INSERTclause to theCREATE TRIGGERstatement.@NotNull CreateTriggerEventOfStepAdd theINSTEAD OF UPDATEclause to theCREATE TRIGGERstatement.
-
Method Details
-
beforeInsert
@Support({AURORA_POSTGRES,DB2,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep beforeInsert()Add theBEFORE INSERTclause to theCREATE TRIGGERstatement. -
beforeUpdate
@Support({AURORA_POSTGRES,DB2,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOfStep beforeUpdate()Add theBEFORE UPDATEclause to theCREATE TRIGGERstatement. -
beforeDelete
@Support({AURORA_POSTGRES,DB2,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep beforeDelete()Add theBEFORE DELETEclause to theCREATE TRIGGERstatement. -
afterInsert
@Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep afterInsert()Add theAFTER INSERTclause to theCREATE TRIGGERstatement. -
afterUpdate
@Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOfStep afterUpdate()Add theAFTER UPDATEclause to theCREATE TRIGGERstatement. -
afterDelete
@Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep afterDelete()Add theAFTER DELETEclause to theCREATE TRIGGERstatement. -
insteadOfUpdate
@Support({DB2,HSQLDB,ORACLE,SQLITE,SQLSERVER}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOfStep insteadOfUpdate()Add theINSTEAD OF UPDATEclause to theCREATE TRIGGERstatement. -
insteadOfInsert
@Support({DB2,HSQLDB,ORACLE,SQLITE,SQLSERVER}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep insteadOfInsert()Add theINSTEAD OF INSERTclause to theCREATE TRIGGERstatement. -
insteadOfDelete
@Support({DB2,HSQLDB,ORACLE,SQLITE,SQLSERVER}) @NotNull @CheckReturnValue @NotNull CreateTriggerEventOrStep insteadOfDelete()Add theINSTEAD OF DELETEclause to theCREATE TRIGGERstatement.
-