Package org.jooq
Interface Label
-
@Pro public interface Label extends Named
A label for use in procedural code.In procedural code, labels can be used to identify a specific
Statement
within aBlock
. This is useful forDSL.exit(Label)
andDSL.continue_(Label)
statments, which allow for control flow within a loop, orDSL.goto_(Label)
statements in any other context.Example:
// Assuming import static org.jooq.impl.DSL.*; Label label = label("label"); using(configuration) .begin( label.label( for_(i).in(1, 3).loop( if_(i.gt(1)).then(exit(label)) ) ) ) .execute();
Instances can be created using
DSL.label(Name)
and overloads.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Statement
label(Statement statement)
Create a labelled statement.-
Methods inherited from interface org.jooq.Named
getComment, getName, getQualifiedName, getUnqualifiedName
-
-