Package gudusoft.gsqlparser.resolver2
Enum ScopeType
- All Implemented Interfaces:
Serializable,Comparable<ScopeType>,java.lang.constant.Constable
Enum representing different types of scopes in SQL resolution.
Each scope type defines the visibility rules for names within that scope.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCTE (WITH clause) scopeDELETE statement scopeEmpty scope - base case for delegation chainFROM clause scope - table sourcesGlobal scope - contains session-level objectsGROUP BY clause scopeHAVING clause scopeINSERT statement scopeJOIN operation scopeMERGE statement scopeORDER BY clause scopePL/SQL block scope (Oracle, PostgreSQL PL/pgSQL)SELECT statement scopeSet operation scope (UNION, INTERSECT, EXCEPT)Subquery scopeUPDATE statement scopeWHERE clause scopeWindow function scope -
Method Summary
-
Enum Constant Details
-
EMPTY
Empty scope - base case for delegation chain -
GLOBAL
Global scope - contains session-level objects -
SELECT
SELECT statement scope -
FROM
FROM clause scope - table sources -
WHERE
WHERE clause scope -
GROUP_BY
GROUP BY clause scope -
HAVING
HAVING clause scope -
ORDER_BY
ORDER BY clause scope -
JOIN
JOIN operation scope -
CTE
CTE (WITH clause) scope -
SUBQUERY
Subquery scope -
WINDOW
Window function scope -
SET_OP
Set operation scope (UNION, INTERSECT, EXCEPT) -
INSERT
INSERT statement scope -
UPDATE
UPDATE statement scope -
DELETE
DELETE statement scope -
MERGE
MERGE statement scope -
PLSQL_BLOCK
PL/SQL block scope (Oracle, PostgreSQL PL/pgSQL)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-