Class SqlSelectionImpl
- java.lang.Object
-
- org.hibernate.sql.results.internal.SqlSelectionImpl
-
- All Implemented Interfaces:
SqlExpressionAccess,SqlSelection,SqlAstNode
- Direct Known Subclasses:
ResolvedSqlSelection
public class SqlSelectionImpl extends Object implements SqlSelection, SqlExpressionAccess
-
-
Constructor Summary
Constructors Constructor Description SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, boolean virtual)SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, JavaType<?> jdbcJavaType, Expression sqlExpression, boolean virtual)SqlSelectionImpl(int valuesArrayPosition, Expression sqlExpression)SqlSelectionImpl(Expression sqlExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker interpreter)booleanequals(Object o)ExpressiongetExpression()The underlying expression.JdbcMappingContainergetExpressionType()Get the type of the expressionintgetJdbcResultSetIndex()Get the JDBC position (1-based)ValueExtractorgetJdbcValueExtractor()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).inthashCode()booleanisVirtual()Whether this is a virtual or a real selection item.SqlSelectionresolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
-
-
-
Constructor Detail
-
SqlSelectionImpl
public SqlSelectionImpl(Expression sqlExpression)
-
SqlSelectionImpl
public SqlSelectionImpl(int valuesArrayPosition, Expression sqlExpression)
-
SqlSelectionImpl
public SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, boolean virtual)
-
SqlSelectionImpl
public SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, JavaType<?> jdbcJavaType, Expression sqlExpression, boolean virtual)
-
-
Method Detail
-
getExpression
public Expression getExpression()
Description copied from interface:SqlSelectionThe underlying expression.- Specified by:
getExpressionin interfaceSqlSelection
-
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
-
getJdbcResultSetIndex
public int getJdbcResultSetIndex()
Description copied from interface:SqlSelectionGet the JDBC position (1-based)- Specified by:
getJdbcResultSetIndexin 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
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:SqlSelectionGet the type of the expression- 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
-
getSqlExpression
public Expression getSqlExpression()
- Specified by:
getSqlExpressionin interfaceSqlExpressionAccess
-
accept
public void accept(SqlAstWalker interpreter)
- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceSqlSelection
-
resolve
public SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
- Specified by:
resolvein interfaceSqlSelection
-
-