Interface SimpleQuery<Q extends SimpleQuery<Q>>

Type Parameters:
Q - concrete subtype
All Superinterfaces:
FilteredClause<Q>
All Known Subinterfaces:
FetchableQuery<T,Q>, Query<Q>

public interface SimpleQuery<Q extends SimpleQuery<Q>> extends FilteredClause<Q>
SimpleQuery defines a simple querying interface than Query
Author:
tiwe
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Set the Query to return distinct results
    limit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit)
    Set the limit / max results for the query results
    offset(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long offset)
    Set the offset for the query results
    Add order expressions
    Set both limit and offset of the query results
    <T> Q
    set(ParamExpression<T> param, T value)
    Set the given parameter to the given value

    Methods inherited from interface com.querydsl.core.FilteredClause

    where
  • Method Details

    • limit

      Q limit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit)
      Set the limit / max results for the query results
      Parameters:
      limit - max rows
      Returns:
      the current object
    • offset

      Q offset(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long offset)
      Set the offset for the query results
      Parameters:
      offset - row offset
      Returns:
      the current object
    • restrict

      Q restrict(QueryModifiers modifiers)
      Set both limit and offset of the query results
      Parameters:
      modifiers - query modifiers
      Returns:
      the current object
    • orderBy

      Q orderBy(OrderSpecifier<?>... o)
      Add order expressions
      Parameters:
      o - order
      Returns:
      the current object
    • set

      <T> Q set(ParamExpression<T> param, T value)
      Set the given parameter to the given value
      Type Parameters:
      T -
      Parameters:
      param - param
      value - binding
      Returns:
      the current object
    • distinct

      Q distinct()
      Set the Query to return distinct results
      Returns:
      the current object