public enum SqlUniqueSpec extends Enum<SqlUniqueSpec>
Enum Constant and Description |
---|
PRIMARY_KEY |
UNIQUE |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.sql.SqlLiteral |
symbol(org.apache.calcite.sql.parser.SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword at a particular position
in the parsed text.
|
String |
toString() |
static SqlUniqueSpec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlUniqueSpec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlUniqueSpec PRIMARY_KEY
public static final SqlUniqueSpec UNIQUE
public static SqlUniqueSpec[] values()
for (SqlUniqueSpec c : SqlUniqueSpec.values()) System.out.println(c);
public static SqlUniqueSpec valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<SqlUniqueSpec>
public org.apache.calcite.sql.SqlLiteral symbol(org.apache.calcite.sql.parser.SqlParserPos pos)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.