Class TableMappingSelector<ST extends SourceTable<?,?>,TT extends TargetTable<?,?>>
java.lang.Object
com.orchestranetworks.addon.dint.mapping.TableMappingSelector<ST,TT>
public final class TableMappingSelector<ST extends SourceTable<?,?>,TT extends TargetTable<?,?>>
extends Object
Selects an exact
TableMapping
in a MappingSpec
.- Since:
- 4.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ST extends SourceTable<?,
?>, TT extends TargetTable<?, ?>>
TableMappingSelector<ST,TT> atIndex
(int index) Selects the table mapping at the specified index.static <ST extends SourceTable<?,
?>, TT extends TargetTable<?, ?>>
TableMappingSelector<ST,TT> first()
Selects the first table mapping.static <ST extends SourceTable<?,
?>, TT extends TargetTable<?, ?>>
TableMappingSelector<ST,TT> Selects the first table mapping that meets the criteria of both the source table and the target table.static <ST extends SourceTable<?,
?>, TT extends TargetTable<?, ?>>
TableMappingSelector<ST,TT> whereSource
(Predicate<ST> criteria) Selects the first table mapping that meets the criteria of the source table only.static <ST extends SourceTable<?,
?>, TT extends TargetTable<?, ?>>
TableMappingSelector<ST,TT> whereTarget
(Predicate<TT> criteria) Selects the first table mapping that meets the criteria of the target table only.
-
Method Details
-
first
public static <ST extends SourceTable<?,?>, TableMappingSelector<ST,TT extends TargetTable<?, ?>> TT> first()Selects the first table mapping. -
atIndex
public static <ST extends SourceTable<?,?>, TableMappingSelector<ST,TT extends TargetTable<?, ?>> TT> atIndex(int index) Selects the table mapping at the specified index. -
whereSource
public static <ST extends SourceTable<?,?>, TableMappingSelector<ST,TT extends TargetTable<?, ?>> TT> whereSource(Predicate<ST> criteria) Selects the first table mapping that meets the criteria of the source table only.- See Also:
-
whereTarget
public static <ST extends SourceTable<?,?>, TableMappingSelector<ST,TT extends TargetTable<?, ?>> TT> whereTarget(Predicate<TT> criteria) Selects the first table mapping that meets the criteria of the target table only.- See Also:
-
where
public static <ST extends SourceTable<?,?>, TableMappingSelector<ST,TT extends TargetTable<?, ?>> TT> where(Predicate<ST> sourceCriteria, Predicate<TT> targetCriteria) Selects the first table mapping that meets the criteria of both the source table and the target table.- See Also:
-