Package org.jdbi.v3.sqlobject.customizer
Enum BindList.EmptyHandling
- All Implemented Interfaces:
Serializable
,Comparable<BindList.EmptyHandling>
- Enclosing class:
BindList
describes what needs to be done if the passed argument is null or empty
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Define "null", useful e.g. in postgresql where "in ()" is invalid syntax.Definenull
, leaving the result up to theTemplateEngine
to decide.Throw IllegalArgumentException.Define "". -
Method Summary
Modifier and TypeMethodDescriptionvoid
define
(SqlStatement stmt, String name) Deprecated.legacy internal APIstatic BindList.EmptyHandling
Returns the enum constant of this type with the specified name.static BindList.EmptyHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VOID
Define "".
select * from things where x in ()
-
NULL
Deprecated.vaguely named in light of new additions, useNULL_STRING
insteadDefine "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 theTemplateEngine
to decide.StringTemplate
. -
THROW
Throw IllegalArgumentException.
-
-
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
-
define
Deprecated.legacy internal API -
getCoreImpl
-
NULL_STRING
instead