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> T
accept
(AbortableResultJoinNodeVisitor<T> visitor) void
accept
(JoinNodeVisitor visitor) void
accept
(ExpressionModifierVisitor<? super ExpressionModifier> visitor) void
addEntityJoin
(JoinNode entityJoinNode) void
appendAlias
(StringBuilder sb, boolean externalRepresentation) void
appendAlias
(StringBuilder sb, boolean renderTreat, boolean externalRepresentation) void
appendDeReference
(StringBuilder sb, String property, boolean externalRepresentation) void
appendDeReference
(StringBuilder sb, String property, boolean renderTreat, boolean externalRepresentation, boolean requiresElementCollectionIdCutoff) void
appendValueClazzAlias
(StringBuilder sb, String prefix) cloneJoinNode
(JoinNode parent, JoinTreeNode parentTreeNode, JoinAliasInfo aliasInfo) cloneRootNode
(JoinAliasInfo aliasInfo) boolean
containsNode
(JoinNode n, String joinRelationName) static JoinNode
createAssociationJoinNode
(JoinNode parent, JoinTreeNode parentTreeNode, JoinType joinType, javax.persistence.metamodel.Type<?> nodeType, javax.persistence.metamodel.EntityType<?> treatType, String qualificationExpression, JoinAliasInfo aliasInfo) 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) static JoinNode
createEntityJoinNode
(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 JoinNode
createRootNode
(javax.persistence.metamodel.EntityType<?> nodeType, JoinAliasInfo aliasInfo) static JoinNode
createSimpleValuesRootNode
(MainQuery mainQuery, Class<?> nodeType, int valueCount, JoinAliasInfo aliasInfo) 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) boolean
get()
getAlias()
javax.persistence.metamodel.Type<?>
getDefaultJoin
(List<PathElementExpression> pathElements, int start, int end) javax.persistence.metamodel.EntityType<?>
com.blazebit.persistence.impl.CTEInfo
javax.persistence.metamodel.EntityType<?>
Class<?>
int
javax.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) int
String[]
javax.persistence.metamodel.EntityType<?>
boolean
boolean
hasDefaultJoin
(String joinRelationName) boolean
boolean
isCollection
(com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector) boolean
isCollectionDmlNode
(boolean externalRepresentation) boolean
boolean
boolean
boolean
boolean
isFetch()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
void
set
(Expression expression) void
setAllowedDeReferences
(Set<String> allowedAttributes) void
void
setDeReferenceFunction
(String deReferenceFunction) void
setDisallowedDeReferenceAlias
(String disallowedDeReferenceAlias) void
setFetch
(boolean fetch) void
setInlineCte
(com.blazebit.persistence.impl.CTEInfo inlineCte) void
setJoinType
(JoinType joinType) void
setOnPredicate
(CompoundPredicate onPredicate) boolean
updateClauseDependencies
(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:
set
in interfaceExpressionModifier
-
get
- Specified by:
get
in 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:
createExpression
in interfaceBaseNode
-
createPathExpression
- Specified by:
createPathExpression
in 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:
getJavaType
in interfaceFrom
-
getJoinDepth
public int getJoinDepth()
-