Class ColumnNameCache


  • @Deprecated
    public final class ColumnNameCache
    extends Object
    Deprecated.
    (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
    Cache of column-name -> column-index resolutions
    • Constructor Detail

      • ColumnNameCache

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

      • getIndexForColumnName

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