Class ResultSetWrapper


  • public class ResultSetWrapper
    extends java.lang.Object
    Author:
    Iwao AVE!
    • Method Summary

      Modifier and Type Method Description
      java.util.List<java.lang.String> getClassNames()  
      java.util.List<java.lang.String> getColumnNames()  
      JdbcType getJdbcType​(java.lang.String columnName)  
      java.util.List<JdbcType> getJdbcTypes()  
      java.util.List<java.lang.String> getMappedColumnNames​(ResultMap resultMap, java.lang.String columnPrefix)  
      java.sql.ResultSet getResultSet()  
      TypeHandler<?> getTypeHandler​(java.lang.Class<?> propertyType, java.lang.String columnName)
      Gets the type handler to use when reading the result set.
      java.util.List<java.lang.String> getUnmappedColumnNames​(ResultMap resultMap, java.lang.String columnPrefix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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