Class RelationalValueSourceHelper
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.RelationalValueSourceHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnSourcebuildColumnSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build a singleRelationalValueSourcewhich is required to be a column.static List<ColumnSource>buildColumnSources(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build the corresponding list ofColumnSource.static RelationalValueSourcebuildValueSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build a singleRelationalValueSource.static List<RelationalValueSource>buildValueSources(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build the corresponding list ofRelationalValueSource
-
Constructor Details
-
RelationalValueSourceHelper
public RelationalValueSourceHelper()
-
-
Method Details
-
buildValueSource
public static RelationalValueSource buildValueSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build a singleRelationalValueSource. More than oneRelationalValueSourcewill result in an exception.- Parameters:
mappingDocument- the mapping documentcontainingTableName- The logical name of the table containing the relational valuescolumnsAndFormulasSource- the adapter describing the value sources.- Returns:
- The single RelationalValueSource.
-
buildColumnSource
public static ColumnSource buildColumnSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build a singleRelationalValueSourcewhich is required to be a column. More than oneRelationalValueSourcewill result in an exception. A formula, rather than a column, will result in an exception.- Parameters:
mappingDocument- the mapping documentcontainingTableName- The logical name of the table containing the relational valuescolumnsAndFormulasSource- the adapter describing the value sources.- Returns:
- The single ColumnSource.
-
buildColumnSources
public static List<ColumnSource> buildColumnSources(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build the corresponding list ofColumnSource. Any formula, rather than a column, will result in an exception.- Parameters:
mappingDocument- the mapping documentcontainingTableName- The logical name of the table containing the relational valuescolumnsAndFormulasSource- the adapter describing the value sources.- Returns:
- The corresponding list.
-
buildValueSources
public static List<RelationalValueSource> buildValueSources(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource) Given aRelationalValueSourceHelper.ColumnsAndFormulasSource, build the corresponding list ofRelationalValueSource- Parameters:
mappingDocument- the mapping documentcontainingTableName- The logical name of the table containing the relational valuescolumnsAndFormulasSource- the adapter describing the value sources.- Returns:
- The corresponding list.
-