public enum Clause extends Enum<Clause>
VisitListener
.
Enum Constant and Description |
---|
CATALOG |
CATALOG_REFERENCE |
CONDITION
A condition expression.
|
CONDITION_AND
A combined condition using
AND . |
CONDITION_BETWEEN
A
BEWEEN condition. |
CONDITION_BETWEEN_SYMMETRIC
A
BEWEEN SYMMETRIC condition. |
CONDITION_COMPARISON |
CONDITION_EXISTS
An
EXISTS condition. |
CONDITION_IN
An
IN condition. |
CONDITION_IS_NOT_NULL
A
NOT NULL condition. |
CONDITION_IS_NULL
A
NULL condition. |
CONDITION_NOT
A
NOT condition. |
CONDITION_NOT_BETWEEN
A
NOT BEWEEN condition. |
CONDITION_NOT_BETWEEN_SYMMETRIC
A
NOT BEWEEN SYMMETRIC condition. |
CONDITION_NOT_EXISTS
A
NOT EXISTS condition. |
CONDITION_NOT_IN
A
NOT IN condition. |
CONDITION_OR
A combined condition using
OR . |
CONDITION_OVERLAPS
An
OVERLAPS condition. |
CUSTOM
A custom
QueryPart clause. |
DELETE
A complete
DELETE statement. |
DELETE_DELETE
A
DELETE clause within an DELETE statement. |
DELETE_WHERE
A
WHERE clause within an DELETE statement. |
FIELD
A field expression.
|
FIELD_ALIAS
A field alias declaration.
|
FIELD_CASE |
FIELD_FUNCTION |
FIELD_REFERENCE
A physical or aliased field reference.
|
FIELD_ROW |
FIELD_VALUE |
INSERT
A complete
INSERT statement. |
INSERT_INSERT_INTO
The
INSERT INTO clause within an INSERT statement. |
INSERT_ON_DUPLICATE_KEY_UPDATE
The
ON DUPLICATE KEY UPDATE clause within an INSERT
statement. |
INSERT_ON_DUPLICATE_KEY_UPDATE_ASSIGNMENT
The
ON DUPLICATE KEY UPDATE clause within an INSERT
statement. |
INSERT_RETURNING
The
RETURNING clause within an INSERT statement. |
INSERT_SELECT
The
SELECT clause within an INSERT statement. |
INSERT_VALUES
The
VALUES clause within an INSERT statement. |
MERGE
A complete
MERGE statement. |
MERGE_DELETE_WHERE
|
MERGE_MERGE_INTO
A
MERGE INTO clause within an MERGE statement. |
MERGE_ON
An
ON clause within a MERGE statement. |
MERGE_SET
|
MERGE_SET_ASSIGNMENT
|
MERGE_USING
A
USING clause within a MERGE statement. |
MERGE_VALUES
A
VALUES clause within a MERGE statement. |
MERGE_WHEN_MATCHED_THEN_UPDATE
A
WHEN MATCHED THEN UPDATE clause within a MERGE
statement. |
MERGE_WHEN_NOT_MATCHED_THEN_INSERT
A
WHEN NOT MATCHED THEN INSERT clause within a
MERGE statement. |
MERGE_WHERE
|
SCHEMA |
SCHEMA_REFERENCE |
SELECT
A complete
SELECT statement or a subselect. |
SELECT_CONNECT_BY
A
CONNECT BY clause within a SELECT statement or
subselect. |
SELECT_EXCEPT
A
EXCEPT set operation. |
SELECT_FROM
A
FROM clause within a SELECT statement or
subselect. |
SELECT_GROUP_BY |
SELECT_HAVING
A
HAVING clause within a SELECT statement or
subselect. |
SELECT_INTERSECT
A
INTERSECT set operation. |
SELECT_ORDER_BY |
SELECT_SELECT
A
SELECT clause within a SELECT statement or
subselect. |
SELECT_START_WITH
A
START WITH clause within a SELECT statement or
subselect. |
SELECT_UNION
A
UNION set operation. |
SELECT_UNION_ALL
A
UNION ALL set operation. |
SELECT_WHERE
A
WHERE clause within a SELECT statement or
subselect. |
SELECT_WINDOW |
TABLE
A table expression.
|
TABLE_ALIAS
A table alias declaration.
|
TABLE_JOIN |
TABLE_JOIN_CROSS |
TABLE_JOIN_CROSS_APPLY |
TABLE_JOIN_INNER |
TABLE_JOIN_NATURAL |
TABLE_JOIN_NATURAL_OUTER_LEFT |
TABLE_JOIN_NATURAL_OUTER_RIGHT |
TABLE_JOIN_ON |
TABLE_JOIN_OUTER_APPLY |
TABLE_JOIN_OUTER_FULL |
TABLE_JOIN_OUTER_LEFT |
TABLE_JOIN_OUTER_RIGHT |
TABLE_JOIN_PARTITION_BY |
TABLE_JOIN_USING |
TABLE_REFERENCE
A physical or aliased table reference.
|
TABLE_VALUES
A
VALUES table constructor
This clause surrounds a
a VALUES keyword
a table constructor with several FIELD_ROW value expressions
|
TEMPLATE
A plain SQL template clause.
|
TRUNCATE
A complete
TRUNCATE statement. |
TRUNCATE_TRUNCATE
A
TRUNCATE clause within an TRUNCATE statement. |
UPDATE
A complete
UPDATE statement. |
UPDATE_FROM
A vendor-specific
FROM clause within an UPDATE statement. |
UPDATE_RETURNING
A
RETURNING clause within an UPDATE statement. |
UPDATE_SET
A
SET clause within an UPDATE statement. |
UPDATE_SET_ASSIGNMENT
An assigment within a
UPDATE_SET clause within an
UPDATE statement. |
UPDATE_UPDATE
An
UPDATE clause within an UPDATE statement. |
UPDATE_WHERE
A
WHERE clause within an UPDATE statement. |
Modifier and Type | Method and Description |
---|---|
static Clause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Clause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Clause CATALOG
public static final Clause CATALOG_REFERENCE
public static final Clause SCHEMA
public static final Clause SCHEMA_REFERENCE
public static final Clause TABLE
This clause surrounds an actual table expression as it can be encountered in
public static final Clause TABLE_ALIAS
This clause surrounds a table alias declaration, for instance within the
SELECT_FROM
clause, or within a TABLE_JOIN
clause,
wrapping another TABLE
.
Referenced table aliases emit TABLE_REFERENCE
clauses.
public static final Clause TABLE_REFERENCE
This is a terminal clause used to reference physical or aliased tables.
public static final Clause TABLE_JOIN
public static final Clause TABLE_JOIN_INNER
public static final Clause TABLE_JOIN_CROSS
public static final Clause TABLE_JOIN_NATURAL
public static final Clause TABLE_JOIN_OUTER_LEFT
public static final Clause TABLE_JOIN_OUTER_RIGHT
public static final Clause TABLE_JOIN_OUTER_FULL
public static final Clause TABLE_JOIN_NATURAL_OUTER_LEFT
public static final Clause TABLE_JOIN_NATURAL_OUTER_RIGHT
public static final Clause TABLE_JOIN_CROSS_APPLY
public static final Clause TABLE_JOIN_OUTER_APPLY
public static final Clause TABLE_JOIN_ON
public static final Clause TABLE_JOIN_USING
public static final Clause TABLE_JOIN_PARTITION_BY
public static final Clause TABLE_VALUES
VALUES
table constructor
This clause surrounds a
VALUES
keywordFIELD_ROW
value expressions
public static final Clause FIELD
This clause surrounds an actual field expression as it can be encountered
in various other clauses, such as for instance SELECT_SELECT
.
public static final Clause FIELD_ALIAS
This clause surrounds a field alias declaration, for instance within the
SELECT_SELECT
clause, wrapping another FIELD
.
Referenced field aliases emit FIELD_REFERENCE
clauses.
public static final Clause FIELD_REFERENCE
This is a terminal clause used to reference physical or aliased fields.
public static final Clause FIELD_VALUE
public static final Clause FIELD_CASE
public static final Clause FIELD_ROW
public static final Clause FIELD_FUNCTION
public static final Clause CONDITION
public static final Clause CONDITION_IS_NULL
NULL
condition.
This clause surrounds a FIELD
.
public static final Clause CONDITION_IS_NOT_NULL
NOT NULL
condition.
This clause surrounds a FIELD
.
public static final Clause CONDITION_COMPARISON
public static final Clause CONDITION_BETWEEN
BEWEEN
condition.
This clause surrounds three FIELD
clauses.
public static final Clause CONDITION_BETWEEN_SYMMETRIC
BEWEEN SYMMETRIC
condition.
This clause surrounds three FIELD
clauses.
public static final Clause CONDITION_NOT_BETWEEN
NOT BEWEEN
condition.
This clause surrounds three FIELD
clauses.
public static final Clause CONDITION_NOT_BETWEEN_SYMMETRIC
NOT BEWEEN SYMMETRIC
condition.
This clause surrounds three FIELD
clauses.
public static final Clause CONDITION_OVERLAPS
OVERLAPS
condition.
This clause surrounds two FIELD
clauses.
public static final Clause CONDITION_AND
AND
.
This clause surrounds several CONDITION
clauses.
public static final Clause CONDITION_OR
OR
.
This clause surrounds several CONDITION
clauses.
public static final Clause CONDITION_NOT
NOT
condition.
This clause surrounds a CONDITION
clause.
public static final Clause CONDITION_IN
IN
condition.
This clause surrounds two or more FIELD
clauses.
public static final Clause CONDITION_NOT_IN
NOT IN
condition.
This clause surrounds two or more FIELD
clauses.
public static final Clause CONDITION_EXISTS
EXISTS
condition.
This clause surrounds a SELECT
clause.
public static final Clause CONDITION_NOT_EXISTS
NOT EXISTS
condition.
This clause surrounds a SELECT
clause.
public static final Clause SELECT
SELECT
statement or a subselect.
This clause surrounds a complete SELECT
statement, a
subselect, or a set operation, such as
public static final Clause SELECT_UNION
UNION
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a UNION
set operation.
public static final Clause SELECT_UNION_ALL
UNION ALL
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a UNION ALL
set operation.
public static final Clause SELECT_INTERSECT
INTERSECT
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a INTERSECT
set operation.
public static final Clause SELECT_EXCEPT
EXCEPT
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a EXCEPT
set operation.
public static final Clause SELECT_SELECT
SELECT
clause within a SELECT
statement or
subselect.
This clause surrounds
SELECT
keywordTOP .. START AT
clausepublic static final Clause SELECT_FROM
FROM
clause within a SELECT
statement or
subselect.
This clause surrounds
FROM
keyword
See TABLE
and related clauses for possible table references.
TABLE
public static final Clause SELECT_WHERE
WHERE
clause within a SELECT
statement or
subselect.
This clause surrounds
WHERE
keywordCONDITION
See CONDITION
and related clauses for possible conditions
CONDITION
public static final Clause SELECT_START_WITH
START WITH
clause within a SELECT
statement or
subselect.
This clause surrounds
START WITH
keywordsCONDITION
See CONDITION
and related clauses for possible conditions
CONDITION
public static final Clause SELECT_CONNECT_BY
CONNECT BY
clause within a SELECT
statement or
subselect.
This clause surrounds
CONNECT BY
keywordsCONDITION
See CONDITION
and related clauses for possible conditions
CONDITION
public static final Clause SELECT_GROUP_BY
public static final Clause SELECT_HAVING
HAVING
clause within a SELECT
statement or
subselect.
This clause surrounds
HAVING
keywordCONDITION
See CONDITION
and related clauses for possible conditions
CONDITION
public static final Clause SELECT_WINDOW
public static final Clause SELECT_ORDER_BY
public static final Clause INSERT
INSERT
statement.public static final Clause INSERT_INSERT_INTO
INSERT INTO
clause within an INSERT
statement.
This clause surrounds
INSERT INTO
keywordspublic static final Clause INSERT_VALUES
public static final Clause INSERT_SELECT
public static final Clause INSERT_ON_DUPLICATE_KEY_UPDATE
ON DUPLICATE KEY UPDATE
clause within an INSERT
statement.
This clause surrounds several
INSERT_ON_DUPLICATE_KEY_UPDATE_ASSIGNMENT
clauses.
ON DUPLICATE KEY UPDATE
keywordsINSERT_ON_DUPLICATE_KEY_UPDATE_ASSIGNMENT
clausespublic static final Clause INSERT_ON_DUPLICATE_KEY_UPDATE_ASSIGNMENT
public static final Clause INSERT_RETURNING
public static final Clause UPDATE
UPDATE
statement.public static final Clause UPDATE_UPDATE
UPDATE
clause within an UPDATE
statement.
This clause surrounds
UPDATE
keywordpublic static final Clause UPDATE_SET
SET
clause within an UPDATE
statement.
This clause surrounds
SET
keywordUPDATE_SET_ASSIGNMENT
public static final Clause UPDATE_SET_ASSIGNMENT
public static final Clause UPDATE_FROM
public static final Clause UPDATE_WHERE
public static final Clause UPDATE_RETURNING
public static final Clause DELETE
DELETE
statement.public static final Clause DELETE_DELETE
DELETE
clause within an DELETE
statement.
This clause surrounds
DELETE FROM
keywordspublic static final Clause DELETE_WHERE
public static final Clause MERGE
MERGE
statement.public static final Clause MERGE_MERGE_INTO
MERGE INTO
clause within an MERGE
statement.
This clause surrounds
MERGE INTO
keywordspublic static final Clause MERGE_USING
public static final Clause MERGE_ON
public static final Clause MERGE_WHEN_MATCHED_THEN_UPDATE
WHEN MATCHED THEN UPDATE
clause within a MERGE
statement.
This clause surrounds
WHEN MATCHED THEN UPDATE
keywordsMERGE_SET
clauseMERGE_WHERE
clauseMERGE_DELETE_WHERE
clausepublic static final Clause MERGE_SET
SET
clause within a
MERGE_WHEN_MATCHED_THEN_UPDATE
clause within an MERGE
statement.
This clause surrounds
SET
keywordMERGE_SET_ASSIGNMENT
clausespublic static final Clause MERGE_SET_ASSIGNMENT
public static final Clause MERGE_WHERE
WHERE
clause within a
MERGE_WHEN_MATCHED_THEN_UPDATE
clause within a
MERGE
statement.
This clause surrounds
WHERE
keywordCONDITION
public static final Clause MERGE_DELETE_WHERE
DELETE_WHERE
clause within a
MERGE_WHEN_MATCHED_THEN_UPDATE
clause within a MERGE
statement.
This clause surrounds
DELETE WHERE
keywordCONDITION
public static final Clause MERGE_WHEN_NOT_MATCHED_THEN_INSERT
public static final Clause MERGE_VALUES
public static final Clause TRUNCATE
TRUNCATE
statement.public static final Clause TRUNCATE_TRUNCATE
TRUNCATE
clause within an TRUNCATE
statement.
This clause surrounds
TRUNCATE TABLE
keywordspublic static final Clause TEMPLATE
public static Clause[] values()
for (Clause c : Clause.values()) System.out.println(c);
public static Clause 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 nullCopyright © 2014. All Rights Reserved.