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) protectedSqlSelectionImpl(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 TypeMethodDescriptionvoidaccept(SqlAstWalker interpreter) booleanThe underlying expression.Get the type of the expressionintGet the JDBC position (1-based)Get the extractor that can be used to extract JDBC values for this selectionintGet the position within the "JDBC values" array (0-based).inthashCode()booleanWhether this is a virtual or a real selection item.booleanresolve(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:SqlSelectionThe underlying expression.- Specified by:
getExpressionin interfaceSqlSelection
-
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
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
- Specified by:
getSqlExpressionin interfaceSqlExpressionAccess
-
accept
- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceSqlSelection
-
needsResolve
public boolean needsResolve() -
resolve
public SqlSelection resolve(JdbcValuesMetadata jdbcResultsMetadata, SessionFactoryImplementor sessionFactory) - Specified by:
resolvein interfaceSqlSelection
-
equals
-
hashCode
public int hashCode()
-