public enum CharColumnMapper extends Enum<CharColumnMapper> implements ResultColumnMapper<Character>
char or Character.| Enum Constant and Description |
|---|
PRIMITIVE
Map to
char. |
WRAPPER
Map to
Character. |
| Modifier and Type | Method and Description |
|---|---|
Character |
charFromString(String s) |
Character |
mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
Character |
mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
static CharColumnMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CharColumnMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharColumnMapper PRIMITIVE
char. Nulls and empty strings are silently replaced with a null char '\0'.public static final CharColumnMapper WRAPPER
Character. Nulls and empty strings are replaced with a null reference.public Character mapColumn(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException
ResultColumnMappermapColumn in interface ResultColumnMapper<Character>r - the result set being iteratedcolumnNumber - the column number to map (starts at 1)SQLException - if anything goes wrong go ahead and let this percolate, jDBI will handle itpublic Character mapColumn(ResultSet r, String columnLabel, StatementContext ctx) throws SQLException
ResultColumnMappermapColumn in interface ResultColumnMapper<Character>r - the result set being iteratedcolumnLabel - the column label to mapSQLException - if anything goes wrong go ahead and let this percolate, jDBI will handle itpublic static CharColumnMapper 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 CharColumnMapper[] values()
for (CharColumnMapper c : CharColumnMapper.values()) System.out.println(c);
Copyright © 2018. All rights reserved.