Class RelationalValueSourceHelper
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.RelationalValueSourceHelper
-
public class RelationalValueSourceHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
static interface
RelationalValueSourceHelper.ColumnsAndFormulasSource
-
Constructor Summary
Constructors Constructor Description RelationalValueSourceHelper()
-
Method Summary
-
-
-
Method Detail
-
buildValueSource
public static RelationalValueSource buildValueSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource)
Given aRelationalValueSourceHelper.ColumnsAndFormulasSource
, build a singleRelationalValueSource
. More than oneRelationalValueSource
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 RelationalValueSource.
-
buildColumnSource
public static ColumnSource buildColumnSource(MappingDocument mappingDocument, String containingTableName, RelationalValueSourceHelper.ColumnsAndFormulasSource columnsAndFormulasSource)
Given aRelationalValueSourceHelper.ColumnsAndFormulasSource
, build a singleRelationalValueSource
which is required to be a column. More than oneRelationalValueSource
will 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.
-
-