Class SingleResult<T>

java.lang.Object
de.chojo.sadu.queries.results.reading.SingleResult<T>
Type Parameters:
T - Type of returned object
All Implemented Interfaces:
DataSourceProvider, ConnectionProvider, QueryProvider, BaseResult, Result<T>

public class SingleResult<T> extends Object implements Result<T>, QueryProvider
Result of a ReaderImpl.firstResult() call
  • Constructor Details

  • Method Details

    • result

      public T result()
      Description copied from interface: Result
      Get the result of the query
      Specified by:
      result in interface Result<T>
      Returns:
      result
    • query

      public QueryImpl query()
      Specified by:
      query in interface QueryProvider
    • exceptions

      public List<Exception> exceptions()
      Description copied from interface: BaseResult
      Returns a list of exceptions.
      Specified by:
      exceptions in interface BaseResult
      Returns:
      a list of exceptions. If there are no exceptions, an empty list is returned.