Class ColumnNameCache

  • public final class ColumnNameCache
    extends java.lang.Object
    Cache of column-name -> column-index resolutions
    • Constructor Summary

      Constructor Description
      ColumnNameCache​(int columnCount)
      Constructs a ColumnNameCache
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getIndexForColumnName​(java.lang.String columnName, java.sql.ResultSet rs)
      Resolve the column name/alias to its index
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColumnNameCache

        public ColumnNameCache​(int columnCount)
        Constructs a ColumnNameCache
        columnCount - The number of columns to be cached.
    • Method Detail

      • getIndexForColumnName

        public java.lang.Integer getIndexForColumnName​(java.lang.String columnName,
                                                       java.sql.ResultSet rs)
                                                throws java.sql.SQLException
        Resolve the column name/alias to its index
        columnName - The name/alias of the column
        rs - The ResultSet
        The index
        java.sql.SQLException - INdicates a problems accessing the underlying JDBC ResultSet