|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.services.persondir.support.jdbc.ColumnMapParameterizedRowMapper
public class ColumnMapParameterizedRowMapper
JDK5 clone of ColumnMapRowMapper
| Constructor Summary | |
|---|---|
ColumnMapParameterizedRowMapper()
|
|
ColumnMapParameterizedRowMapper(boolean ignoreNull)
|
|
| Method Summary | |
|---|---|
protected Map<String,Object> |
createColumnMap(int columnCount)
Create a Map instance to be used as column map. |
protected String |
getColumnKey(String columnName)
Determine the key to use for the given column in the column Map. |
protected Object |
getColumnValue(ResultSet rs,
int index)
Retrieve a JDBC object value for the specified column. |
Map<String,Object> |
mapRow(ResultSet rs,
int rowNum)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnMapParameterizedRowMapper()
public ColumnMapParameterizedRowMapper(boolean ignoreNull)
| Method Detail |
|---|
public final Map<String,Object> mapRow(ResultSet rs,
int rowNum)
throws SQLException
mapRow in interface org.springframework.jdbc.core.RowMappermapRow in interface org.springframework.jdbc.core.simple.ParameterizedRowMapper<Map<String,Object>>SQLExceptionprotected Map<String,Object> createColumnMap(int columnCount)
columnCount - the column count, to be used as initial capacity for the Map
protected String getColumnKey(String columnName)
columnName - the column name as returned by the ResultSet
ResultSetMetaData.getColumnName(int)
protected Object getColumnValue(ResultSet rs,
int index)
throws SQLException
getObject method. Additionally, this implementation includes
a "hack" to get around Oracle returning a non standard object for their TIMESTAMP datatype.
rs - is the ResultSet holding the dataindex - is the column index
SQLExceptionJdbcUtils.getResultSetValue(java.sql.ResultSet, int, java.lang.Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||