Class AbstractResultSetAccess
java.lang.Object
org.hibernate.sql.results.jdbc.internal.AbstractResultSetAccess
- All Implemented Interfaces:
ResultSetAccess
,JdbcValuesMetadata
- Direct Known Subclasses:
DeferredResultSetAccess
,DirectResultSetAccess
Base implementation of
ResultSetAccess
.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractResultSetAccess
(SharedSessionContractImplementor persistenceContext) -
Method Summary
Modifier and TypeMethodDescriptionint
Number of values in the underlying resultprotected abstract SessionFactoryImplementor
protected SharedSessionContractImplementor
int
An estimate for the number of results that can be expected for pre-sizing collections.resolveColumnName
(int position) Name of a particular result value by positionint
resolveColumnPosition
(String columnName) Position of a particular result value by name<J> BasicType
<J> resolveType
(int position, JavaType<J> explicitJavaType, TypeConfiguration typeConfiguration) Determine the mapping to use for a particular position in the resultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.results.jdbc.spi.JdbcValuesMetadata
resolveType
Methods inherited from interface org.hibernate.sql.results.jdbc.internal.ResultSetAccess
getResultSet, release
-
Constructor Details
-
Method Details
-
getFactory
-
getPersistenceContext
-
getColumnCount
public int getColumnCount()Description copied from interface:JdbcValuesMetadata
Number of values in the underlying result- Specified by:
getColumnCount
in interfaceJdbcValuesMetadata
-
resolveColumnPosition
Description copied from interface:JdbcValuesMetadata
Position of a particular result value by name- Specified by:
resolveColumnPosition
in interfaceJdbcValuesMetadata
-
resolveColumnName
Description copied from interface:JdbcValuesMetadata
Name of a particular result value by position- Specified by:
resolveColumnName
in interfaceJdbcValuesMetadata
-
getResultCountEstimate
public int getResultCountEstimate()Description copied from interface:ResultSetAccess
An estimate for the number of results that can be expected for pre-sizing collections. May return zero or negative values if the count cannot be reasonably estimated.- Specified by:
getResultCountEstimate
in interfaceResultSetAccess
-
resolveType
public <J> BasicType<J> resolveType(int position, JavaType<J> explicitJavaType, TypeConfiguration typeConfiguration) Description copied from interface:JdbcValuesMetadata
Determine the mapping to use for a particular position in the result- Specified by:
resolveType
in interfaceJdbcValuesMetadata
-