Package org.jooq

Interface Keyword

  • All Superinterfaces:
    QueryPart, java.io.Serializable

    public interface Keyword
    extends QueryPart
    A SQL keyword.

    A Keyword is a QueryPart that renders a SQL keyword according to the settings specified in Settings.getRenderKeywordCase(). It is useful mostly in jOOQ's internals and for users who wish to make extensive use of "plain SQL templating".

    Example:

     // Assuming import static org.jooq.impl.DSL.*;
    
     Field<Integer> field = field(
         "{0}({1} {2} {3})",
         SQLDataType.INTEGER,
         keyword("extract"), keyword("year"), keyword("from"), ACTOR.LAST_UPDATE
     );
     

    Instances can be created using DSL.keyword(String) and overloads.

    Author:
    Lukas Eder