Module storm.java

Class QueryBuilderImpl.PredicateBuilderImpl<TX extends Data,RX,IDX>

java.lang.Object
st.orm.template.impl.QueryBuilderImpl.PredicateBuilderImpl<TX,RX,IDX>
All Implemented Interfaces:
PredicateBuilder<TX,RX,IDX>
Enclosing class:
QueryBuilderImpl<T extends Data,R,ID>

public static class QueryBuilderImpl.PredicateBuilderImpl<TX extends Data,RX,IDX> extends Object implements PredicateBuilder<TX,RX,IDX>
PredicateBuilderImpl relies on preview features of the Java platform:
  • PredicateBuilderImpl refers to one or more preview APIs: StringTemplate.
Programs can only use PredicateBuilderImpl when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Method Details

    • of

      public static <TX extends Data, RX, IDX> PredicateBuilder<TX,RX,IDX> of(st.orm.core.template.PredicateBuilder<TX,RX,IDX> core)
      Returns the predicate builder of the Java API over the given core predicate builder.
      Type Parameters:
      TX - the type of the table being queried.
      RX - the type of the result.
      IDX - the type of the primary key.
      Parameters:
      core - the core predicate builder.
      Returns:
      the predicate builder.
    • and

      public PredicateBuilder<TX,RX,IDX> and(PredicateBuilder<? extends TX,?,?> predicate)
      Description copied from interface: PredicateBuilder
      Adds a predicate to the WHERE clause using an AND condition.

      This method combines the specified predicate with existing predicates using an AND operation, ensuring that all added conditions must be true. The predicate inherits the query root: a join widens the root, admitting predicates that reference any entity in the query.

      Specified by:
      and in interface PredicateBuilder<TX extends Data,RX,IDX>
      Parameters:
      predicate - the predicate to add.
      Returns:
      the predicate builder.
    • and

      Description copied from interface: PredicateBuilder
      Adds a predicate to the WHERE clause using an AND condition.

      This method combines the specified predicate with existing predicates using an AND operation, ensuring that all added conditions must be true.

      Specified by:
      and in interface PredicateBuilder<TX extends Data,RX,IDX>
      Parameters:
      template - the template string representing the predicate to add.
      Returns:
      the predicate builder.
    • or

      public PredicateBuilder<TX,RX,IDX> or(PredicateBuilder<? extends TX,?,?> predicate)
      Description copied from interface: PredicateBuilder
      Adds a predicate to the WHERE clause using an OR condition.

      This method combines the specified predicate with existing predicates using an OR operation, allowing any of the added conditions to be true. The predicate inherits the query root: a join widens the root, admitting predicates that reference any entity in the query.

      Specified by:
      or in interface PredicateBuilder<TX extends Data,RX,IDX>
      Parameters:
      predicate - the predicate to add.
      Returns:
      the predicate builder.
    • or

      Description copied from interface: PredicateBuilder
      Adds a predicate to the WHERE clause using an OR condition.

      This method combines the specified predicate with existing predicates using an OR operation, ensuring that all added conditions must be true.

      Specified by:
      or in interface PredicateBuilder<TX extends Data,RX,IDX>
      Parameters:
      template - the template string representing the predicate to add.
      Returns:
      the predicate builder.