public enum Clause extends Enum<Clause>
VisitListener
.
Enum Constant and Description |
---|
ALTER_SEQUENCE
A complete
ALTER SEQUENCE statement. |
ALTER_SEQUENCE_RESTART
A
RESTART clause within an ALTER_SEQUENCE statement. |
ALTER_SEQUENCE_SEQUENCE
A
SEQUENCE clause within an ALTER_SEQUENCE statement. |
ALTER_TABLE
A complete
ALTER TABLE statement. |
ALTER_TABLE_ADD
A
ADD clause within an ALTER_TABLE statement. |
ALTER_TABLE_ALTER
A
ALTER clause within an ALTER_TABLE statement. |
ALTER_TABLE_ALTER_DEFAULT
A
ALTER DEFAULT clause within an ALTER_TABLE
statement. |
ALTER_TABLE_DROP
A
DROP clause within an ALTER_TABLE statement. |
ALTER_TABLE_TABLE
A
TABLE clause within an ALTER_TABLE statement. |
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. |
CONSTRAINT |
CREATE_INDEX
A complete
CREATE INDEX statement. |
CREATE_SEQUENCE
A complete
CREATE SEQUENCE statement. |
CREATE_SEQUENCE_SEQUENCE
A
SEQUENCE clause within a CREATE_SEQUENCE statement. |
CREATE_TABLE
A complete
CREATE TABLE statement. |
CREATE_TABLE_AS
An
AS clause within a CREATE_TABLE statement. |
CREATE_TABLE_COLUMNS
A column list within a
CREATE_TABLE statement. |
CREATE_TABLE_NAME
A view name clause within a
CREATE_TABLE statement. |
CREATE_VIEW
A complete
CREATE VIEW statement. |
CREATE_VIEW_AS
An
AS clause within a CREATE_VIEW statement. |
CREATE_VIEW_NAME
A view name clause within a
CREATE_VIEW statement. |
CUSTOM
A custom
QueryPart clause. |
DELETE
A complete
DELETE statement. |
DELETE_DELETE
A
DELETE clause within an DELETE statement. |
DELETE_RETURNING
A
RETURNING clause within an DELETE statement. |
DELETE_WHERE
A
WHERE clause within an DELETE statement. |
DROP_INDEX
A complete
DROP INDEX statement. |
DROP_SEQUENCE
A complete
DROP SEQUENCE statement. |
DROP_SEQUENCE_SEQUENCE
A
SEQUENCE clause within a DROP_SEQUENCE statement. |
DROP_TABLE
A complete
DROP TABLE statement. |
DROP_TABLE_TABLE
A
TABLE clause within an DROP_TABLE statement. |
DROP_VIEW
A complete
DROP VIEW statement. |
DROP_VIEW_TABLE
A
VIEW clause within an DROP_VIEW 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_EXCEPT_ALL
A
EXCEPT ALL 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_INTERSECT_ALL
A
INTERSECT ALL set operation. |
SELECT_INTO
A
INTO clause within a SELECT statement. |
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 |
SEQUENCE |
SEQUENCE_REFERENCE |
TABLE
A table expression.
|
TABLE_ALIAS
A table alias declaration.
|
TABLE_JOIN |
TABLE_JOIN_ANTI_LEFT |
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_SEMI_LEFT |
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. |
WITH
A
WITH clause preceding all sorts of DML statements. |
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 CONSTRAINT
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 SEQUENCE
public static final Clause SEQUENCE_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_SEMI_LEFT
public static final Clause TABLE_JOIN_ANTI_LEFT
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 WITH
WITH
clause preceding all sorts of DML statements.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_INTERSECT_ALL
INTERSECT ALL
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a INTERSECT ALL
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_EXCEPT_ALL
EXCEPT ALL
set operation.
This clause surrounds two or more subselects (see SELECT
)
concatenating them using a EXCEPT ALL
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_INTO
INTO
clause within a SELECT
statement.
This clause surrounds
INTO
keyword
See TABLE
and related clauses for possible table references.
TABLE
public 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 DELETE_RETURNING
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 CREATE_TABLE
CREATE TABLE
statement.public static final Clause CREATE_TABLE_NAME
CREATE_TABLE
statement.
This clause surrounds
public static final Clause CREATE_TABLE_AS
public static final Clause CREATE_TABLE_COLUMNS
CREATE_TABLE
statement.
This clause surrounds
public static final Clause CREATE_VIEW
CREATE VIEW
statement.public static final Clause CREATE_VIEW_NAME
CREATE_VIEW
statement.
This clause surrounds
public static final Clause CREATE_VIEW_AS
public static final Clause CREATE_INDEX
CREATE INDEX
statement.public static final Clause CREATE_SEQUENCE
CREATE SEQUENCE
statement.public static final Clause CREATE_SEQUENCE_SEQUENCE
SEQUENCE
clause within a CREATE_SEQUENCE
statement.
This clause surrounds
CREATE SEQUENCE
keywordspublic static final Clause ALTER_SEQUENCE
ALTER SEQUENCE
statement.public static final Clause ALTER_SEQUENCE_SEQUENCE
SEQUENCE
clause within an ALTER_SEQUENCE
statement.
This clause surrounds
ALTER SEQUENCE
keywordspublic static final Clause ALTER_SEQUENCE_RESTART
RESTART
clause within an ALTER_SEQUENCE
statement.
This clause surrounds
RESTART
keywordWITH
keyword and the new sequence value, if applicable.public static final Clause ALTER_TABLE
ALTER TABLE
statement.public static final Clause ALTER_TABLE_TABLE
TABLE
clause within an ALTER_TABLE
statement.
This clause surrounds
ALTER TABLE
keywordspublic static final Clause ALTER_TABLE_ADD
ADD
clause within an ALTER_TABLE
statement.
This clause surrounds
ADD
keywordspublic static final Clause ALTER_TABLE_ALTER
ALTER
clause within an ALTER_TABLE
statement.
This clause surrounds
ALTER
keywordspublic static final Clause ALTER_TABLE_ALTER_DEFAULT
ALTER DEFAULT
clause within an ALTER_TABLE
statement.
This clause surrounds
public static final Clause ALTER_TABLE_DROP
DROP
clause within an ALTER_TABLE
statement.
This clause surrounds
DROP
keywordspublic static final Clause DROP_VIEW
DROP VIEW
statement.public static final Clause DROP_VIEW_TABLE
VIEW
clause within an DROP_VIEW
statement.
This clause surrounds
DROP VIEW
keywordspublic static final Clause DROP_TABLE
DROP TABLE
statement.public static final Clause DROP_TABLE_TABLE
TABLE
clause within an DROP_TABLE
statement.
This clause surrounds
DROP TABLE
keywordspublic static final Clause DROP_INDEX
DROP INDEX
statement.public static final Clause DROP_SEQUENCE
DROP SEQUENCE
statement.public static final Clause DROP_SEQUENCE_SEQUENCE
SEQUENCE
clause within a DROP_SEQUENCE
statement.
This clause surrounds
DROP SEQUENCE
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 © 2015. All Rights Reserved.