Class SubQuery


public class SubQuery extends Factor
  • Method Details

    • exists

      public static SubQuery exists(String path, Junction.Type junction)
    • existsNested

      public static SubQuery existsNested(String path, Junction.Type junction)
      If `path` involves multiple paths (like relFoo.relBar), create nested exists. Otherwise it is the same as exists(String). Example: instead of `exists(relFoo.relBar where …` do `exists(relFoo where exists(relBar where –))` A special SubQuery class is returned, where each condition that is added via `where` calls is appended to the innermost subquery. Calls to `isTrue` apply to all subqueries. All other (reading) operations are applied to the root subquery.
    • existsNested

      public static SubQuery existsNested(String path)
    • count

      public static SubQuery count(String path, Junction.Type junction)
    • exists

      public static SubQuery exists(String path)
    • count

      public static SubQuery count(String path)
    • create

      public Node create(TypeManager typeManager, EntityModel entityModel)
      Description copied from class: Condition
      Creates a new node representing this condition.
      Specified by:
      create in class Condition
      Parameters:
      typeManager - the type manager as it might be required for creating nodes
      entityModel - the entity model which is the root of the query
    • isTrue

      public SubQuery isTrue()
    • getIsTrue

      public final boolean getIsTrue()
    • where

      public SubQuery where(Condition condition)
    • where

      public SubQuery where(Iterable<? extends Condition> conditions)
    • where

      public SubQuery where(Condition... conditions)
    • where

      public SubQuery where(Node condition)
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • iterator

      public Iterator<Condition> iterator()
    • getPath

      public final String getPath()
    • get

      public Condition get(int index)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object