Class RowResultWrapper
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.result.RowResultWrapper
-
public class RowResultWrapper extends Object
The type Row result wrapper.ResultSetWrapper- Author:
- Iwao AVE!
-
-
Constructor Summary
Constructors Constructor Description RowResultWrapper(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, R2dbcMybatisConfiguration configuration)Instantiates a new Row result wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getClassNames()Gets class names.List<String>getColumnNames()Gets column names.List<Class>getJavaTypes()Gets java types.List<String>getMappedColumnNames(org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix)Gets mapped column names.io.r2dbc.spi.RowgetRow()Gets row.io.r2dbc.spi.RowMetadatagetRowMetadata()Gets row metadata.org.apache.ibatis.type.TypeHandler<?>getTypeHandler(Class<?> propertyType, String columnName)Gets the type handler to use when reading the result set.List<String>getUnmappedColumnNames(org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix)Gets unmapped column names.
-
-
-
Constructor Detail
-
RowResultWrapper
public RowResultWrapper(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, R2dbcMybatisConfiguration configuration)Instantiates a new Row result wrapper.- Parameters:
row- the rowrowMetadata- the row metadataconfiguration- the configuration
-
-
Method Detail
-
getRow
public io.r2dbc.spi.Row getRow()
Gets row.- Returns:
- the row
-
getRowMetadata
public io.r2dbc.spi.RowMetadata getRowMetadata()
Gets row metadata.- Returns:
- the row metadata
-
getTypeHandler
public org.apache.ibatis.type.TypeHandler<?> getTypeHandler(Class<?> propertyType, String columnName)
Gets the type handler to use when reading the result set. Tries to get from the TypeHandlerRegistry by searching for the property type. If not found it gets the column JDBC type and tries to get a handler for it.- Parameters:
propertyType- the property typecolumnName- the column name- Returns:
- the type handler
-
getMappedColumnNames
public List<String> getMappedColumnNames(org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix)
Gets mapped column names.- Parameters:
resultMap- the result mapcolumnPrefix- the column prefix- Returns:
- the mapped column names
-
-