Package com.blazebit.persistence.impl
Class JoinNode
java.lang.Object
com.blazebit.persistence.impl.JoinNode
- All Implemented Interfaces:
From,BaseNode,ExpressionModifier
- Since:
- 1.0.0
- Author:
- Christian Beikov, Moritz Becker
-
Method Summary
Modifier and TypeMethodDescription<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) cloneJoinNode(JoinNode parent, JoinTreeNode parentTreeNode, JoinAliasInfo aliasInfo) cloneRootNode(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) createExpression(String field) createExpression(String field, boolean asPath) createPathExpression(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) booleanget()getAlias()javax.persistence.metamodel.Type<?>getDefaultJoin(List<PathElementExpression> pathElements, int start, int end) javax.persistence.metamodel.EntityType<?>com.blazebit.persistence.impl.CTEInfojavax.persistence.metamodel.EntityType<?>Class<?>intjavax.persistence.metamodel.ManagedType<?>getNodes()javax.persistence.metamodel.Type<?>getOrCreateTreeNode(String joinRelationName, javax.persistence.metamodel.Attribute<?, ?> attribute) getTreatedJoinNode(javax.persistence.metamodel.EntityType<?> type) javax.persistence.metamodel.EntityType<?>javax.persistence.metamodel.Type<?>getType()getValueClazzAlias(String prefix) intString[]javax.persistence.metamodel.EntityType<?>booleanbooleanhasDefaultJoin(String joinRelationName) booleanbooleanisCollection(com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector) booleanisCollectionDmlNode(boolean externalRepresentation) booleanbooleanbooleanbooleanbooleanisFetch()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidset(Expression expression) voidsetAllowedDeReferences(Set<String> allowedAttributes) voidvoidsetDeReferenceFunction(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()
-