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 SummaryEnum ConstantsEnum ConstantDescriptionDeprecated.Define "null", useful e.g.Definenull, leaving the result up to theTemplateEngineto decide.Throw IllegalArgumentException.Define "".
- 
Method SummaryModifier and TypeMethodDescriptionvoiddefine(SqlStatement stmt, String name) Deprecated.legacy internal APIstatic BindList.EmptyHandlingReturns 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- 
VOIDDefine "". select * from things where x in ()
- 
NULLDeprecated.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_STRINGDefine "null", useful e.g. in postgresql where "in ()" is invalid syntax. select * from things where x in (null)
- 
NULL_VALUEDefine This value was specifically added to make conditionals work better withnull, leaving the result up to theTemplateEngineto decide.StringTemplate.
- 
THROWThrow IllegalArgumentException.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
defineDeprecated.legacy internal API
- 
getCoreImpl
 
- 
NULL_STRINGinstead