Class ResultSetMappingSqlSelection
java.lang.Object
org.hibernate.query.results.internal.ResultSetMappingSqlSelection
- All Implemented Interfaces:
SqlExpressionAccess
,SqlSelection
,SqlSelectionProducer
,Expression
,SqlAstNode
public class ResultSetMappingSqlSelection
extends Object
implements SqlSelection, Expression, SqlExpressionAccess
SqlSelection implementation used while building
ResultSetMapping references.
Doubles as its own
Expression
as well.-
Constructor Summary
ConstructorsConstructorDescriptionResultSetMappingSqlSelection
(int valuesArrayPosition, BasicValuedMapping valueMapping) ResultSetMappingSqlSelection
(int valuesArrayPosition, JdbcMapping jdbcMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker sqlAstWalker) The underlying expression.Get the type of the expressionGet the extractor that can be used to extract JDBC values for this selectionint
Get the position within the "JDBC values" array (0-based).boolean
Whether this is a virtual or a real selection item.resolve
(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory) 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.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
Methods inherited from interface org.hibernate.sql.ast.spi.SqlSelection
getJdbcResultSetIndex
-
Constructor Details
-
ResultSetMappingSqlSelection
-
ResultSetMappingSqlSelection
-
-
Method Details
-
getJdbcValueExtractor
Description copied from interface:SqlSelection
Get the extractor that can be used to extract JDBC values for this selection- Specified by:
getJdbcValueExtractor
in interfaceSqlSelection
-
resolve
public SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory) - Specified by:
resolve
in interfaceSqlSelection
-
getValuesArrayPosition
public int getValuesArrayPosition()Description copied from interface:SqlSelection
Get the position within the "JDBC values" array (0-based). Negative indicates this is not a "real" selection- Specified by:
getValuesArrayPosition
in interfaceSqlSelection
-
getExpression
Description copied from interface:SqlSelection
The underlying expression.- Specified by:
getExpression
in interfaceSqlSelection
-
getExpressionType
Description copied from interface:SqlSelection
Get the type of the expression- Specified by:
getExpressionType
in interfaceExpression
- Specified by:
getExpressionType
in interfaceSqlSelection
-
isVirtual
public boolean isVirtual()Description copied from interface:SqlSelection
Whether this is a virtual or a real selection item. Virtual selection items are not rendered into the SQL select clause.- Specified by:
isVirtual
in interfaceSqlSelection
-
accept
- Specified by:
accept
in interfaceSqlAstNode
- Specified by:
accept
in interfaceSqlSelection
-
getSqlExpression
- Specified by:
getSqlExpression
in interfaceSqlExpressionAccess
-