Package jakarta.nosql

Interface QueryMapper.MapperNameOrder

All Superinterfaces:
QueryMapper.MapperQueryBuild
Enclosing interface:
QueryMapper

public static interface QueryMapper.MapperNameOrder extends QueryMapper.MapperQueryBuild
Represents the step in the query fluent API where it's possible to define the order of the results or to perform the query execution.
  • Method Details

    • orderBy

      Add the order of how the result will return based on a given column name.
      Parameters:
      name - the column name to be ordered
      Returns:
      a query with the sort defined
      Throws:
      NullPointerException - when name is null
    • skip

      QueryMapper.MapperSkip skip(long skip)
      Defines the position of the first result to retrieve.
      Parameters:
      skip - the first result to retrieve
      Returns:
      a query with the first result defined
    • limit

      QueryMapper.MapperLimit limit(long limit)
      Defines the maximum number of results to retrieve.
      Parameters:
      limit - the limit
      Returns:
      a query with the limit defined
      Throws:
      IllegalArgumentException - when limit is negative