Package org.jdbi.v3.core.statement
Enum EmptyHandling
- All Implemented Interfaces:
- Serializable,- Comparable<EmptyHandling>,- BiConsumer<SqlStatement,- String> 
describes what should be done if the value passed to 
SqlStatement.bindList(java.lang.String, java.lang.Object...) is null or empty- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionRender nothing in the query.Define anullvalue, leaving the result up to theTemplateEngineto decide.Render the keywordnullin the query, useful e.g.Throw IllegalArgumentException.
- 
Method SummaryModifier and TypeMethodDescriptionstatic EmptyHandlingReturns the enum constant of this type with the specified name.static EmptyHandling[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.EnumcompareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.util.function.BiConsumeraccept, andThen
- 
Enum Constant Details- 
BLANKRender nothing in the query. select * from things where x in ()
- 
NULL_KEYWORDRender the keyword nullin the query, useful e.g. in postgresql where "in ()" is invalid syntax.select * from things where x in (null)
- 
DEFINE_NULLDefine a nullvalue, leaving the result up to theTemplateEngineto decide.This value was specifically added to make conditionals work better with 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
 
 
-