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 TypeMethodDescriptionvoid
accept
(SqlAstWalker walker) Visitationvoid
applySqlSelections
(DomainResultCreationState creationState) Used when this producer is a selection in a sub-query.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, getCteStatements
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Statement
Visitation- Specified by:
accept
in interfaceSqlAstNode
- Specified by:
accept
in interfaceStatement
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState) Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer
-
applySqlSelections
Description copied from interface:DomainResultProducer
Used 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:
applySqlSelections
in interfaceDomainResultProducer
-
getExpressionType
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-