ENTITY - type of entitiespublic interface Stage<ENTITY>
| Modifier and Type | Method and Description |
|---|---|
Optional<com.speedment.runtime.field.trait.HasComparableOperators<ENTITY,?>> |
field()
Returns a Field that belongs to the table of this Stage, or
empty() if no Field is defined (i.e. |
Optional<com.speedment.runtime.field.trait.HasComparableOperators<?,?>> |
foreignField()
Returns a Field that belongs to a table from a previous stage, or
empty() if no Field is defined (i.e. |
com.speedment.runtime.config.identifier.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(com.speedment.runtime.config.identifier.TableIdentifier<T> identifier,
List<Predicate<? super T>> predicates,
JoinType joinType,
com.speedment.runtime.field.trait.HasComparableOperators<T,?> field,
JoinOperator joinOperator,
com.speedment.runtime.field.trait.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.
|
com.speedment.runtime.config.identifier.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<com.speedment.runtime.field.trait.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<com.speedment.runtime.field.trait.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(com.speedment.runtime.config.identifier.TableIdentifier<T> identifier, List<Predicate<? super T>> predicates, JoinType joinType, com.speedment.runtime.field.trait.HasComparableOperators<T,?> field, JoinOperator joinOperator, com.speedment.runtime.field.trait.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)referencedStage - the previous stage that is referenced by this stageCopyright © 2019 Speedment, Inc.. All rights reserved.