Package dev.frostlake.metastore.model
Enum Class ReferentialAction
- All Implemented Interfaces:
Serializable,Comparable<ReferentialAction>,Constable
A foreign-key referential action (
ON DELETE / ON UPDATE). Informational only — the engine
records but does not enforce these. getSqlText() is the canonical DDL spelling (with spaces, e.g.
"NO ACTION", not the enum's underscores).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferentialActionfromString(String value) Parse a referential-action value case-insensitively; null/unrecognized → null (i.e. no action specified).The canonical SQL spelling used in DDL and SHOW output (e.g.static ReferentialActionReturns the enum constant of this class with the specified name.static ReferentialAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_ACTION
-
RESTRICT
-
CASCADE
-
SET_NULL
-
SET_DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getSqlText
The canonical SQL spelling used in DDL and SHOW output (e.g."SET NULL"). -
fromString
Parse a referential-action value case-insensitively; null/unrecognized → null (i.e. no action specified). Spaces and underscores are ignored so both spellings are accepted — the CREATE path yields"SET NULL"while the ALTER path'sreferentialOption().getText()yields"SETNULL"; both normalize here.
-