Package org.hibernate.sql.ast.tree.from
Class TableGroupJoin
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.TableGroupJoin
-
- All Implemented Interfaces:
DomainResultProducer
,TableJoin
,PredicateContainer
,SqlAstNode
public class TableGroupJoin extends Object implements TableJoin, PredicateContainer, DomainResultProducer
-
-
Constructor Summary
Constructors Constructor Description TableGroupJoin(NavigablePath navigablePath, SqlAstJoinType joinType, TableGroup joinedGroup)
TableGroupJoin(NavigablePath navigablePath, SqlAstJoinType joinType, TableGroup joinedGroup, Predicate predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
void
applyPredicate(Predicate predicate)
Apply a predicate to this containervoid
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.DomainResult
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryTableGroup
getJoinedGroup()
SqlAstNode
getJoinedNode()
SqlAstJoinType
getJoinType()
NavigablePath
getNavigablePath()
Predicate
getPredicate()
boolean
isImplicit()
boolean
isInitialized()
void
setJoinType(SqlAstJoinType joinType)
-
-
-
Constructor Detail
-
TableGroupJoin
public TableGroupJoin(NavigablePath navigablePath, SqlAstJoinType joinType, TableGroup joinedGroup)
-
TableGroupJoin
public TableGroupJoin(NavigablePath navigablePath, SqlAstJoinType joinType, TableGroup joinedGroup, Predicate predicate)
-
-
Method Detail
-
getJoinType
public SqlAstJoinType getJoinType()
- Specified by:
getJoinType
in interfaceTableJoin
-
setJoinType
public void setJoinType(SqlAstJoinType joinType)
-
getJoinedGroup
public TableGroup getJoinedGroup()
-
getJoinedNode
public SqlAstNode getJoinedNode()
- Specified by:
getJoinedNode
in interfaceTableJoin
-
getPredicate
public Predicate getPredicate()
- Specified by:
getPredicate
in interfaceTableJoin
-
applyPredicate
public void applyPredicate(Predicate predicate)
Description copied from interface:PredicateContainer
Apply a predicate to this container- Specified by:
applyPredicate
in interfacePredicateContainer
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized
in interfaceTableJoin
-
getNavigablePath
public NavigablePath getNavigablePath()
-
isImplicit
public boolean isImplicit()
-
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
-
-