Package org.hibernate.metamodel.mapping
Interface SelectableConsumer
-
- All Known Subinterfaces:
TableInsertBuilder,TableUpdateBuilder<O>
- All Known Implementing Classes:
AbstractTableInsertBuilder,AbstractTableUpdateBuilder,CollectionRowDeleteByUpdateSetNullBuilder,ColumnValueParameterList,MutationGroupBuilder,TableInsertBuilderStandard,TableInsertReturningBuilder,TableUpdateBuilderSkipped,TableUpdateBuilderStandard
- 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 classSelectableConsumer.MutableSelectableMapping
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(int selectionIndex, SelectableMapping selectableMapping)Accept the selectable mapping.default voidaccept(String tableName, String[] columnNames, IntFunction<JdbcMapping> jdbcMappings)Simple form allowing visitation over a number of column names within a table.default voidaccept(String tableName, JdbcMappingContainer base, String[] columnNames)Simple form of visitation over a number of columns by name, using a separateSelectableMappingsas 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 separateSelectableMappingsas 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
-
-