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 TypeMethodDescriptionintNumber of values in the underlying resultprotected abstract SessionFactoryImplementorprotected SharedSessionContractImplementorintAn estimate for the number of results that can be expected for pre-sizing collections.resolveColumnName(int position) Name of a particular result value by positionintresolveColumnPosition(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, waitMethods inherited from interface org.hibernate.sql.results.jdbc.spi.JdbcValuesMetadata
resolveTypeMethods 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:JdbcValuesMetadataNumber of values in the underlying result- Specified by:
getColumnCountin interfaceJdbcValuesMetadata
-
resolveColumnPosition
Description copied from interface:JdbcValuesMetadataPosition of a particular result value by name- Specified by:
resolveColumnPositionin interfaceJdbcValuesMetadata
-
resolveColumnName
Description copied from interface:JdbcValuesMetadataName of a particular result value by position- Specified by:
resolveColumnNamein interfaceJdbcValuesMetadata
-
getResultCountEstimate
public int getResultCountEstimate()Description copied from interface:ResultSetAccessAn 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:
getResultCountEstimatein interfaceResultSetAccess
-
resolveType
public <J> BasicType<J> resolveType(int position, JavaType<J> explicitJavaType, TypeConfiguration typeConfiguration) Description copied from interface:JdbcValuesMetadataDetermine the mapping to use for a particular position in the result- Specified by:
resolveTypein interfaceJdbcValuesMetadata
-