Package org.hibernate.engine.jdbc
Class ColumnNameCache
- java.lang.Object
-
- org.hibernate.engine.jdbc.ColumnNameCache
-
public final class ColumnNameCache extends java.lang.ObjectCache of column-name -> column-index resolutions
-
-
Constructor Summary
Constructors Constructor Description ColumnNameCache(int columnCount)Constructs a ColumnNameCache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetIndexForColumnName(java.lang.String columnName, java.sql.ResultSet rs)Resolve the column name/alias to its index
-
-
-
Method Detail
-
getIndexForColumnName
public java.lang.Integer getIndexForColumnName(java.lang.String columnName, java.sql.ResultSet rs) throws java.sql.SQLExceptionResolve the column name/alias to its index- Parameters:
columnName- The name/alias of the columnrs- The ResultSet- Returns:
- The index
- Throws:
java.sql.SQLException- INdicates a problems accessing the underlying JDBC ResultSet
-
-