org.hibernate.engine.jdbc
Class ColumnNameCache
java.lang.Object
org.hibernate.engine.jdbc.ColumnNameCache
public final class ColumnNameCache
- extends Object
Cache of column-name -> column-index resolutions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnNameCache
public ColumnNameCache(int columnCount)
getIndexForColumnName
public Integer getIndexForColumnName(String columnName,
ResultSet rs)
throws SQLException
- Resolve the column name/alias to its index
- Parameters:
columnName
- The name/alias of the columnrs
- The ResultSet
- Returns:
- The index
- Throws:
SQLException
- Indicates a problems accessing the underlying JDBC ResultSet
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.