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
Constructors Constructor Description SelectStatement(CteContainer cteContainer, QueryPart queryPart, List<DomainResult<?>> domainResults)
SelectStatement(QueryPart queryPart)
SelectStatement(QueryPart queryPart, List<DomainResult<?>> domainResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker walker)
Visitationvoid
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.DomainResult
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryList<DomainResult<?>>
getDomainResultDescriptors()
JdbcMappingContainer
getExpressionType()
The type for this expressionQueryPart
getQueryPart()
QuerySpec
getQuerySpec()
-
Methods 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, createDomainResultSqlSelection, createSqlSelection, createSqlSelection, getColumnReference
-
-
-
-
Constructor Detail
-
SelectStatement
public SelectStatement(QueryPart queryPart)
-
SelectStatement
public SelectStatement(QueryPart queryPart, List<DomainResult<?>> domainResults)
-
SelectStatement
public SelectStatement(CteContainer cteContainer, QueryPart queryPart, List<DomainResult<?>> domainResults)
-
-
Method Detail
-
getQuerySpec
public QuerySpec getQuerySpec()
-
getQueryPart
public QueryPart getQueryPart()
-
getDomainResultDescriptors
public List<DomainResult<?>> getDomainResultDescriptors()
-
accept
public void accept(SqlAstWalker walker)
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
public void applySqlSelections(DomainResultCreationState creationState)
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
public JdbcMappingContainer getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
-