Enum StatementExceptions.MessageRendering
java.lang.Object
java.lang.Enum<StatementExceptions.MessageRendering>
org.jdbi.v3.core.statement.StatementExceptions.MessageRendering
- All Implemented Interfaces:
Serializable
,Comparable<StatementExceptions.MessageRendering>
,Function<StatementException,
String>
- Enclosing class:
StatementExceptions
public static enum StatementExceptions.MessageRendering
extends Enum<StatementExceptions.MessageRendering>
implements Function<StatementException,String>
Control exception message generation.
-
Enum Constant Summary
Enum ConstantDescriptionInclude all detail.Do not include SQL or parameter information.Include bound parameters but not the SQL.Include a length-limited SQL statement and parameter information. -
Method Summary
Modifier and TypeMethodDescriptionapply
(StatementException exc) 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.
-
Enum Constant Details
-
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. -
DETAIL
Include all detail.
-
-
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
-
apply
- Specified by:
apply
in interfaceFunction<StatementException,
String>
-