R - The type of the Attribute and the result yielded from the ColumnMapperpublic final class AttributeMapper<R> extends Object implements RowMapper<R>
ColumnMapper with an Attribute, and
is used internally by an AttributesRowMapper to produce an AttributesMap where
the values can be accessed in a type-safe manner.
An AttributeMapper is constructed from an existing ColumnMapper by calling
.forAttribute(..).
Usually, instances are directly given to a constructor of an AttributesRowMapper, but can
also be used as a standalone RowMapper.
RowMapper.Decupled<T,U,V,W,X,Z,A,B,C,D>, RowMapper.Hextupled<T,U,V,W,X,Z>, RowMapper.Nonupled<T,U,V,W,X,Z,A,B,C>, RowMapper.Octupled<T,U,V,W,X,Z,A,B>, RowMapper.Pentupled<T,U,V,W,X>, RowMapper.Quadrupled<T,U,V,W>, RowMapper.Septupled<T,U,V,W,X,Z,A>, RowMapper.Tripled<T,U,V>, RowMapper.Tupled<T,U>| Modifier and Type | Method and Description |
|---|---|
R |
fromResultSet(ResultSet resultSet,
int rowNum)
For the current row of the given
ResultSet, map the specific column(s) this AttributeMapper is set to handle. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, combinedWith, fromResultSet, of, ofpublic R fromResultSet(ResultSet resultSet, int rowNum) throws SQLException
ResultSet, map the specific column(s) this AttributeMapper is set to handle.
The mapper does not move the cursor of the ResultSet.fromResultSet in interface RowMapper<R>resultSet - the ResultSet to retrieve necessary data from in order to yield
the result of type R.rowNum - the current row of the ResultSet cursor. Not used by this mapper.SQLExceptionCopyright © 2016 Digipost. All rights reserved.