Top Inners Fields Constructors Methods
org.hibernate.result.internal

public Class OutputsImpl

extends Object
implements Outputs
Class Inheritance
All Implemented Interfaces
org.hibernate.result.Outputs
Known Direct Subclasses
org.hibernate.procedure.internal.ProcedureOutputsImpl
Imports
java.io.Serializable, java.sql.PreparedStatement, .ResultSet, .SQLException, .Types, java.util.ArrayList, .List, java.util.function.Supplier, org.hibernate.JDBCException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.CoreLogging, org.hibernate.procedure.internal.ProcedureCallImpl, .ScalarDomainResultBuilder, org.hibernate.query.procedure.ProcedureParameter, org.hibernate.query.results.ResultSetMapping, org.hibernate.result.Output, .Outputs, org.hibernate.result.spi.ResultContext, org.hibernate.sql.exec.spi.ExecutionContext, org.hibernate.sql.results.NoMoreOutputsException, org.hibernate.sql.results.internal.ResultsHelper, .RowProcessingStateStandardImpl, .RowTransformerStandardImpl, org.hibernate.sql.results.jdbc.internal.DirectResultSetAccess, .JdbcValuesResultSetImpl, .JdbcValuesSourceProcessingStateStandardImpl, org.hibernate.sql.results.jdbc.spi.JdbcValues, .JdbcValuesSourceProcessingOptions, org.hibernate.sql.results.spi.RowReader, org.hibernate.type.descriptor.java.JavaType, org.hibernate.type.descriptor.java.spi.JavaTypeRegistry, org.jboss.logging.Logger, jakarta.persistence.ParameterMode

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
OutputsImpl.CurrentReturnState

Encapsulates the information needed to interpret the current return within a result

Field Summary

Modifier and TypeField and Description
private final ResultContext
private OutputsImpl.CurrentReturnState
private final PreparedStatement
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private OutputsImpl.CurrentReturnState
buildCurrentReturnState(boolean isResultSet)

protected OutputsImpl.CurrentReturnState
buildCurrentReturnState(boolean isResultSet, int updateCount)

protected JDBCException
protected void
private List<?>
protected List<Object>
public Output
getCurrent()

Implements org.hibernate.result.Outputs.getCurrent.

Retrieve the current Output object.
protected ResultContext
private SessionFactoryImplementor
getSessionFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public boolean
goToNext()

Implements org.hibernate.result.Outputs.goToNext.

Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call to getCurrent() return null?
public void
release()

Implements org.hibernate.result.Outputs.release.

Eagerly release any resources held by this Outputs.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final ResultContext context
currentReturnStateback to summary
private OutputsImpl.CurrentReturnState currentReturnState
jdbcStatementback to summary
private final PreparedStatement jdbcStatement
logback to summary
private static final Logger log

Constructor Detail

OutputsImplback to summary
public OutputsImpl(ResultContext context, PreparedStatement jdbcStatement)

Method Detail

buildCurrentReturnStateback to summary
private OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet)
buildCurrentReturnStateback to summary
protected OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet, int updateCount)
convertback to summary
protected JDBCException convert(SQLException e, String message)
executeStatementback to summary
protected void executeStatement()
extractCurrentResultsback to summary
private List<?> extractCurrentResults()
extractResultsback to summary
protected List<Object> extractResults(ResultSet resultSet)
getCurrentback to summary
public Output getCurrent()

Implements org.hibernate.result.Outputs.getCurrent.

Doc from org.hibernate.result.Outputs.getCurrent.

Retrieve the current Output object.

Returns:Output

The current Output object. Can be null

Annotations
@Override
getResultContextback to summary
protected ResultContext getResultContext()
getSessionFactoryback to summary
private SessionFactoryImplementor getSessionFactory()

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

goToNextback to summary
public boolean goToNext()

Implements org.hibernate.result.Outputs.goToNext.

Doc from org.hibernate.result.Outputs.goToNext.

Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call to getCurrent() return null?

Returns:boolean

true if the next call to getCurrent() will return a non-null value.

Annotations
@Override
releaseback to summary
public void release()

Implements org.hibernate.result.Outputs.release.

Doc from org.hibernate.result.Outputs.release.

Eagerly release any resources held by this Outputs.

Annotations
@Override
org.hibernate.result.internal back to summary

protected Class OutputsImpl.CurrentReturnState

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.procedure.internal.ProcedureOutputsImpl.ProcedureCurrentReturnState

Encapsulates the information needed to interpret the current return within a result

Field Summary

Modifier and TypeField and Description
private final boolean
private Output
private final int

Constructor Summary

AccessConstructor and Description
protected
CurrentReturnState(boolean isResultSet, int updateCount)

Method Summary

Modifier and TypeMethod and Description
protected Output
protected Output
protected Output
protected Output
protected Output
protected Output
buildUpdateCountOutput(int updateCount)

public Output
public int
protected boolean
protected boolean
public boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isResultSetback to summary
private final boolean isResultSet
rtnback to summary
private Output rtn
updateCountback to summary
private final int updateCount

Constructor Detail

CurrentReturnStateback to summary
protected CurrentReturnState(boolean isResultSet, int updateCount)

Method Detail

buildExtendedReturnback to summary
protected Output buildExtendedReturn()
buildFunctionReturnback to summary
protected Output buildFunctionReturn()
buildOutputback to summary
protected Output buildOutput()
buildResultSetOutputback to summary
protected Output buildResultSetOutput(List<?> list)
buildResultSetOutputback to summary
protected Output buildResultSetOutput(Supplier<List<?>> listSupplier)
buildUpdateCountOutputback to summary
protected Output buildUpdateCountOutput(int updateCount)
getOutputback to summary
public Output getOutput()
getUpdateCountback to summary
public int getUpdateCount()
hasExtendedReturnsback to summary
protected boolean hasExtendedReturns()
hasFunctionReturnsback to summary
protected boolean hasFunctionReturns()
indicatesMoreOutputsback to summary
public boolean indicatesMoreOutputs()
isResultSetback to summary
public boolean isResultSet()