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 voidaccept(SqlAstWalker walker)VisitationvoidapplySqlSelections(DomainResultCreationState creationState)Used when this producer is a selection in a sub-query.DomainResultcreateDomainResult(String resultVariable, DomainResultCreationState creationState)Produce the domain queryList<DomainResult<?>>getDomainResultDescriptors()JdbcMappingContainergetExpressionType()The type for this expressionQueryPartgetQueryPart()QuerySpecgetQuerySpec()-
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, 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: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
public void applySqlSelections(DomainResultCreationState creationState)
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
public JdbcMappingContainer getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
-