Class SelectStatement
java.lang.Object
org.hibernate.sql.ast.tree.AbstractStatement
org.hibernate.sql.ast.tree.select.SelectStatement
- All Implemented Interfaces:
DomainResultProducer,SqlSelectionProducer,CteContainer,Expression,SqlAstNode,Statement
public class SelectStatement
extends AbstractStatement
implements SqlAstNode, Expression, DomainResultProducer
-
Constructor Summary
ConstructorsConstructorDescriptionSelectStatement(CteContainer cteContainer, QueryPart queryPart, List<DomainResult<?>> domainResults) SelectStatement(QueryPart queryPart) SelectStatement(QueryPart queryPart, List<DomainResult<?>> domainResults) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker walker) VisitationvoidapplySqlSelections(DomainResultCreationState creationState) Used when this producer is a selection in a sub-query.DomainResult<?> createDomainResult(String resultVariable, DomainResultCreationState creationState) Produce the domain queryList<DomainResult<?>> The type for this expressionMethods inherited from class org.hibernate.sql.ast.tree.AbstractStatement
addCteObject, addCteStatement, getCteObject, getCteObjects, getCteStatement, getCteStatementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Constructor Details
-
SelectStatement
-
SelectStatement
-
SelectStatement
public SelectStatement(CteContainer cteContainer, QueryPart queryPart, List<DomainResult<?>> domainResults)
-
-
Method Details
-
getQuerySpec
-
getQueryPart
-
getDomainResultDescriptors
-
accept
Description copied from interface:StatementVisitation- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceStatement
-
createDomainResult
public DomainResult<?> createDomainResult(String resultVariable, DomainResultCreationState creationState) Description copied from interface:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer
-
applySqlSelections
Description copied from interface:DomainResultProducerUsed when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression- Specified by:
applySqlSelectionsin interfaceDomainResultProducer
-
getExpressionType
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-