java.lang.Object
org.litebridge.orm.api.select.impl.DelegatingSelectTerminal<ReturnType>
org.litebridge.orm.api.select.FromClauseStart<ReturnType>
- All Implemented Interfaces:
SelectTerminal<ReturnType>
Entry point for the "FROM" clause of a query.
-
Field Summary
Fields inherited from class org.litebridge.orm.api.select.impl.DelegatingSelectTerminal
litebridgeContext, node, pendingNode -
Constructor Summary
ConstructorsConstructorDescriptionFromClauseStart(String[] columns, SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance with column names.FromClauseStart(SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance.FromClauseStart(ExpressionSpec[] expressionSpecs, SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance with 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.Starts a FROM clause for the given SQL table.from(Function<SelectApi, SelectTerminal<?>> query) Specifies a subquery to use as the merge source.<DTO> DtoFromClauseTerminal<DTO> from(DtoAliasSpec<DTO> aliasedDtoClass) from(SqlFromTargetSpec fromTargetSpec) Methods inherited from class org.litebridge.orm.api.select.impl.DelegatingSelectTerminal
first, firstOrNull, firstOrThrow, firstOrThrow, list, litebridgeContext, node, one, oneOrNull, oneOrThrow, oneOrThrow, stream, toSql
-
Constructor Details
-
FromClauseStart
public FromClauseStart(ExpressionSpec[] expressionSpecs, SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance with expression specifications.- Parameters:
expressionSpecs- the expression specificationsselectEngineTerminal- the terminal select enginelitebridgeContextCreator- the context creator function
-
FromClauseStart
public FromClauseStart(String[] columns, SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance with column names.- Parameters:
columns- the column namesselectEngineTerminal- the terminal select enginelitebridgeContextCreator- the context creator function
-
FromClauseStart
public FromClauseStart(SelectEngineTerminal selectEngineTerminal, Function<LitebridgeContext.Mode, LitebridgeContext> litebridgeContextCreator) Creates a newFromClauseStartinstance.- Parameters:
selectEngineTerminal- the terminal select enginelitebridgeContextCreator- the context creator function
-
-
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
-
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
Starts a FROM clause for the given SQL table.- Parameters:
table- the table name.- Returns:
- the SQL from clause terminal.
-
from
-
from
Specifies a subquery to use as the merge source.- Parameters:
query- function building the subquery- Returns:
- the merge ON condition clause terminal
-