Class DeferredResultSetAccess
- java.lang.Object
-
- org.hibernate.sql.results.jdbc.internal.AbstractResultSetAccess
-
- org.hibernate.sql.results.jdbc.internal.DeferredResultSetAccess
-
- All Implemented Interfaces:
ResultSetAccess,JdbcValuesMetadata
public class DeferredResultSetAccess extends AbstractResultSetAccess
-
-
Constructor Summary
Constructors Constructor Description DeferredResultSetAccess(JdbcOperationQuerySelect jdbcSelect, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext, JdbcSelectExecutor.StatementCreator statementCreator, int resultCountEstimate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindParameters(PreparedStatement preparedStatement)protected LockModedetermineFollowOnLockMode(LockOptions lockOptions)SessionFactoryImplementorgetFactory()StringgetFinalSql()LimitgetLimit()LimitHandlergetLimitHandler()intgetResultCountEstimate()The estimate for the amount of results that can be expected for pre-sizing collections.ResultSetgetResultSet()voidrelease()protected voidskipRows(ResultSet resultSet)booleanusesFollowOnLocking()protected ResultSetwrapResultSet(ResultSet resultSet)-
Methods inherited from class org.hibernate.sql.results.jdbc.internal.AbstractResultSetAccess
getColumnCount, getMetaData, getPersistenceContext, resolveColumnName, resolveColumnPosition
-
Methods 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
resolveType
-
-
-
-
Constructor Detail
-
DeferredResultSetAccess
public DeferredResultSetAccess(JdbcOperationQuerySelect jdbcSelect, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext, JdbcSelectExecutor.StatementCreator statementCreator, int resultCountEstimate)
-
-
Method Detail
-
getLimitHandler
public LimitHandler getLimitHandler()
-
getLimit
public Limit getLimit()
-
getResultSet
public ResultSet getResultSet()
-
getFactory
public SessionFactoryImplementor getFactory()
-
getFinalSql
public String getFinalSql()
-
usesFollowOnLocking
public boolean usesFollowOnLocking()
-
bindParameters
protected void bindParameters(PreparedStatement preparedStatement) throws SQLException
- Throws:
SQLException
-
skipRows
protected void skipRows(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
wrapResultSet
protected ResultSet wrapResultSet(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
determineFollowOnLockMode
protected LockMode determineFollowOnLockMode(LockOptions lockOptions)
-
release
public void release()
-
getResultCountEstimate
public int getResultCountEstimate()
Description copied from interface:ResultSetAccessThe estimate for the amount of results that can be expected for pre-sizing collections. May return zero or negative values if the count can not be reasonably estimated.
-
-