public static enum SqlWriter.FrameTypeEnum extends Enum<SqlWriter.FrameTypeEnum> implements SqlWriter.FrameType
| Enum Constant and Description |
|---|
FETCH
FETCH clause.
|
FROM_LIST
FROM clause (containing various kinds of JOIN).
|
FUN_CALL
Function call or datatype declaration.
|
FUN_DECL
Function declaration.
|
GROUP_BY_LIST
GROUP BY list.
|
IDENTIFIER
Compound identifier.
|
OFFSET
OFFSET clause.
|
ORDER_BY
ORDER BY clause of a SELECT statement.
|
ORDER_BY_LIST
ORDER BY list.
|
SELECT
SELECT query (or UPDATE or DELETE).
|
SELECT_LIST
The SELECT clause of a SELECT statement.
|
SETOP
Set operation.
|
SIMPLE
Simple list.
|
SUB_QUERY
Sub-query list.
|
UPDATE_SET_LIST
The SET clause of an UPDATE statement.
|
WHERE_LIST
WHERE clause.
|
WINDOW
Window specification.
|
WINDOW_DECL_LIST
The WINDOW clause of a SELECT statement.
|
WITH
WITH clause of a SELECT statement.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlWriter.FrameType |
create(String name)
Creates a frame type.
|
String |
getName()
Returns the name of this frame type.
|
boolean |
needsIndent()
Returns whether this frame type should cause the code be further
indented.
|
static SqlWriter.FrameTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlWriter.FrameTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlWriter.FrameTypeEnum SELECT
public static final SqlWriter.FrameTypeEnum SIMPLE
public static final SqlWriter.FrameTypeEnum SELECT_LIST
public static final SqlWriter.FrameTypeEnum WINDOW_DECL_LIST
public static final SqlWriter.FrameTypeEnum UPDATE_SET_LIST
public static final SqlWriter.FrameTypeEnum FUN_DECL
public static final SqlWriter.FrameTypeEnum FUN_CALL
Examples:
SUBSTRING('foobar' FROM 1 + 2 TO 4)DECIMAL(10, 5)public static final SqlWriter.FrameTypeEnum WINDOW
Examples:
SUM(x) OVER (ORDER BY hireDate ROWS 3 PRECEDING)WINDOW w1 AS (ORDER BY hireDate), w2 AS (w1 PARTITION BY gender
RANGE BETWEEN INTERVAL '1' YEAR PRECEDING AND '2' MONTH
PRECEDING)public static final SqlWriter.FrameTypeEnum ORDER_BY
public static final SqlWriter.FrameTypeEnum ORDER_BY_LIST
Example:
ORDER BY x, y DESC, zpublic static final SqlWriter.FrameTypeEnum WITH
public static final SqlWriter.FrameTypeEnum OFFSET
Example:
OFFSET 10 ROWSpublic static final SqlWriter.FrameTypeEnum FETCH
Example:
FETCH FIRST 3 ROWS ONLYpublic static final SqlWriter.FrameTypeEnum GROUP_BY_LIST
Example:
GROUP BY x, FLOOR(y)public static final SqlWriter.FrameTypeEnum SUB_QUERY
Example:
GROUP BY x, FLOOR(y)public static final SqlWriter.FrameTypeEnum SETOP
Example:
SELECT * FROM a UNION SELECT * FROM bpublic static final SqlWriter.FrameTypeEnum FROM_LIST
public static final SqlWriter.FrameTypeEnum WHERE_LIST
public static final SqlWriter.FrameTypeEnum IDENTIFIER
Example:
"A"."B"."C"public static SqlWriter.FrameTypeEnum[] values()
for (SqlWriter.FrameTypeEnum c : SqlWriter.FrameTypeEnum.values()) System.out.println(c);
public static SqlWriter.FrameTypeEnum 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 boolean needsIndent()
SqlWriter.FrameTypeneedsIndent in interface SqlWriter.FrameTypepublic static SqlWriter.FrameType create(String name)
name - Namepublic String getName()
SqlWriter.FrameTypegetName in interface SqlWriter.FrameTypeCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.