T
- the BO to be returnedpublic abstract class CustomRowMapper<T> extends Object implements org.springframework.jdbc.core.simple.ParameterizedRowMapper<T>, Serializable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
CustomRowMapper() |
Modifier and Type | Method and Description |
---|---|
protected static String |
blobToString(Blob blob)
Accepts the value of a blob attribute and returns its value represented
as a String.
|
protected static BigDecimal |
getBigDecimal(ResultSet rs,
String columnName)
Returns the value of the given column from the given result set
converted to BigDecimal.
|
protected static Double |
getDouble(ResultSet rs,
String columnName)
Returns the value of the given column from the given result set
converted to double.
|
protected static Integer |
getInteger(ResultSet rs,
String columnName)
Returns the value of the given column from the given result set
converted to integer.
|
protected static String blobToString(Blob blob) throws SQLException
blob
- SQLException
protected static Double getDouble(ResultSet rs, String columnName) throws SQLException
rs
- columnName
- SQLException
protected static BigDecimal getBigDecimal(ResultSet rs, String columnName) throws SQLException
rs
- columnName
- SQLException
protected static Integer getInteger(ResultSet rs, String columnName) throws SQLException
rs
- columnName
- SQLException
Copyright © 2013. All Rights Reserved.