Package io.jmix.data.impl.jpql.generator
Class ConditionGenerationContext
java.lang.Object
io.jmix.data.impl.jpql.generator.ConditionGenerationContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Condition, ConditionGenerationContext> protected Stringprotected Stringprotected Stringprotected final Conditionprotected ConditionGenerationContext.IndexCounterprotected booleanprotected Stringprotected Stringprotected Stringprotected MetaClassprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(ConditionGenerationContext context) int@Nullable String@Nullable String@Nullable String@Nullable Condition@Nullable String@Nullable MetaClass@Nullable StringbooleanvoidsetCollectionAlias(@Nullable String collectionAlias) voidsetCollectionFrom(@Nullable String collectionFrom) voidsetCollectionPath(@Nullable String collectionPath) voidsetElementCollection(boolean elementCollection) voidsetEntityAlias(String entityAlias) voidsetEntityName(String entityName) voidsetJoinAlias(String joinAlias) voidsetJoinMetaClass(@Nullable MetaClass joinMetaClass) voidsetJoinProperty(String joinProperty) voidsetSelectedExpressions(@Nullable List<String> selectedExpressions) voidsetValueProperties(@Nullable List<String> valueProperties)
-
Field Details
-
condition
-
entityName
-
entityAlias
-
joinAlias
-
joinProperty
-
joinMetaClass
-
collectionPath
-
collectionAlias
-
collectionFrom
-
valueProperties
-
selectedExpressions
-
elementCollection
protected boolean elementCollection -
childContexts
-
counter
-
-
Constructor Details
-
ConditionGenerationContext
-
-
Method Details
-
getCondition
-
getEntityName
-
setEntityName
-
getEntityAlias
-
setEntityAlias
-
getJoinAlias
-
setJoinAlias
-
getJoinProperty
-
setJoinProperty
-
getJoinMetaClass
-
setJoinMetaClass
-
getCollectionPath
- Returns:
- path to the to-many collection property whose condition is generated as an 'exists' subquery
(e.g.
e.tags), or null if the condition is not generated as a subquery
-
setCollectionPath
-
getCollectionAlias
- Returns:
- identification variable of the 'exists' subquery correlated with the collection property path by a 'member of' condition, or null if the condition is not generated as a subquery
-
setCollectionAlias
-
getCollectionFrom
- Returns:
- content of the 'from' clause of the 'exists' subquery generated for a condition on a to-many
collection property path (e.g.
test_Tag cje_0 left join cje_0.category cje_1), or null if the condition is not generated as a subquery
-
setCollectionFrom
-
getValueProperties
-
setValueProperties
-
getSelectedExpressions
-
setSelectedExpressions
-
isElementCollection
public boolean isElementCollection() -
setElementCollection
public void setElementCollection(boolean elementCollection) -
getChildContexts
- Returns:
- unmodifiable map of child contexts
-
generateNextJoinIndex
public int generateNextJoinIndex() -
copy
-