Class SqlSelectionImpl
java.lang.Object
org.hibernate.sql.results.internal.SqlSelectionImpl
- All Implemented Interfaces:
SqlExpressionAccess
,SqlSelection
,SqlAstNode
- Direct Known Subclasses:
ResolvedSqlSelection
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSqlSelectionImpl
(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, boolean virtual) protected
SqlSelectionImpl
(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, JavaType<?> jdbcJavaType, boolean virtual, ValueExtractor valueExtractor) SqlSelectionImpl
(int jdbcPosition, int valuesArrayPosition, JavaType<?> jdbcJavaType, Expression sqlExpression, boolean virtual) SqlSelectionImpl
(int valuesArrayPosition, Expression sqlExpression) SqlSelectionImpl
(Expression sqlExpression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker interpreter) boolean
The underlying expression.Get the type of the expressionint
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).int
hashCode()
boolean
Whether this is a virtual or a real selection item.boolean
resolve
(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory)
-
Constructor Details
-
SqlSelectionImpl
-
SqlSelectionImpl
-
SqlSelectionImpl
public SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, boolean virtual) -
SqlSelectionImpl
public SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, JavaType<?> jdbcJavaType, Expression sqlExpression, boolean virtual) -
SqlSelectionImpl
protected SqlSelectionImpl(int jdbcPosition, int valuesArrayPosition, Expression sqlExpression, JavaType<?> jdbcJavaType, boolean virtual, ValueExtractor valueExtractor)
-
-
Method Details
-
getExpression
Description copied from interface:SqlSelection
The underlying expression.- Specified by:
getExpression
in interfaceSqlSelection
-
getJdbcValueExtractor
Description copied from interface:SqlSelection
Get the extractor that can be used to extract JDBC values for this selection- Specified by:
getJdbcValueExtractor
in interfaceSqlSelection
-
getJdbcResultSetIndex
public int getJdbcResultSetIndex()Description copied from interface:SqlSelection
Get the JDBC position (1-based)- Specified by:
getJdbcResultSetIndex
in interfaceSqlSelection
-
getValuesArrayPosition
public int getValuesArrayPosition()Description copied from interface:SqlSelection
Get the position within the "JDBC values" array (0-based). Negative indicates this is not a "real" selection- Specified by:
getValuesArrayPosition
in interfaceSqlSelection
-
getExpressionType
Description copied from interface:SqlSelection
Get the type of the expression- Specified by:
getExpressionType
in interfaceSqlSelection
-
isVirtual
public boolean isVirtual()Description copied from interface:SqlSelection
Whether this is a virtual or a real selection item. Virtual selection items are not rendered into the SQL select clause.- Specified by:
isVirtual
in interfaceSqlSelection
-
getSqlExpression
- Specified by:
getSqlExpression
in interfaceSqlExpressionAccess
-
accept
- Specified by:
accept
in interfaceSqlAstNode
- Specified by:
accept
in interfaceSqlSelection
-
needsResolve
public boolean needsResolve() -
resolve
public SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory) - Specified by:
resolve
in interfaceSqlSelection
-
equals
-
hashCode
public int hashCode()
-