-
public interface AlterDomainStep<T>A step in the construction of theALTER DOMAINstatement.Referencing
XYZ*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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull AlterDomainFinalStepadd(Constraint addConstraint)Add theADDclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraint(String dropConstraint)Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraint(Constraint dropConstraint)Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraint(Name dropConstraint)Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraintIfExists(String dropConstraint)Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraintIfExists(Constraint dropConstraint)Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainDropConstraintCascadeStepdropConstraintIfExists(Name dropConstraint)Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalStepdropDefault()Add theDROP DEFAULTclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalStepdropNotNull()Add theDROP NOT NULLclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraint(String renameConstraint)Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraint(Constraint renameConstraint)Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraint(Name renameConstraint)Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraintIfExists(String renameConstraint)Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraintIfExists(Constraint renameConstraint)Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainRenameConstraintSteprenameConstraintIfExists(Name renameConstraint)Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalSteprenameTo(String renameTo)Add theRENAME TOclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalSteprenameTo(Domain<?> renameTo)Add theRENAME TOclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalSteprenameTo(Name renameTo)Add theRENAME TOclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalStepsetDefault(Field<T> setDefault)Add theSET DEFAULTclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalStepsetDefault(T setDefault)Add theSET DEFAULTclause to theALTER DOMAINstatement.@NotNull AlterDomainFinalStepsetNotNull()Add theSET NOT NULLclause to theALTER DOMAINstatement.
-
-
-
Method Detail
-
add
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep add(Constraint addConstraint)
Add theADDclause to theALTER DOMAINstatement.
-
dropConstraint
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraint(String dropConstraint)
Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.
-
dropConstraint
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraint(Name dropConstraint)
Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.
-
dropConstraint
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraint(Constraint dropConstraint)
Add theDROP CONSTRAINTclause to theALTER DOMAINstatement.
-
dropConstraintIfExists
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraintIfExists(String dropConstraint)
Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
dropConstraintIfExists
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraintIfExists(Name dropConstraint)
Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
dropConstraintIfExists
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainDropConstraintCascadeStep dropConstraintIfExists(Constraint dropConstraint)
Add theDROP CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
renameTo
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep renameTo(String renameTo)
Add theRENAME TOclause to theALTER DOMAINstatement.
-
renameTo
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep renameTo(Name renameTo)
Add theRENAME TOclause to theALTER DOMAINstatement.
-
renameTo
@Support({AURORA_POSTGRES,FIREBIRD,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep renameTo(Domain<?> renameTo)
Add theRENAME TOclause to theALTER DOMAINstatement.
-
renameConstraint
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraint(String renameConstraint)
Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.
-
renameConstraint
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraint(Name renameConstraint)
Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.
-
renameConstraint
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraint(Constraint renameConstraint)
Add theRENAME CONSTRAINTclause to theALTER DOMAINstatement.
-
renameConstraintIfExists
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraintIfExists(String renameConstraint)
Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
renameConstraintIfExists
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraintIfExists(Name renameConstraint)
Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
renameConstraintIfExists
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainRenameConstraintStep renameConstraintIfExists(Constraint renameConstraint)
Add theRENAME CONSTRAINT IF EXISTSclause to theALTER DOMAINstatement.
-
setDefault
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep setDefault(T setDefault)
Add theSET DEFAULTclause to theALTER DOMAINstatement.
-
setDefault
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep setDefault(Field<T> setDefault)
Add theSET DEFAULTclause to theALTER DOMAINstatement.
-
dropDefault
@Support({AURORA_POSTGRES,FIREBIRD,HSQLDB,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep dropDefault()
Add theDROP DEFAULTclause to theALTER DOMAINstatement.
-
setNotNull
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep setNotNull()
Add theSET NOT NULLclause to theALTER DOMAINstatement.
-
dropNotNull
@Support({AURORA_POSTGRES,POSTGRES}) @NotNull @NotNull AlterDomainFinalStep dropNotNull()
Add theDROP NOT NULLclause to theALTER DOMAINstatement.
-
-