Enum FromClause.ClauseType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FromClause.ClauseType>
    Enclosing class:
    FromClause

    public static enum FromClause.ClauseType
    extends java.lang.Enum<FromClause.ClauseType>
    This enumeration specifies the overall type of the FROM clause. Since different kinds of FROM clauses have different characteristics, we drive some of the logic in this class with this enumeration.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BASE_TABLE
      This clause is a simple table (a "base relation").
      JOIN_EXPR
      This clause is a derived relation specified as a join of two relations.
      SELECT_SUBQUERY
      This clause is a derived relation specified as a named SELECT subquery.
      TABLE_FUNCTION
      This clause is a table-returning function.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ClauseType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FromClause.ClauseType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FromClause.ClauseType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BASE_TABLE

        public static final FromClause.ClauseType BASE_TABLE
        This clause is a simple table (a "base relation").
      • SELECT_SUBQUERY

        public static final FromClause.ClauseType SELECT_SUBQUERY
        This clause is a derived relation specified as a named SELECT subquery.
      • JOIN_EXPR

        public static final FromClause.ClauseType JOIN_EXPR
        This clause is a derived relation specified as a join of two relations.
      • TABLE_FUNCTION

        public static final FromClause.ClauseType TABLE_FUNCTION
        This clause is a table-returning function.
    • Constructor Detail

      • ClauseType

        private ClauseType()
    • Method Detail

      • values

        public static FromClause.ClauseType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FromClause.ClauseType c : FromClause.ClauseType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FromClause.ClauseType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null