Package org.h2.command
Enum Parser.NullConstraintType
- java.lang.Object
-
- java.lang.Enum<Parser.NullConstraintType>
-
- org.h2.command.Parser.NullConstraintType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Parser.NullConstraintType>
- Enclosing class:
- Parser
private static enum Parser.NullConstraintType extends java.lang.Enum<Parser.NullConstraintType>
Enumeration describing null constraints
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_NULL_CONSTRAINT_FOUND
NULL_IS_ALLOWED
NULL_IS_NOT_ALLOWED
-
Constructor Summary
Constructors Modifier Constructor Description private
NullConstraintType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parser.NullConstraintType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Parser.NullConstraintType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_IS_ALLOWED
public static final Parser.NullConstraintType NULL_IS_ALLOWED
-
NULL_IS_NOT_ALLOWED
public static final Parser.NullConstraintType NULL_IS_NOT_ALLOWED
-
NO_NULL_CONSTRAINT_FOUND
public static final Parser.NullConstraintType NO_NULL_CONSTRAINT_FOUND
-
-
Method Detail
-
values
public static Parser.NullConstraintType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Parser.NullConstraintType c : Parser.NullConstraintType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parser.NullConstraintType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-