Package org.h2.engine
Enum Class NullsDistinct
- All Implemented Interfaces:
Serializable,Comparable<NullsDistinct>,Constable,org.h2.util.HasSQL
Determines how rows with
NULL values in indexed columns are handled
in unique indexes, unique constraints, or by unique predicate.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNULLvalues of columns are distinct only if all columns have null values.NULLvalues of columns are distinct.NULLvalues of columns are never distinct. -
Field Summary
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS -
Method Summary
Modifier and TypeMethodDescriptiongetSQL(StringBuilder builder, int sqlFlags) Appends the SQL statement of this object to the specified builder.static NullsDistinctReturns the enum constant of this class with the specified name.static NullsDistinct[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
Enum Constant Details
-
DISTINCT
NULLvalues of columns are distinct. -
ALL_DISTINCT
NULLvalues of columns are distinct only if all columns have null values. -
NOT_DISTINCT
NULLvalues of columns are never distinct.
-
-
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
-
getSQL
Description copied from interface:org.h2.util.HasSQLAppends the SQL statement of this object to the specified builder.- Specified by:
getSQLin interfaceorg.h2.util.HasSQL- Parameters:
builder- string buildersqlFlags- formatting flags- Returns:
- the specified string builder
-