Class ColumnNameCache


  • @Deprecated
    public final class ColumnNameCache
    extends java.lang.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 Summary

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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Integer getIndexForColumnName​(java.lang.String columnName, java.sql.ResultSet rs)
      Deprecated.
      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)
        Deprecated.
        Constructs a ColumnNameCache
        Parameters:
        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
        Deprecated.
        Resolve the column name/alias to its index
        Parameters:
        columnName - The name/alias of the column
        rs - The ResultSet
        Returns:
        The index
        Throws:
        java.sql.SQLException - INdicates a problems accessing the underlying JDBC ResultSet