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 inResultSetMappingresolution. Doubles as its ownExpressionas 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 voidaccept(SqlAstWalker sqlAstWalker)ExpressiongetExpression()The underlying expression.MappingModelExpressiblegetExpressionType()Get the type of the expressionValueExtractorgetJdbcValueExtractor()Get the extractor that can be used to extract JDBC values for this selectionExpressiongetSqlExpression()intgetValuesArrayPosition()Get the position within the "JDBC values" array (0-based).booleanisVirtual()Whether this is a virtual or a real selection item.SqlSelectionresolve(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:SqlSelectionGet the extractor that can be used to extract JDBC values for this selection- Specified by:
getJdbcValueExtractorin interfaceSqlSelection
-
resolve
public SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
- Specified by:
resolvein interfaceSqlSelection
-
getValuesArrayPosition
public int getValuesArrayPosition()
Description copied from interface:SqlSelectionGet the position within the "JDBC values" array (0-based). Negative indicates this is not a "real" selection- Specified by:
getValuesArrayPositionin interfaceSqlSelection
-
getExpression
public Expression getExpression()
Description copied from interface:SqlSelectionThe underlying expression.- Specified by:
getExpressionin interfaceSqlSelection
-
getExpressionType
public MappingModelExpressible getExpressionType()
Description copied from interface:SqlSelectionGet the type of the expression- Specified by:
getExpressionTypein interfaceExpression- Specified by:
getExpressionTypein interfaceSqlSelection
-
isVirtual
public boolean isVirtual()
Description copied from interface:SqlSelectionWhether this is a virtual or a real selection item. Virtual selection items are not rendered into the SQL select clause.- Specified by:
isVirtualin interfaceSqlSelection
-
accept
public void accept(SqlAstWalker sqlAstWalker)
- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceSqlSelection
-
getSqlExpression
public Expression getSqlExpression()
- Specified by:
getSqlExpressionin interfaceSqlExpressionAccess
-
-