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 java.lang.Object
Selects an exactTableMapping
in aMappingSpec
.- Since:
- 4.5.0
- See Also:
MappingSpec.getTableMappings()
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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>where(java.util.function.Predicate<ST> sourceCriteria, java.util.function.Predicate<TT> targetCriteria)
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(java.util.function.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(java.util.function.Predicate<TT> criteria)
Selects the first table mapping that meets the criteria of the target table only.
-
-
-
Method Detail
-
first
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TableMappingSelector<ST,TT> first()
Selects the first table mapping.
-
atIndex
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TableMappingSelector<ST,TT> atIndex(int index)
Selects the table mapping at the specified index.
-
whereSource
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TableMappingSelector<ST,TT> whereSource(java.util.function.Predicate<ST> criteria)
Selects the first table mapping that meets the criteria of the source table only.- See Also:
SourceTable
-
whereTarget
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TableMappingSelector<ST,TT> whereTarget(java.util.function.Predicate<TT> criteria)
Selects the first table mapping that meets the criteria of the target table only.- See Also:
TargetTable
-
where
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TableMappingSelector<ST,TT> where(java.util.function.Predicate<ST> sourceCriteria, java.util.function.Predicate<TT> targetCriteria)
Selects the first table mapping that meets the criteria of both the source table and the target table.- See Also:
SourceTable
,TargetTable
-
-