Class HStoreColumnMapper
java.lang.Object
org.jdbi.v3.postgres.HStoreColumnMapper
- All Implemented Interfaces:
ColumnMapper<Map<String,String>>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ColumnMapper
init, mapModifier and TypeMethodDescriptiondefault voidinit(ConfigRegistry registry) Allows for initialization of the column mapper instance within a ConfigRegistry scope.map(ResultSet r, String columnLabel, StatementContext ctx) Map the given column of the current row of the result set to an Object.
-
Constructor Details
-
HStoreColumnMapper
public HStoreColumnMapper()
-
-
Method Details
-
map
public Map<String,String> map(ResultSet r, int columnNumber, StatementContext ctx) throws 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<Map<String,String>> - 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:
SQLException- if anything goes wrong go ahead and let this percolate; Jdbi will handle it
-