Package org.hibernate.query.results
Class ResultSetMappingSqlSelection
- java.lang.Object
-
- org.hibernate.query.results.ResultSetMappingSqlSelection
-
- All Implemented Interfaces:
SqlExpressionAccess
,SqlSelection
,SqlSelectionProducer
,Expression
,SqlAstNode
public class ResultSetMappingSqlSelection extends Object implements SqlSelection, Expression, SqlExpressionAccess
SqlSelection used inResultSetMapping
resolution. Doubles as its ownExpression
as well.
-
-
Constructor Summary
Constructors Constructor Description ResultSetMappingSqlSelection(int valuesArrayPosition, BasicValuedMapping valueMapping)
ResultSetMappingSqlSelection(int valuesArrayPosition, JdbcMapping jdbcMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlAstWalker)
Expression
getExpression()
The underlying expression.MappingModelExpressible
getExpressionType()
Get the type of the expressionValueExtractor
getJdbcValueExtractor()
Get the extractor that can be used to extract JDBC values for this selectionExpression
getSqlExpression()
int
getValuesArrayPosition()
Get the position within the "JDBC values" array (0-based).boolean
isVirtual()
Whether this is a virtual or a real selection item.SqlSelection
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 Detail
-
ResultSetMappingSqlSelection
public ResultSetMappingSqlSelection(int valuesArrayPosition, BasicValuedMapping valueMapping)
-
ResultSetMappingSqlSelection
public ResultSetMappingSqlSelection(int valuesArrayPosition, JdbcMapping jdbcMapping)
-
-
Method Detail
-
getJdbcValueExtractor
public ValueExtractor 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
public Expression getExpression()
Description copied from interface:SqlSelection
The underlying expression.- Specified by:
getExpression
in interfaceSqlSelection
-
getExpressionType
public MappingModelExpressible 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
public void accept(SqlAstWalker sqlAstWalker)
- Specified by:
accept
in interfaceSqlAstNode
- Specified by:
accept
in interfaceSqlSelection
-
getSqlExpression
public Expression getSqlExpression()
- Specified by:
getSqlExpression
in interfaceSqlExpressionAccess
-
-