Package com.priint.pubserverapi.query
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 TypeMethodDescriptionlist()Executes the query and returns a list of results of typeT.Executes the query and returns a single result of typeT.
-
Method Details
-
singleResult
T singleResult()Executes the query and returns a single result of typeT.- Returns:
- the single result of the query
-
list
Executes the query and returns a list of results of typeT.- Returns:
- a list of results
-