public enum BigDecimalColumnMapper extends Enum<BigDecimalColumnMapper> implements ResultColumnMapper<BigDecimal>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
BigDecimal |
mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
static BigDecimalColumnMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BigDecimalColumnMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BigDecimalColumnMapper INSTANCE
public BigDecimal mapColumn(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException
ResultColumnMapper
mapColumn
in interface ResultColumnMapper<BigDecimal>
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 BigDecimal mapColumn(ResultSet r, String columnLabel, StatementContext ctx) throws SQLException
ResultColumnMapper
mapColumn
in interface ResultColumnMapper<BigDecimal>
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 BigDecimalColumnMapper 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 BigDecimalColumnMapper[] values()
for (BigDecimalColumnMapper c : BigDecimalColumnMapper.values()) System.out.println(c);
Copyright © 2018. All rights reserved.