Interface SqaleMappingMixin<S,​Q extends FlexibleRelationalPathBase<R>,​R>

    • Method Detail

      • queryType

        Class<Q> queryType()
      • addNestedMapping

        default <N extends ContainerableSqaleNestedMapping<N,​Q,​R> addNestedMapping​(@NotNull
                                                                                                 @NotNull QName itemName,
                                                                                                 @NotNull
                                                                                                 @NotNull Class<N> nestedSchemaType)
        Defines nested mapping for container embedded in the same table. This includes path resolver for queries and delta processor for modifications.
        Type Parameters:
        N - schema type of the nested container
      • addRefMapping

        default <TQ extends QReference<TR,​R>,​TR extends MReferenceSqaleMappingMixin<S,​Q,​R> addRefMapping​(@NotNull
                                                                                                                                   @NotNull QName itemName,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull QReferenceMapping<TQ,​TR,​Q,​R> referenceMapping)
        Defines multi-value reference mapping (refs in table) for both query and modifications.
      • addRefMapping

        default <TS,​TQ extends QObject<TR>,​TR extends MObjectSqaleMappingMixin<S,​Q,​R> addRefMapping​(@NotNull
                                                                                                                              @NotNull QName itemName,
                                                                                                                              @NotNull
                                                                                                                              @NotNull Function<Q,​UuidPath> rootToOidPath,
                                                                                                                              @NotNull
                                                                                                                              @NotNull Function<Q,​com.querydsl.core.types.dsl.EnumPath<MObjectType>> rootToTypePath,
                                                                                                                              @NotNull
                                                                                                                              @NotNull Function<Q,​com.querydsl.core.types.dsl.NumberPath<Integer>> rootToRelationIdPath,
                                                                                                                              @NotNull
                                                                                                                              @NotNull Supplier<QueryTableMapping<TS,​TQ,​TR>> targetMappingSupplier)
        Defines single-value reference mapping for both query and modifications, columns embedded in the table.
      • addAuditRefMapping

        default <TS,​TQ extends QObject<TR>,​TR extends MObjectSqaleMappingMixin<S,​Q,​R> addAuditRefMapping​(@NotNull
                                                                                                                                   @NotNull QName itemName,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull Function<Q,​UuidPath> rootToOidPath,
                                                                                                                                   @Nullable
                                                                                                                                   @Nullable Function<Q,​com.querydsl.core.types.dsl.EnumPath<MObjectType>> rootToTypePath,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull Function<Q,​com.querydsl.core.types.dsl.StringPath> rootToTargetNamePath,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull Supplier<QueryTableMapping<TS,​TQ,​TR>> targetMappingSupplier)
        Defines single-value reference mapping for query, columns embedded in the table.
      • addContainerTableMapping

        default <C extends Containerable,​TQ extends QContainer<TR,​R>,​TR extends MContainerSqaleMappingMixin<S,​Q,​R> addContainerTableMapping​(@NotNull
                                                                                                                                                                            @NotNull ItemName itemName,
                                                                                                                                                                            @NotNull
                                                                                                                                                                            @NotNull QContainerMapping<C,​TQ,​TR,​R> containerMapping,
                                                                                                                                                                            @NotNull
                                                                                                                                                                            @NotNull BiFunction<Q,​TQ,​com.querydsl.core.types.Predicate> joinPredicate)
        Defines table mapping for multi-value container owned by an object or another container. This includes path resolver for queries and delta processor for modifications.
        Type Parameters:
        C - schema type of the container mapped to the target table
        TQ - entity query type of the container table
        TR - row type of the container table, related to SqaleMappingMixin