Package no.digipost.jdbc
Class AttributesRowMapper
- java.lang.Object
-
- no.digipost.jdbc.AttributesRowMapper
-
- All Implemented Interfaces:
RowMapper<AttributesMap>
public class AttributesRowMapper extends Object implements RowMapper<AttributesMap>
ARowMapperproducingAttributesMaps.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface no.digipost.jdbc.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>
-
-
Constructor Summary
Constructors Constructor Description AttributesRowMapper(Supplier<AttributesMap.Builder> attributeMapBuilderSupplier, Stream<AttributeMapper<?>> mappers)AttributesRowMapper(Supplier<AttributesMap.Builder> attributeMapBuilderSupplier, AttributeMapper<?>... mappers)AttributesRowMapper(Stream<AttributeMapper<?>> mappers)AttributesRowMapper(AttributeMapper<?>... mappers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesMapmap(ResultSet rs)Obtain the result from the current row of aResultSet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.digipost.jdbc.RowMapper
andThen, combinedWith
-
-
-
-
Constructor Detail
-
AttributesRowMapper
public AttributesRowMapper(AttributeMapper<?>... mappers)
-
AttributesRowMapper
public AttributesRowMapper(Supplier<AttributesMap.Builder> attributeMapBuilderSupplier, AttributeMapper<?>... mappers)
-
AttributesRowMapper
public AttributesRowMapper(Stream<AttributeMapper<?>> mappers)
-
AttributesRowMapper
public AttributesRowMapper(Supplier<AttributesMap.Builder> attributeMapBuilderSupplier, Stream<AttributeMapper<?>> mappers)
-
-
Method Detail
-
map
public AttributesMap map(ResultSet rs) throws SQLException
Description copied from interface:RowMapperObtain the result from the current row of aResultSet.- Specified by:
mapin interfaceRowMapper<AttributesMap>- Parameters:
rs- theResultSet- Returns:
- the result
- Throws:
SQLException- if any error happens when processing theResultSet. May be if the name/label is not valid, if a database access error occurs, or this method is called on a closed result set.
-
-