Class ConstrainedResultSet<T>

java.lang.Object
com.peterphi.std.guice.hibernate.webquery.ConstrainedResultSet<T>

public class ConstrainedResultSet<T> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getOffset

      public int getOffset()
    • getLimit

      public int getLimit()
    • getList

      public List<T> getList()
    • getConstraint

      @Deprecated public ResultSetConstraint getConstraint()
      Deprecated.
      use WebQueryDefinition instead
      Returns:
    • getQuery

      public WebQuery getQuery()
    • getTotal

      public Long getTotal()
    • setTotal

      public void setTotal(Long total)
    • getSql

      public List<String> getSql()
    • setSql

      public void setSql(List<String> sql)
    • getInfo

      public List<String> getInfo()
    • setInfo

      public void setInfo(List<String> info)
    • one

      public T one()
      When exactly one result is expected, returns that result or throws IllegalArgumentException if too many or too few results were returned
      Returns:
    • uniqueResult

      public T uniqueResult()
      When a single result is expected, returns that result (or null if no results were returned). Throws an IllegalArgumentException if more than one results were returned
      Returns: