Class AttributeMapper
- java.lang.Object
-
- org.wildfly.security.auth.realm.jdbc.mapper.AttributeMapper
-
- All Implemented Interfaces:
ColumnMapper
public class AttributeMapper extends Object implements ColumnMapper
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description AttributeMapper(int index, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Object
map(ResultSet resultSet, Supplier<Provider[]> providers)
Maps the givenResultSet
to some internal representation.
-
-
-
Field Detail
-
index
private final int index
-
name
private final String name
-
-
Constructor Detail
-
AttributeMapper
public AttributeMapper(int index, String name)
-
-
Method Detail
-
map
public Object map(ResultSet resultSet, Supplier<Provider[]> providers) throws SQLException
Description copied from interface:ColumnMapper
Maps the givenResultSet
to some internal representation.- Specified by:
map
in interfaceColumnMapper
- Parameters:
resultSet
- the result set previously created based on a queryproviders
- the providers to use if required- Returns:
- the resulting object mapped from the given
ResultSet
- Throws:
SQLException
- if any error occurs when manipulating the givenResultSet
-
getName
public String getName()
-
-