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.
Consumer used to visit selectable (column/formula) mappings
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
accept
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
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
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
-