类 ColumnNameCache


  • public final class ColumnNameCache
    extends Object
    Cache of column-name -> column-index resolutions
    作者:
    Steve Ebersole
    • 构造器详细资料

      • ColumnNameCache

        public ColumnNameCache​(int columnCount)
        Constructs a ColumnNameCache
        参数:
        columnCount - The number of columns to be cached.
    • 方法详细资料

      • getIndexForColumnName

        public Integer getIndexForColumnName​(String columnName,
                                             ResultSet rs)
                                      throws SQLException
        Resolve the column name/alias to its index
        参数:
        columnName - The name/alias of the column
        rs - The ResultSet
        返回:
        The index
        抛出:
        SQLException - INdicates a problems accessing the underlying JDBC ResultSet