Package org.jdbi.v3.postgres.internal
Class BitStringEnumSetColumnMapper<E extends java.lang.Enum<E>>
- java.lang.Object
-
- org.jdbi.v3.postgres.internal.BitStringEnumSetColumnMapper<E>
-
- All Implemented Interfaces:
ColumnMapper<java.util.EnumSet<E>>
public class BitStringEnumSetColumnMapper<E extends java.lang.Enum<E>> extends java.lang.Object implements ColumnMapper<java.util.EnumSet<E>>
-
-
Field Summary
Fields Modifier and Type Field Description private E[]enumConstantsprivate java.lang.Class<E>enumType
-
Constructor Summary
Constructors Constructor Description BitStringEnumSetColumnMapper(java.lang.Class<E> enumType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<E>map(java.sql.ResultSet r, int columnNumber, StatementContext ctx)Map the given column of the current row of the result set to an Object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.mapper.ColumnMapper
init, map
-
-
-
-
Constructor Detail
-
BitStringEnumSetColumnMapper
BitStringEnumSetColumnMapper(java.lang.Class<E> enumType)
-
-
Method Detail
-
map
public java.util.EnumSet<E> map(java.sql.ResultSet r, int columnNumber, StatementContext ctx) throws java.sql.SQLException
Description copied from interface:ColumnMapperMap the given column of the current row of the result set to an Object. This method should not cause the result set to advance; allow Jdbi to do that, please.- Specified by:
mapin interfaceColumnMapper<E extends java.lang.Enum<E>>- Parameters:
r- the result set being iteratedcolumnNumber- the column number to map (starts at 1)ctx- the statement context- Returns:
- the value to return for this column
- Throws:
java.sql.SQLException- if anything goes wrong go ahead and let this percolate; Jdbi will handle it
-
-