Package org.jdbi.v3.sqlobject.customizer
Enum Class BindList.EmptyHandling
- All Implemented Interfaces:
Serializable,Comparable<BindList.EmptyHandling>,Constable
- Enclosing class:
BindList
describes what needs to be done if the passed argument is null or empty
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Define "null", useful e.g. in postgresql where "in ()" is invalid syntax.Definenull, leaving the result up to theTemplateEngineto decide.Throw IllegalArgumentException.Define "". -
Method Summary
Modifier and TypeMethodDescriptionvoiddefine(SqlStatement stmt, String name) Deprecated, for removal: This API element is subject to removal in a future version.legacy internal APIstatic BindList.EmptyHandlingReturns the enum constant of this class with the specified name.static BindList.EmptyHandling[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VOID
Define "".
select * from things where x in () -
NULL
Deprecated, for removal: This API element is subject to removal in a future version.vaguely named in light of new additions, useNULL_STRINGinsteadDefine "null", useful e.g. in postgresql where "in ()" is invalid syntax.
select * from things where x in (null) -
NULL_STRING
Define "null", useful e.g. in postgresql where "in ()" is invalid syntax.
select * from things where x in (null) -
NULL_VALUE
Define
This value was specifically added to make conditionals work better withnull, leaving the result up to theTemplateEngineto decide.StringTemplate. -
THROW
Throw IllegalArgumentException.
-
-
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
-
define
Deprecated, for removal: This API element is subject to removal in a future version.legacy internal API -
getCoreImpl
-
NULL_STRINGinstead