Enum Constant and Description |
---|
BINARY
Binary operator syntax, as in "x + y".
|
FUNCTION
Function syntax, as in "Foo(x, y)".
|
FUNCTION_ID
Function syntax which takes no parentheses if there are no arguments, for
example "CURRENTTIME".
|
FUNCTION_STAR
Function syntax, as in "Foo(x, y)", but uses "*" if there are no arguments,
for example "COUNT(*)".
|
INTERNAL
Syntax of an internal operator, which does not appear in the SQL.
|
POSTFIX
Postfix unary operator syntax, as in "x ++".
|
PREFIX
Prefix unary operator syntax, as in "- x".
|
SPECIAL
Special syntax, such as that of the SQL CASE operator, "CASE x WHEN 1
THEN 2 ELSE 3 END".
|
Modifier and Type | Method and Description |
---|---|
abstract void |
unparse(SqlWriter writer,
SqlOperator operator,
SqlCall call,
int leftPrec,
int rightPrec)
Converts a call to an operator of this syntax into a string.
|
static SqlSyntax |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SqlSyntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlSyntax FUNCTION
public static final SqlSyntax FUNCTION_STAR
public static final SqlSyntax BINARY
public static final SqlSyntax PREFIX
public static final SqlSyntax POSTFIX
public static final SqlSyntax SPECIAL
public static final SqlSyntax FUNCTION_ID
SqlConformance.allowNiladicParentheses()
public static final SqlSyntax INTERNAL
public static SqlSyntax[] values()
for (SqlSyntax c : SqlSyntax.values()) System.out.println(c);
public static SqlSyntax valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract void unparse(SqlWriter writer, SqlOperator operator, SqlCall call, int leftPrec, int rightPrec)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.