Package io.jmix.dynmodel.impl.query
Class DynModelSqlPathSupport
java.lang.Object
io.jmix.dynmodel.impl.query.DynModelSqlPathSupport
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprotected classstatic final recordprotected static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DynamicModelToolsprotected MetadataToolsprotected StaticEntityKeyDescriptorSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCorrelationArguments(DynModelSqlPathSupport.ResolvedPath resolvedPath, StaticEntityKeyDescriptorSupport.StaticEntityKeyDescriptor keyDescriptor) protected DynModelSqlPathSupport.SqlExpressionbuildStaticReferenceTerminalExpression(DynModelSqlPathSupport.SqlBuilderState state, DynModelSqlPathSupport.ResolvedPath resolvedPath, MetaProperty referenceProperty, MetaProperty terminalProperty, String rootAlias) buildTerminalExpression(DynModelSqlPathSupport.ResolvedPath resolvedPath, String rootAlias) protected StringcreateAlias(int index) protected DynModelSqlPathSupport.SqlBuilderStatecreateInitialState(DynModelSqlPathSupport.ResolvedPath resolvedPath) protected StringgetReferenceColumn(MetaProperty referenceProperty, DynModelSqlPathSupport.StorageKind storageKind) protected StringgetSimplePrimaryKeyColumn(MetaClass metaClass) protected StringgetSimpleSideTableKeyColumn(MetaClass metaClass) protected StringgetStaticTableName(MetaClass metaClass) protected StringgetTerminalColumn(MetaProperty metaProperty) protected booleanisTerminalStaticReferencePath(MetaProperty referenceProperty, List<MetaProperty> properties, int propertyIndex) protected voidjoinStaticSideTable(DynModelSqlPathSupport.SqlBuilderState state, String propertyPath) protected voidmoveByReference(DynModelSqlPathSupport.SqlBuilderState state, DynModelSqlPathSupport.ResolvedPath resolvedPath, MetaProperty referenceProperty, MetaProperty nextProperty) @Nullable DynModelSqlPathSupport.ResolvedPathresolveDynamicPath(MetaClass rootMetaClass, String propertyPath) @Nullable DynModelSqlPathSupport.ResolvedPathresolveDynamicPath(MetaPropertyPath metaPropertyPath) protected @Nullable DynModelSqlPathSupport.ResolvedPathresolveDynamicPath(MetaPropertyPath metaPropertyPath, String propertyPath) protected IllegalStateExceptionunsupportedPath(String propertyPath, String segmentName)
-
Field Details
-
metadataTools
-
dynamicModelTools
-
staticEntityKeyDescriptorSupport
-
-
Constructor Details
-
DynModelSqlPathSupport
public DynModelSqlPathSupport()
-
-
Method Details
-
resolveDynamicPath
public @Nullable DynModelSqlPathSupport.ResolvedPath resolveDynamicPath(MetaClass rootMetaClass, String propertyPath) -
resolveDynamicPath
public @Nullable DynModelSqlPathSupport.ResolvedPath resolveDynamicPath(MetaPropertyPath metaPropertyPath) -
resolveDynamicPath
protected @Nullable DynModelSqlPathSupport.ResolvedPath resolveDynamicPath(MetaPropertyPath metaPropertyPath, String propertyPath) -
buildTerminalExpression
public DynModelSqlPathSupport.SqlExpression buildTerminalExpression(DynModelSqlPathSupport.ResolvedPath resolvedPath, String rootAlias) -
isTerminalStaticReferencePath
protected boolean isTerminalStaticReferencePath(MetaProperty referenceProperty, List<MetaProperty> properties, int propertyIndex) -
buildStaticReferenceTerminalExpression
protected DynModelSqlPathSupport.SqlExpression buildStaticReferenceTerminalExpression(DynModelSqlPathSupport.SqlBuilderState state, DynModelSqlPathSupport.ResolvedPath resolvedPath, MetaProperty referenceProperty, MetaProperty terminalProperty, String rootAlias) -
createInitialState
protected DynModelSqlPathSupport.SqlBuilderState createInitialState(DynModelSqlPathSupport.ResolvedPath resolvedPath) -
moveByReference
protected void moveByReference(DynModelSqlPathSupport.SqlBuilderState state, DynModelSqlPathSupport.ResolvedPath resolvedPath, MetaProperty referenceProperty, MetaProperty nextProperty) -
joinStaticSideTable
protected void joinStaticSideTable(DynModelSqlPathSupport.SqlBuilderState state, String propertyPath) -
getReferenceColumn
protected String getReferenceColumn(MetaProperty referenceProperty, DynModelSqlPathSupport.StorageKind storageKind) -
getTerminalColumn
-
getStaticTableName
-
getSimplePrimaryKeyColumn
-
getSimpleSideTableKeyColumn
-
buildCorrelationArguments
protected List<String> buildCorrelationArguments(DynModelSqlPathSupport.ResolvedPath resolvedPath, StaticEntityKeyDescriptorSupport.StaticEntityKeyDescriptor keyDescriptor) -
createAlias
-
unsupportedPath
-