Package org.hibernate.metamodel.mapping
Interface SelectableConsumer
-
- All Known Subinterfaces:
TableInsertBuilder
,TableUpdateBuilder<O>
- All Known Implementing Classes:
AbstractTableInsertBuilder
,AbstractTableUpdateBuilder
,CollectionRowDeleteByUpdateSetNullBuilder
,ColumnValueParameterList
,MutationGroupBuilder
,TableInsertBuilderStandard
,TableInsertReturningBuilder
,TableMergeBuilder
,TableUpdateBuilderSkipped
,TableUpdateBuilderStandard
,TableUpdateReturningBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SelectableConsumer
Consumer used to visit selectable (column/formula) mappings
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SelectableConsumer.MutableSelectableMapping
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(int selectionIndex, SelectableMapping selectableMapping)
Accept the selectable mapping.default void
accept(String tableName, String[] columnNames, IntFunction<JdbcMapping> jdbcMappings)
Simple form allowing visitation over a number of column names within a table.default void
accept(String tableName, JdbcMappingContainer base, String[] columnNames)
Simple form of visitation over a number of columns by name, using a separateSelectableMappings
as a base for additional details.
-
-
-
Method Detail
-
accept
void accept(int selectionIndex, SelectableMapping selectableMapping)
Accept the selectable mapping. `selectIndex` is its position, the meaning of which depends on the impl and whetherSelectableMappings.forEachSelectable(SelectableConsumer)
orSelectableMappings.forEachSelectable(int, SelectableConsumer)
was used
-
accept
default void accept(String tableName, JdbcMappingContainer base, String[] columnNames)
Simple form of visitation over a number of columns by name, using a separateSelectableMappings
as a base for additional details.Intended for use in visiting table keys, where we know JdbcMappings, etc. from the identifier.
The expectation here is for the following details to be available:
-
accept
default void accept(String tableName, String[] columnNames, IntFunction<JdbcMapping> jdbcMappings)
Simple form allowing visitation over a number of column names within a table. Very limited functionality in terms of the visited SelectableMappings will not have any defined JdbcMapping, etc
-
-