Class ResultSetWrapper


  • public class ResultSetWrapper
    extends java.lang.Object
    Author:
    Iwao AVE!
    • Constructor Detail

      • ResultSetWrapper

        public ResultSetWrapper​(java.sql.ResultSet rs,
                                Configuration configuration)
                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • getResultSet

        public java.sql.ResultSet getResultSet()
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
      • getClassNames

        public java.util.List<java.lang.String> getClassNames()
      • getJdbcTypes

        public java.util.List<JdbcType> getJdbcTypes()
      • getJdbcType

        public JdbcType getJdbcType​(java.lang.String columnName)
      • getTypeHandler

        public TypeHandler<?> getTypeHandler​(java.lang.Class<?> propertyType,
                                             java.lang.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 -
        columnName -
        Returns:
      • getMappedColumnNames

        public java.util.List<java.lang.String> getMappedColumnNames​(ResultMap resultMap,
                                                                     java.lang.String columnPrefix)
                                                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getUnmappedColumnNames

        public java.util.List<java.lang.String> getUnmappedColumnNames​(ResultMap resultMap,
                                                                       java.lang.String columnPrefix)
                                                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException