Class Keyword

java.lang.Object
com.jk.data.dynamic.query.Keyword
All Implemented Interfaces:
QueryComponent

public class Keyword extends Object implements QueryComponent
The Class Keyword.
  • Field Details

    • SELECT

      public static final QueryComponent SELECT
      The Constant SELECT.
    • FROM

      public static final QueryComponent FROM
      The Constant FROM.
    • AND

      public static final QueryComponent AND
      The Constant AND.
    • OR

      public static final QueryComponent OR
      The Constant OR.
    • LEFT_JOIN

      public static final QueryComponent LEFT_JOIN
      The Constant LEFT_JOIN.
    • RIGHT_JOIN

      public static final QueryComponent RIGHT_JOIN
      The Constant RIGHT_JOIN.
    • WHERE

      public static final QueryComponent WHERE
      The Constant WHERE.
    • INSERT

      public static final QueryComponent INSERT
      The Constant INSERT.
    • VALUES

      public static final QueryComponent VALUES
      The Constant VALUES.
    • INTO

      public static final QueryComponent INTO
      The Constant INTO.
    • COMMA

      public static final QueryComponent COMMA
      The Constant COMMA.
    • VARIABLE

      public static final QueryComponent VARIABLE
      The Constant VARIABLE.
    • LEFT_PARENTHESES

      public static final QueryComponent LEFT_PARENTHESES
      The Constant LEFT_PARENTHESES.
    • RIGHT_PARENTHESES

      public static final QueryComponent RIGHT_PARENTHESES
      The Constant RIGHT_PARENTHESES.
    • SEMICOLON

      public static final QueryComponent SEMICOLON
      The Constant SEMICOLON.
  • Constructor Details

    • Keyword

      public Keyword()
      Instantiates a new keyword.
    • Keyword

      public Keyword(String name)
      Instantiates a new keyword.
      Parameters:
      name - the name
    • Keyword

      public Keyword(String name, boolean inline)
      Instantiates a new keyword.
      Parameters:
      name - the name
      inline - the inline
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • isInline

      public boolean isInline()
      Checks if is inline.
      Specified by:
      isInline in interface QueryComponent
      Returns:
      true, if is inline
    • setInline

      public void setInline(boolean inline)
      Sets the inline.
      Parameters:
      inline - the new inline
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • toQueryElement

      public Object toQueryElement()
      To query element.
      Specified by:
      toQueryElement in interface QueryComponent
      Returns:
      the object