public static enum StatementExceptions.MessageRendering extends Enum<StatementExceptions.MessageRendering> implements Function<StatementException,String>
| Enum Constant and Description |
|---|
DETAIL
Include all detail.
|
NONE
Do not include SQL or parameter information.
|
PARAMETERS
Include bound parameters but not the SQL.
|
SHORT_STATEMENT
Include a length-limited SQL statement and parameter information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(StatementException exc) |
protected abstract String |
render(StatementException exc,
StatementContext ctx) |
static StatementExceptions.MessageRendering |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatementExceptions.MessageRendering[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatementExceptions.MessageRendering DETAIL
public static final StatementExceptions.MessageRendering NONE
public static final StatementExceptions.MessageRendering PARAMETERS
public static final StatementExceptions.MessageRendering SHORT_STATEMENT
public String apply(StatementException exc)
apply in interface Function<StatementException,String>protected abstract String render(StatementException exc, StatementContext ctx)
public static StatementExceptions.MessageRendering 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 static StatementExceptions.MessageRendering[] values()
for (StatementExceptions.MessageRendering c : StatementExceptions.MessageRendering.values()) System.out.println(c);
Copyright © 2019. All rights reserved.