Package org.hibernate.sql.ast.spi
Interface SqlSelection
-
- All Superinterfaces:
SqlAstNode
- All Known Implementing Classes:
ResolvedSqlSelection
,ResultSetMappingSqlSelection
,SqlSelectionImpl
public interface SqlSelection extends SqlAstNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlAstWalker)
Expression
getExpression()
The underlying expression.JdbcMappingContainer
getExpressionType()
Get the type of the expressiondefault int
getJdbcResultSetIndex()
Get the JDBC position (1-based)ValueExtractor
getJdbcValueExtractor()
Get the extractor that can be used to extract JDBC values for this selectionint
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)
-
-
-
Method Detail
-
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
void accept(SqlAstWalker sqlAstWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
resolve
SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
-
-