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 TypeMethodDescriptionvoidaccept(SqlAstWalker sqlAstWalker) The underlying expression.Get the type of the expressionGet the extractor that can be used to extract JDBC values for this selectionintGet the position within the "JDBC values" array (0-based).booleanWhether 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, waitMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReferenceMethods inherited from interface org.hibernate.sql.ast.spi.SqlSelection
getJdbcResultSetIndex
-
Constructor Details
-
ResultSetMappingSqlSelection
-
ResultSetMappingSqlSelection
-
-
Method Details
-
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
Description copied from interface:SqlSelectionThe underlying expression.- Specified by:
getExpressionin interfaceSqlSelection
-
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
- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceSqlSelection
-
getSqlExpression
- Specified by:
getSqlExpressionin interfaceSqlExpressionAccess
-