- All Known Implementing Classes:
Litebridge,SelectEngine
-
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).
-
Method Details
-
select
Select a registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass).- 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. - Throws:
IllegalArgumentException- if the specified DTO class is not registered in the table registry.
-
select
<DTO> DtoFromClauseTerminal<DTO> select(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Select a registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass, relatedDtoStrategy).- 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. - Throws:
IllegalArgumentException- if the specified DTO class is not registered in the table registry.
-
select
Select a contextually-registered Data Transfer Object (DTO) type for database query operations.Shortcut method; equivalent to
select().from(dtoClass, contextDtoClass).- 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. - Throws:
IllegalArgumentException- if the specified DTO class is not registered in the table registry.
-
select
Query 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.- 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
Query 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.- 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
Query 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.- 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
FromClauseStart select()Query 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.- Returns:
- A
FromClauseStartTypeOverrideinstance allowing further refinement of the SQL query by specifying the target DTO or table.
-