- All Implemented Interfaces:
SelectApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect()Query data from the database, without mapping results to Data Transfer Object (DTOs).<DTO> DtoFromClauseTerminal<DTO> Select a registered Data Transfer Object (DTO) type for database query operations.<DTO> DtoFromClauseTerminal<DTO> Select a contextually-registered Data Transfer Object (DTO) type for database query operations.<DTO> DtoFromClauseTerminal<DTO> select(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Select a registered Data Transfer Object (DTO) type for database query operations.Query data from the database, without mapping results to Data Transfer Objects (DTOs).select(ExpressionSpec... expressions) Query data from the database, without mapping results to Data Transfer Objects (DTOs).<T> FromClauseStartTypeOverride<T> select(TypeOverride<T> expression) Query data from the database, without mapping results to Data Transfer Objects (DTOs).
-
Constructor Details
-
SelectEngine
-
-
Method Details
-
select
Description copied from interface:SelectApiSelect a registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass).- Specified by:
selectin interfaceSelectApi- Type Parameters:
DTO- The type of the DTO to select.- Parameters:
dtoClass- The class of the DTO to be queried, which must already be registered.- Returns:
- A
DtoFromClauseTerminalinstance for querying and retrieving data for the specified DTO class.
-
select
public <DTO> DtoFromClauseTerminal<DTO> select(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Description copied from interface:SelectApiSelect a registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass, relatedDtoStrategy).- Specified by:
selectin interfaceSelectApi- Type Parameters:
DTO- The type of the DTO to select.- Parameters:
dtoClass- The class of the DTO to be queried, which must already be registered.- Returns:
- A
DtoFromClauseTerminalinstance for querying and retrieving data for the specified DTO class.
-
select
Description copied from interface:SelectApiSelect a contextually-registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass, contextDtoClass).- Specified by:
selectin interfaceSelectApi- Type Parameters:
DTO- The type of the DTO to select.- Parameters:
dtoClass- The class of the DTO to be queried, which must already be registered.- Returns:
- A
DtoFromClauseTerminalinstance for querying and retrieving data for the specified DTO class.
-
select
Description copied from interface:SelectApiQuery data from the database, without mapping results to Data Transfer Objects (DTOs).Creates a SQL SELECT statement with the specified fields/expressions; the source table is specified via a chained
from()call.This method constructs a
FromClauseStartTypeOverridefor further query composition by specifying the target DTO or table for the query.- Specified by:
selectin interfaceSelectApi- Parameters:
fieldsOrColumns- An array of field/column names to be included in the SELECT statement, dependent on whether a DTO or raw SQL is selected in the chainedfrom()call. Each field/column name must be a valid, non-null string.- Returns:
- A
FromClauseStartTypeOverrideinstance allowing further refinement of the SQL query by specifying the target DTO or table.
-
select
Description copied from interface:SelectApiQuery data from the database, without mapping results to Data Transfer Objects (DTOs).Creates a SQL SELECT statement with the specified fields/expressions; the source table is specified via a chained
from()call.This method constructs a
FromClauseStartTypeOverridefor further query composition by specifying the target DTO or table for the query.- Specified by:
selectin interfaceSelectApi- Parameters:
expressions- An array ofExpressionSpecobjects representing the expressions to be part of the SELECT statement.- Returns:
- A
FromClauseStartTypeOverrideinstance allowing further refinement of the SQL query by specifying the target DTO or table.
-
select
Description copied from interface:SelectApiQuery data from the database, without mapping results to Data Transfer Objects (DTOs).Creates a SQL SELECT statement with the specified fields/expressions; the source table is specified via a chained
from()call.This method constructs a
FromClauseStartTypeOverridefor further query composition by specifying the target DTO or table for the query.- Specified by:
selectin interfaceSelectApi- Type Parameters:
T- The return type of the query- Parameters:
expression- Return type-overriding expression- Returns:
- A
FromClauseStartTypeOverrideinstance allowing further refinement of the SQL query by specifying the target DTO or table.
-
select
Description copied from interface:SelectApiQuery data from the database, without mapping results to Data Transfer Object (DTOs).Creates a SQL SELECT statement with all fields/expressions. The source table is specified via a chained
from()call.This method constructs a
FromClauseStartTypeOverridefor further query composition by specifying the target DTO or table for the query.- Specified by:
selectin interfaceSelectApi- Returns:
- A
FromClauseStartTypeOverrideinstance allowing further refinement of the SQL query by specifying the target DTO or table.
-