public static enum BindList.EmptyHandling extends Enum<BindList.EmptyHandling>
| Enum Constant and Description |
|---|
NULL
Deprecated.
vaguely named in light of new additions, use
NULL_STRING instead |
NULL_STRING
Output "null" (without quotes, as keyword), useful e.g.
|
NULL_VALUE
Define a
null value, leaving the resulting query text up to the TemplateEngine to decide. |
THROW
Throw IllegalArgumentException.
|
VOID
Output "" (without quotes, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
void |
define(SqlStatement stmt,
String name) |
static BindList.EmptyHandling |
valueOf(String name)
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.
|
public static final BindList.EmptyHandling VOID
Output "" (without quotes, i.e. nothing).
select * from things where x in ()@Deprecated public static final BindList.EmptyHandling NULL
NULL_STRING insteadOutput "null" (without quotes, as keyword), useful e.g. in postgresql where "in ()" is invalid syntax.
select * from things where x in (null)public static final BindList.EmptyHandling NULL_STRING
Output "null" (without quotes, as keyword), useful e.g. in postgresql where "in ()" is invalid syntax.
select * from things where x in (null)public static final BindList.EmptyHandling NULL_VALUE
Define a null value, leaving the resulting query text up to the TemplateEngine to decide.
StringTemplate.public static final BindList.EmptyHandling THROW
public static BindList.EmptyHandling[] values()
for (BindList.EmptyHandling c : BindList.EmptyHandling.values()) System.out.println(c);
public static BindList.EmptyHandling valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void define(SqlStatement stmt, String name)
Copyright © 2019. All rights reserved.