Package org.hibernate.sql.ast.spi
Interface SqlSelection
- All Superinterfaces:
SqlAstNode
- All Known Implementing Classes:
ResolvedSqlSelection
,ResultSetMappingSqlSelection
,SqlSelectionImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker sqlAstWalker) The underlying expression.Get the type of the expressiondefault int
Get the JDBC position (1-based)Get 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)
-
Method Details
-
getJdbcValueExtractor
ValueExtractor getJdbcValueExtractor()Get the extractor that can be used to extract JDBC values for this selection -
getValuesArrayPosition
int getValuesArrayPosition()Get the position within the "JDBC values" array (0-based). Negative indicates this is not a "real" selection -
getJdbcResultSetIndex
default int getJdbcResultSetIndex()Get the JDBC position (1-based) -
getExpression
Expression getExpression()The underlying expression. -
getExpressionType
JdbcMappingContainer getExpressionType()Get the type of the expression -
isVirtual
boolean isVirtual()Whether this is a virtual or a real selection item. Virtual selection items are not rendered into the SQL select clause. -
accept
- Specified by:
accept
in interfaceSqlAstNode
-
resolve
SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
-