Package com.blazebit.persistence.impl
Class JoinNode
java.lang.Object
com.blazebit.persistence.impl.JoinNode
- All Implemented Interfaces:
From,BaseNode,ExpressionModifier
public class JoinNode extends Object implements From, ExpressionModifier, BaseNode
- Since:
- 1.0.0
- Author:
- Christian Beikov, Moritz Becker
-
Method Summary
Modifier and Type Method Description <T> Taccept(AbortableResultJoinNodeVisitor<T> visitor)voidaccept(JoinNodeVisitor visitor)voidaccept(ExpressionModifierVisitor<? super ExpressionModifier> visitor)voidaddEntityJoin(JoinNode entityJoinNode)voidappendAlias(StringBuilder sb, boolean externalRepresentation)voidappendAlias(StringBuilder sb, boolean renderTreat, boolean externalRepresentation)voidappendDeReference(StringBuilder sb, String property, boolean externalRepresentation)voidappendDeReference(StringBuilder sb, String property, boolean renderTreat, boolean externalRepresentation, boolean requiresElementCollectionIdCutoff)voidappendValueClazzAlias(StringBuilder sb, String prefix)JoinNodecloneJoinNode(JoinNode parent, JoinTreeNode parentTreeNode, JoinAliasInfo aliasInfo)JoinNodecloneRootNode(JoinAliasInfo aliasInfo)booleancontainsNode(JoinNode n, String joinRelationName)static JoinNodecreateAssociationJoinNode(JoinNode parent, JoinTreeNode parentTreeNode, JoinType joinType, javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> treatType, String qualificationExpression, JoinAliasInfo aliasInfo)static JoinNodecreateCorrelationRootNode(JoinNode correlationParent, String correlationPath, javax.persistence.metamodel.Attribute<?,?> correlatedAttribute, javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> treatType, JoinAliasInfo aliasInfo, boolean lateral)static JoinNodecreateEntityJoinNode(JoinNode parent, JoinType joinType, javax.persistence.metamodel.EntityType<?> nodeType, JoinAliasInfo aliasInfo, boolean lateral)ExpressioncreateExpression(String field)ExpressioncreateExpression(String field, boolean asPath)PathExpressioncreatePathExpression(String field)static JoinNodecreateRootNode(javax.persistence.metamodel.EntityType<?> nodeType, JoinAliasInfo aliasInfo)static JoinNodecreateSimpleValuesRootNode(MainQuery mainQuery, Class<?> nodeType, int valueCount, JoinAliasInfo aliasInfo)static JoinNodecreateValuesRootNode(javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> valueType, String valuesTypeName, int valueCount, Set<String> valuesIdName, String valuesLikeClause, String qualificationExpression, boolean valueClazzAttributeSingular, boolean valueClazzSimpleValue, String valuesLikeAttribute, String valuesCastedParameter, String[] valuesAttributes, JoinAliasInfo aliasInfo)booleandependsOn(JoinNode tableReference)Expressionget()StringgetAlias()StringgetAliasExpression()JoinAliasInfogetAliasInfo()javax.persistence.metamodel.Type<?>getBaseType()EnumSet<ClauseType>getClauseDependencies()JoinNodegetCorrelationParent()StringgetCorrelationPath()JoinNodegetDefaultJoin(List<PathElementExpression> pathElements, int start, int end)Set<JoinNode>getDependencies()StringgetDeReferenceFunction()StringgetDisallowedDeReferenceAlias()Set<JoinNode>getEntityJoinNodes()javax.persistence.metamodel.EntityType<?>getEntityType()com.blazebit.persistence.impl.CTEInfogetInlineCte()javax.persistence.metamodel.EntityType<?>getInternalEntityType()Class<?>getJavaType()intgetJoinDepth()JoinTypegetJoinType()JoinNodegetKeyJoinNode()javax.persistence.metamodel.ManagedType<?>getManagedType()NavigableMap<String,JoinTreeNode>getNodes()javax.persistence.metamodel.Type<?>getNodeType()CompoundPredicategetOnPredicate()JoinTreeNodegetOrCreateTreeNode(String joinRelationName, javax.persistence.metamodel.Attribute<?,?> attribute)JoinNodegetParent()JoinTreeNodegetParentTreeNode()StringgetQualificationExpression()JoinNodegetTreatedJoinNode(javax.persistence.metamodel.EntityType<?> type)NavigableMap<String,JoinNode>getTreatedJoinNodes()javax.persistence.metamodel.EntityType<?>getTreatType()javax.persistence.metamodel.Type<?>getType()StringgetValueClazzAlias(String prefix)intgetValueCount()String[]getValuesAttributes()StringgetValuesCastedParameter()Set<String>getValuesIdNames()StringgetValuesLikeAttribute()StringgetValuesLikeClause()javax.persistence.metamodel.EntityType<?>getValueType()booleanhasChildNodes()booleanhasDefaultJoin(String joinRelationName)booleanisCardinalityMandatory()booleanisCollection(com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector)booleanisCollectionDmlNode(boolean externalRepresentation)booleanisCrossJoin()booleanisDefaultJoinNode()booleanisDisallowedDeReferenceUsed()booleanisEntityJoinNode()booleanisFetch()booleanisInlineCte()booleanisLateral()booleanisParent(JoinNode parent)booleanisQualifiedJoin()booleanisRootJoinNode()booleanisTreatedJoinNode()booleanisTreatJoinNode()booleanisValueClazzAttributeSingular()booleanisValueClazzSimpleValue()voidregisterDependencies()voidset(Expression expression)voidsetAllowedDeReferences(Set<String> allowedAttributes)voidsetCrossJoin()voidsetDeReferenceFunction(String deReferenceFunction)voidsetDisallowedDeReferenceAlias(String disallowedDeReferenceAlias)voidsetFetch(boolean fetch)voidsetInlineCte(com.blazebit.persistence.impl.CTEInfo inlineCte)voidsetJoinType(JoinType joinType)voidsetOnPredicate(CompoundPredicate onPredicate)booleanupdateClauseDependencies(ClauseType clauseDependency, Set<JoinNode> seenNodes)
-
Method Details
-
createRootNode
public static JoinNode createRootNode(javax.persistence.metamodel.EntityType<?> nodeType, JoinAliasInfo aliasInfo) -
createSimpleValuesRootNode
public static JoinNode createSimpleValuesRootNode(MainQuery mainQuery, Class<?> nodeType, int valueCount, JoinAliasInfo aliasInfo) -
createValuesRootNode
public static JoinNode createValuesRootNode(javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> valueType, String valuesTypeName, int valueCount, Set<String> valuesIdName, String valuesLikeClause, String qualificationExpression, boolean valueClazzAttributeSingular, boolean valueClazzSimpleValue, String valuesLikeAttribute, String valuesCastedParameter, String[] valuesAttributes, JoinAliasInfo aliasInfo) -
createCorrelationRootNode
public static JoinNode createCorrelationRootNode(JoinNode correlationParent, String correlationPath, javax.persistence.metamodel.Attribute<?,?> correlatedAttribute, javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> treatType, JoinAliasInfo aliasInfo, boolean lateral) -
createEntityJoinNode
public static JoinNode createEntityJoinNode(JoinNode parent, JoinType joinType, javax.persistence.metamodel.EntityType<?> nodeType, JoinAliasInfo aliasInfo, boolean lateral) -
createAssociationJoinNode
public static JoinNode createAssociationJoinNode(JoinNode parent, JoinTreeNode parentTreeNode, JoinType joinType, javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> treatType, String qualificationExpression, JoinAliasInfo aliasInfo) -
cloneRootNode
-
cloneJoinNode
public JoinNode cloneJoinNode(JoinNode parent, JoinTreeNode parentTreeNode, JoinAliasInfo aliasInfo) -
isCardinalityMandatory
public boolean isCardinalityMandatory() -
containsNode
-
registerDependencies
public void registerDependencies() -
set
- Specified by:
setin interfaceExpressionModifier
-
get
- Specified by:
getin interfaceExpressionModifier
-
accept
-
accept
-
accept
-
getTreatedJoinNode
-
getClauseDependencies
-
updateClauseDependencies
-
getParentTreeNode
-
getParent
-
getAliasInfo
-
getJoinType
-
setJoinType
-
isFetch
public boolean isFetch() -
setFetch
public void setFetch(boolean fetch) -
hasChildNodes
public boolean hasChildNodes() -
getNodes
-
getTreatedJoinNodes
-
getKeyJoinNode
-
getOrCreateTreeNode
public JoinTreeNode getOrCreateTreeNode(String joinRelationName, javax.persistence.metamodel.Attribute<?,?> attribute) -
getDefaultJoin
-
hasDefaultJoin
-
getEntityJoinNodes
-
addEntityJoin
-
getNodeType
public javax.persistence.metamodel.Type<?> getNodeType() -
getEntityType
public javax.persistence.metamodel.EntityType<?> getEntityType() -
getInternalEntityType
public javax.persistence.metamodel.EntityType<?> getInternalEntityType() -
getManagedType
public javax.persistence.metamodel.ManagedType<?> getManagedType() -
getBaseType
public javax.persistence.metamodel.Type<?> getBaseType() -
getTreatType
public javax.persistence.metamodel.EntityType<?> getTreatType() -
isTreatJoinNode
public boolean isTreatJoinNode() -
isTreatedJoinNode
public boolean isTreatedJoinNode() -
isEntityJoinNode
public boolean isEntityJoinNode() -
isRootJoinNode
public boolean isRootJoinNode() -
isDefaultJoinNode
public boolean isDefaultJoinNode() -
getValueCount
public int getValueCount() -
getValueType
public javax.persistence.metamodel.EntityType<?> getValueType() -
isValueClazzAttributeSingular
public boolean isValueClazzAttributeSingular() -
isValueClazzSimpleValue
public boolean isValueClazzSimpleValue() -
getValuesLikeAttribute
-
getValueClazzAlias
-
appendValueClazzAlias
-
getValuesIdNames
-
getValuesLikeClause
-
getValuesCastedParameter
-
getValuesAttributes
-
getCorrelationParent
-
getCorrelationPath
-
getOnPredicate
-
setOnPredicate
-
getDependencies
-
dependsOn
-
isCollection
public boolean isCollection(com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector) -
getQualificationExpression
-
isQualifiedJoin
public boolean isQualifiedJoin() -
isLateral
public boolean isLateral() -
setInlineCte
public void setInlineCte(com.blazebit.persistence.impl.CTEInfo inlineCte) -
getInlineCte
public com.blazebit.persistence.impl.CTEInfo getInlineCte() -
isInlineCte
public boolean isInlineCte() -
setAllowedDeReferences
-
setDisallowedDeReferenceAlias
-
getDisallowedDeReferenceAlias
-
isDisallowedDeReferenceUsed
public boolean isDisallowedDeReferenceUsed() -
isParent
-
createExpression
- Specified by:
createExpressionin interfaceBaseNode
-
createPathExpression
- Specified by:
createPathExpressionin interfaceBaseNode
-
createExpression
-
appendDeReference
-
appendDeReference
public void appendDeReference(StringBuilder sb, String property, boolean renderTreat, boolean externalRepresentation, boolean requiresElementCollectionIdCutoff) -
appendAlias
-
appendAlias
-
getDeReferenceFunction
-
setDeReferenceFunction
-
isCrossJoin
public boolean isCrossJoin() -
setCrossJoin
public void setCrossJoin() -
isCollectionDmlNode
public boolean isCollectionDmlNode(boolean externalRepresentation) -
getAlias
-
getAliasExpression
-
getType
public javax.persistence.metamodel.Type<?> getType() -
getJavaType
- Specified by:
getJavaTypein interfaceFrom
-
getJoinDepth
public int getJoinDepth()
-