Top Description Inners Methods
org.hibernate.metamodel.mapping

public Interface SelectableConsumer

Known Direct Subinterfaces
org.hibernate.sql.model.ast.builder.TableInsertBuilder, org.hibernate.sql.model.ast.builder.TableUpdateBuilder
Known Direct Implementers
org.hibernate.sql.model.ast.ColumnValueParameterList, org.hibernate.sql.model.ast.builder.MutationGroupBuilder
Annotations
@FunctionalInterface
Imports
java.util.List, java.util.function.BiConsumer, .IntFunction

Consumer used to visit selectable (column/formula) mappings
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public void
accept(int selectionIndex, SelectableMapping selectableMapping)

Accept the selectable mapping.

public default void
accept(String tableName, JdbcMappingContainer base, String[] columnNames)

Simple form of visitation over a number of columns by name, using a separate SelectableMappings as a base for additional details.

public default void
accept(String tableName, String[] columnNames, IntFunction<JdbcMapping> jdbcMappings)

Simple form allowing visitation over a number of column names within a table.

Method Detail

acceptback to summary
public void accept(int selectionIndex, SelectableMapping selectableMapping)

Accept the selectable mapping. `selectIndex` is its position, the meaning of which depends on the impl and whether SelectableMappings#forEachSelectable(SelectableConsumer) or SelectableMappings#forEachSelectable(int, SelectableConsumer) was used

acceptback to summary
public default void accept(String tableName, JdbcMappingContainer base, String[] columnNames)

Simple form of visitation over a number of columns by name, using a separate SelectableMappings 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:

acceptback to summary
public 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

org.hibernate.metamodel.mapping back to summary

public Class SelectableConsumer.MutableSelectableMapping

extends Object
implements SelectableMapping
Class Inheritance
  • java.lang.Object
  • org.hibernate.metamodel.mapping.SelectableConsumer.MutableSelectableMapping
All Implemented Interfaces
org.hibernate.metamodel.mapping.SelectableMapping, org.hibernate.metamodel.mapping.SqlTypedMapping

Field Summary

Modifier and TypeField and Description
private final JdbcMappingContainer
private final String[]
private int
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public String
public String
getContainingTableExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getContainingTableExpression.

The name of the table to which this selectable is mapped
public String
getCustomReadExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getCustomReadExpression.

The selection's read expression accounting for formula treatment as well as ColumnTransformer#read()
public String
public JdbcMapping
public Long
public Integer
public Integer
public String
public boolean
isFormula()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isFormula.

Is the mapping a formula instead of a physical column?
public boolean
public boolean
isNullable()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isNullable.

Is the mapping considered nullable?
public boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseback to summary
private final JdbcMappingContainer base
columnNamesback to summary
private final String[] columnNames
indexback to summary
private int index
tableNameback to summary
private final String tableName

Constructor Detail

MutableSelectableMappingback to summary
public MutableSelectableMapping(String tableName, JdbcMappingContainer base, String[] columnNames)

Method Detail

forEachback to summary
private void forEach(BiConsumer<Integer, SelectableMapping> consumer)
getColumnDefinitionback to summary
public String getColumnDefinition()

Implements org.hibernate.metamodel.mapping.SqlTypedMapping.getColumnDefinition.

Annotations
@Override
getContainingTableExpressionback to summary
public String getContainingTableExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getContainingTableExpression.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.getContainingTableExpression.

The name of the table to which this selectable is mapped

Annotations
@Override
getCustomReadExpressionback to summary
public String getCustomReadExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getCustomReadExpression.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.getCustomReadExpression.

The selection's read expression accounting for formula treatment as well as ColumnTransformer#read()

Annotations
@Override
getCustomWriteExpressionback to summary
public String getCustomWriteExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getCustomWriteExpression.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.getCustomWriteExpression.

The selection's write expression accounting ColumnTransformer#write()

Annotations
@Override
getJdbcMappingback to summary
public JdbcMapping getJdbcMapping()

Implements org.hibernate.metamodel.mapping.SqlTypedMapping.getJdbcMapping.

Annotations
@Override
getLengthback to summary
public Long getLength()

Implements org.hibernate.metamodel.mapping.SqlTypedMapping.getLength.

Annotations
@Override
getPrecisionback to summary
public Integer getPrecision()

Implements org.hibernate.metamodel.mapping.SqlTypedMapping.getPrecision.

Annotations
@Override
getScaleback to summary
public Integer getScale()

Implements org.hibernate.metamodel.mapping.SqlTypedMapping.getScale.

Annotations
@Override
getSelectionExpressionback to summary
public String getSelectionExpression()

Implements org.hibernate.metamodel.mapping.SelectableMapping.getSelectionExpression.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.getSelectionExpression.

The selection's expression. This is the column name or formula

Annotations
@Override
isFormulaback to summary
public boolean isFormula()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isFormula.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.isFormula.

Is the mapping a formula instead of a physical column?

Annotations
@Override
isInsertableback to summary
public boolean isInsertable()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isInsertable.

Annotations
@Override
isNullableback to summary
public boolean isNullable()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isNullable.

Doc from org.hibernate.metamodel.mapping.SelectableMapping.isNullable.

Is the mapping considered nullable?

Annotations
@Override
isPartitionedback to summary
public boolean isPartitioned()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isPartitioned.

Annotations
@Override
isUpdateableback to summary
public boolean isUpdateable()

Implements org.hibernate.metamodel.mapping.SelectableMapping.isUpdateable.

Annotations
@Override