Interface BaseWhereBuilder<T extends BaseWhereBuilder<T>>

    • Method Detail

      • whereSubquery

        SubqueryInitiator<RestrictionBuilder<T>> whereSubquery()
        Starts a SubqueryInitiator for the left hand side of a predicate. When the subquery builder and the restriction builder for the right hand side are finished, the predicate is added to the parent predicate container represented by the type T.
        Returns:
        The subquery initiator for building a subquery
      • whereSubquery

        SubqueryInitiator<RestrictionBuilder<T>> whereSubquery​(String subqueryAlias,
                                                               String expression)
        Starts a SubqueryInitiator for the left hand side of a predicate.

        All occurrences of subqueryAlias in expression will be replaced by the subquery. When the subquery builder and the restriction builder for the right hand side are finished, the predicate is added to the parent predicate container represented by the type T.

        Parameters:
        subqueryAlias - The alias for the subquery which will be replaced by the actual subquery
        expression - The expression which will be used as left hand side of a predicate. This expression contains the subqueryAlias to define the insertion points for the subquery.
        Returns:
        The subquery initiator for building a subquery
      • whereSubqueries

        MultipleSubqueryInitiator<RestrictionBuilder<T>> whereSubqueries​(String expression)
        Starts a MultipleSubqueryInitiator for the left hand side of a predicate.

        All occurrences of subsequently defined subqueryAliases in expression will be replaced by the respective subquery. When the builder finishes, the resulting expression is used for the left hand side of the predicate.

        Parameters:
        expression - The expression which will be used as left hand side of a predicate
        Returns:
        The subquery initiator for building multiple subqueries for their respective subqueryAliases
        Since:
        1.2.0
      • whereSubquery

        SubqueryBuilder<RestrictionBuilder<T>> whereSubquery​(FullQueryBuilder<?,​?> criteriaBuilder)
        Starts a SubqueryBuilder based on the given criteria builder for the left hand side of a predicate. When the subquery builder and the restriction builder for the right hand side are finished, the predicate is added to the parent predicate container represented by the type T.
        Parameters:
        criteriaBuilder - The criteria builder to base the subquery on
        Returns:
        The subquery builder for building a subquery
        Since:
        1.2.0
      • whereSubquery

        SubqueryBuilder<RestrictionBuilder<T>> whereSubquery​(String subqueryAlias,
                                                             String expression,
                                                             FullQueryBuilder<?,​?> criteriaBuilder)
        Starts a SubqueryBuilder based on the given criteria builder for the left hand side of a predicate. All occurrences of subqueryAlias in expression will be replaced by the subquery. When the subquery builder and the restriction builder for the right hand side are finished, the predicate is added to the parent predicate container represented by the type T.
        Parameters:
        subqueryAlias - The alias for the subquery which will be replaced by the actual subquery
        expression - The expression which will be used as left hand side of a predicate
        criteriaBuilder - The criteria builder to base the subquery on
        Returns:
        The subquery builder for building a subquery
        Since:
        1.2.0
      • whereExpression

        T whereExpression​(String expression)
        Adds the given expression as expression for the where clause.
        Parameters:
        expression - The where expression
        Returns:
        The builder
        Since:
        1.4.0
      • whereExpressionSubqueries

        MultipleSubqueryInitiator<T> whereExpressionSubqueries​(String expression)
        Starts a MultipleSubqueryInitiator for expression of the where clause.

        All occurrences of subsequently defined subqueryAliases in expression will be replaced by the respective subquery. When the builder finishes, the resulting expression is added as expression to the parent predicate container represented by the type T.

        Parameters:
        expression - The where expression
        Returns:
        The subquery initiator for building multiple subqueries for their respective subqueryAliases
        Since:
        1.4.0
      • where

        RestrictionBuilder<T> where​(String expression)
        Starts a RestrictionBuilder for a where predicate with the given expression as left hand expression. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.
        Parameters:
        expression - The left hand expression for a where predicate
        Returns:
        The restriction builder for the given expression
      • whereExists

        SubqueryInitiator<T> whereExists()
        Starts an exists predicate for the where clause with a subquery on the right hand side. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.
        Returns:
        The subquery initiator for building a subquery
      • whereNotExists

        SubqueryInitiator<T> whereNotExists()
        Starts an not exists predicate for the where clause with a subquery on the right hand side. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.
        Returns:
        The subquery initiator for building a subquery
      • whereExists

        SubqueryBuilder<T> whereExists​(FullQueryBuilder<?,​?> criteriaBuilder)
        Starts an exists predicate for the where clause with a subquery on the right hand side based on the given criteria builder. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.
        Parameters:
        criteriaBuilder - The criteria builder to base the subquery on
        Returns:
        The subquery builder for building a subquery
        Since:
        1.2.0
      • whereNotExists

        SubqueryBuilder<T> whereNotExists​(FullQueryBuilder<?,​?> criteriaBuilder)
        Starts an exists predicate for the where clause with a subquery on the right hand side based on the given criteria builder. When the builder finishes, the predicate is added to the parent predicate container represented by the type T.
        Parameters:
        criteriaBuilder - The criteria builder to base the subquery on
        Returns:
        The subquery builder for building a subquery
        Since:
        1.2.0