Package org.jdbi.v3.core.result.internal
Class RowViewImpl
- java.lang.Object
-
- org.jdbi.v3.core.result.RowView
-
- org.jdbi.v3.core.result.internal.RowViewImpl
-
public class RowViewImpl extends RowView
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<QualifiedType<?>,ColumnMapper<?>>columnMappersprivate StatementContextctxprivate java.util.Map<java.lang.reflect.Type,RowMapper<?>>rowMappersprivate java.sql.ResultSetrs
-
Constructor Summary
Constructors Constructor Description RowViewImpl(java.sql.ResultSet rs, StatementContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ColumnMapper<?>columnMapperFor(QualifiedType<?> type)<T> TgetColumn(int column, QualifiedType<T> type)Use a qualified column mapper to extract a type from the current ResultSet row.<T> TgetColumn(java.lang.String column, QualifiedType<T> type)Use a qualified column mapper to extract a type from the current ResultSet row.java.lang.ObjectgetRow(java.lang.reflect.Type type)Use a row mapper to extract a type from the current ResultSet row.private RowMapper<?>rowMapperFor(java.lang.reflect.Type type)
-
-
-
Field Detail
-
ctx
private final StatementContext ctx
-
rs
private final java.sql.ResultSet rs
-
rowMappers
private final java.util.Map<java.lang.reflect.Type,RowMapper<?>> rowMappers
-
columnMappers
private final java.util.Map<QualifiedType<?>,ColumnMapper<?>> columnMappers
-
-
Constructor Detail
-
RowViewImpl
public RowViewImpl(java.sql.ResultSet rs, StatementContext ctx)
-
-
Method Detail
-
getRow
public java.lang.Object getRow(java.lang.reflect.Type type)
Use a row mapper to extract a type from the current ResultSet row.
-
rowMapperFor
private RowMapper<?> rowMapperFor(java.lang.reflect.Type type) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getColumn
public <T> T getColumn(int column, QualifiedType<T> type)Use a qualified column mapper to extract a type from the current ResultSet row.
-
getColumn
public <T> T getColumn(java.lang.String column, QualifiedType<T> type)Use a qualified column mapper to extract a type from the current ResultSet row.
-
columnMapperFor
private ColumnMapper<?> columnMapperFor(QualifiedType<?> type)
-
-