Class RowResultWrapper


  • public class RowResultWrapper
    extends Object
    The type Row result wrapper.

    ResultSetWrapper

    Author:
    Iwao AVE!
    • 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 row
        rowMetadata - the row metadata
        configuration - 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
      • getColumnNames

        public List<String> getColumnNames()
        Gets column names.
        Returns:
        the column names
      • getClassNames

        public List<String> getClassNames()
        Gets class names.
        Returns:
        the class names
      • getJavaTypes

        public List<Class> getJavaTypes()
        Gets java types.
        Returns:
        the java types
      • 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 type
        columnName - 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 map
        columnPrefix - the column prefix
        Returns:
        the mapped column names
      • getUnmappedColumnNames

        public List<String> getUnmappedColumnNames​(org.apache.ibatis.mapping.ResultMap resultMap,
                                                   String columnPrefix)
        Gets unmapped column names.
        Parameters:
        resultMap - the result map
        columnPrefix - the column prefix
        Returns:
        the unmapped column names