java.lang.Object
org.litebridge.orm.api.select.FromClauseStart
Entry point for the "FROM" clause of a query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExpressionSpec[]The expression specifications to select.protected final FromClauseEngineThe from clause engine. -
Constructor Summary
ConstructorsConstructorDescriptionFromClauseStart(FromClauseEngine fromClauseEngine) Constructs a newFromClauseStart.FromClauseStart(ExpressionSpec[] expressionSpecs, FromClauseEngine fromClauseEngine) Constructs a newFromClauseStartwith the given expression specifications. -
Method Summary
Modifier and TypeMethodDescription<DTO> DtoFromClauseTerminal<DTO> Starts a FROM clause for the given DTO class.<DTO> DtoFromClauseTerminal<DTO> Starts a FROM clause for the given DTO class within the context of another DTO class.<DTO> DtoFromClauseTerminal<DTO> from(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Starts a FROM clause for the given DTO class with a specific related DTO strategy.Starts a FROM clause for the given SQL table.
-
Field Details
-
expressionSpecs
The expression specifications to select. -
fromClauseEngine
The from clause engine.
-
-
Constructor Details
-
FromClauseStart
Constructs a newFromClauseStart.- Parameters:
fromClauseEngine- the from clause engine.
-
FromClauseStart
Constructs a newFromClauseStartwith the given expression specifications.- Parameters:
expressionSpecs- the expression specifications.fromClauseEngine- the from clause engine.
-
-
Method Details
-
from
Starts a FROM clause for the given DTO class.- Type Parameters:
DTO- the DTO type.- Parameters:
dtoClass- the DTO class.- Returns:
- the DTO from clause terminal.
-
from
Starts a FROM clause for the given DTO class within the context of another DTO class.- Type Parameters:
DTO- the DTO type.- Parameters:
dtoClass- the DTO class.contextDtoClass- the context DTO class.- Returns:
- the DTO from clause terminal.
-
from
public <DTO> DtoFromClauseTerminal<DTO> from(Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Starts a FROM clause for the given DTO class with a specific related DTO strategy.- Type Parameters:
DTO- the DTO type.- Parameters:
dtoClass- the DTO class.relatedDtoStrategy- the related DTO strategy.- Returns:
- the DTO from clause terminal.
-
from
Starts a FROM clause for the given SQL table.- Parameters:
table- the table name.- Returns:
- the SQL from clause terminal.
-