ENTITY
- type of entitiespublic interface Stage<ENTITY>
Modifier and Type | Method and Description |
---|---|
Optional<HasComparableOperators<ENTITY,?>> |
field()
Returns a Field that belongs to the table of this Stage, or
empty() if no Field is defined (i.e. |
Optional<HasComparableOperators<?,?>> |
foreignField()
Returns a Field that belongs to a table from a previous stage, or
empty() if no Field is defined (i.e. |
TableIdentifier<ENTITY> |
identifier()
Returns the TableIdentifier for this Stage.
|
Optional<JoinOperator> |
joinOperator()
Returns the OperatorType for this Stage or , or
empty() if no
OperatorType is defined (i.e. |
Optional<JoinType> |
joinType()
Returns the JoinType for this Stage, or
empty() if no JoinType is
defined (i.e. |
static <T> Stage<T> |
of(TableIdentifier<T> identifier,
List<Predicate<? super T>> predicates,
JoinType joinType,
HasComparableOperators<T,?> field,
JoinOperator joinOperator,
HasComparableOperators<?,?> foreignField,
int referencedStage)
Creates and returns a mew default implementation of a Stage.
|
List<Predicate<? super ENTITY>> |
predicates()
Returns an unmodifiable list of predicates that shall be applied for this
Stage.
|
int |
referencedStage()
Returns which stage index this stage references or -1.
|
TableIdentifier<ENTITY> identifier()
List<Predicate<? super ENTITY>> predicates()
Optional<JoinType> joinType()
empty()
if no JoinType is
defined (i.e. for the first Stage).empty()
if no JoinType is
defined.Optional<HasComparableOperators<ENTITY,?>> field()
empty()
if no Field is defined (i.e. for a CROSS JOIN).empty()
if no Field is definedOptional<JoinOperator> joinOperator()
empty()
if no
OperatorType is defined (i.e. for a CROSS JOIN).empty()
if no
OperatorType is defined (i.e. for a CROSS JOIN)Optional<HasComparableOperators<?,?>> foreignField()
empty()
if no Field is defined (i.e. for a CROSS JOIN).empty()
if no Field is definedint referencedStage()
foreignField()
reference a stage's field()
or if no field() exists, where this stage
(if not aliased) references a stage's identifier()
. If no such stage
exist (e.g. for stage 0 or cross joined tables) then the method returns -1.static <T> Stage<T> of(TableIdentifier<T> identifier, List<Predicate<? super T>> predicates, JoinType joinType, HasComparableOperators<T,?> field, JoinOperator joinOperator, HasComparableOperators<?,?> foreignField, int referencedStage)
T
- typeidentifier
- of the tablepredicates
- to apply on entities from this tablejoinType
- that shall be applied (nullable)field
- from the table to use (nullable)joinOperator
- to use when joining (nullable)foreignField
- from another table (nullable)Copyright © 2018 Speedment, Inc.. All rights reserved.