Interface QueryBuilder<T>

Type Parameters:
T - the type of the entity that the query returns
All Known Subinterfaces:
AssignedAccessRightQuery, CheckedOutDocumentsQuery, DocumentParameterQuery, DocumentQuery, DownloadQuery, DropDownDefinitionQuery, DropDownLanguageQuery, DropDownValueQuery, NoteQuery, PageTemplatesQuery, ParameterDefinitionQuery, PersonQuery, PreferencesQuery, PublicationParameterQuery, PublicationQuery, PublicationRightQuery, PublicationTypeQuery, PublicationTypeXParamQuery, SpreadQuery, TemplateQuery, UserQuery

public interface QueryBuilder<T>
A generic interface for executing queries that return one or more results.

This interface provides methods to either retrieve a single result or a list of results of type T. The concrete implementation defines how the query is executed.

  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the query and returns a list of results of type T.
    Executes the query and returns a single result of type T.
  • Method Details

    • singleResult

      T singleResult()
      Executes the query and returns a single result of type T.
      Returns:
      the single result of the query
    • list

      List<T> list()
      Executes the query and returns a list of results of type T.
      Returns:
      a list of results