Class ManyToOneAttributeColumnsAndFormulasSource
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
- org.hibernate.boot.model.source.internal.hbm.ManyToOneAttributeColumnsAndFormulasSource
-
- All Implemented Interfaces:
RelationalValueSourceHelper.ColumnsAndFormulasSource
public class ManyToOneAttributeColumnsAndFormulasSource extends RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
ColumnAndFormulaSource implementation handling many-to-one attribute mappings.
-
-
Constructor Summary
Constructors Constructor Description ManyToOneAttributeColumnsAndFormulasSource(JaxbHbmManyToOneType manyToOneMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColumnAttribute()
Access to any column defined via XML attribute.List
getColumnOrFormulaElements()
Access to any nested<column/>
or<formula />
XML elements.String
getFormulaAttribute()
Access to any formula defined via XML attribute.Set<String>
getIndexConstraintNames()
String
getSourceName()
The name of the source.XmlElementMetadata
getSourceType()
What kind of XML element does this information come from?Set<String>
getUniqueKeyConstraintNames()
Boolean
isNullable()
boolean
isUnique()
-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
getSizeSource
-
-
-
-
Constructor Detail
-
ManyToOneAttributeColumnsAndFormulasSource
public ManyToOneAttributeColumnsAndFormulasSource(JaxbHbmManyToOneType manyToOneMapping)
-
-
Method Detail
-
getSourceType
public XmlElementMetadata getSourceType()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
What kind of XML element does this information come from?- Returns:
- The source XML element type
-
getSourceName
public String getSourceName()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
The name of the source. May benull
if none was specified. Will be treated asnull
if the nature says it cannot be named.- Returns:
- The name of the source.
- See Also:
XmlElementMetadata.canBeNamed()
-
getFormulaAttribute
public String getFormulaAttribute()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
Access to any formula defined via XML attribute.- Specified by:
getFormulaAttribute
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getFormulaAttribute
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Returns:
- formula, if one, as defined via XML attribute.
-
getColumnAttribute
public String getColumnAttribute()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
Access to any column defined via XML attribute.- Specified by:
getColumnAttribute
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getColumnAttribute
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Returns:
- column, if one, as defined via XML attribute.
-
getColumnOrFormulaElements
public List getColumnOrFormulaElements()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
Access to any nested<column/>
or<formula />
XML elements.- Specified by:
getColumnOrFormulaElements
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getColumnOrFormulaElements
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Returns:
- columns or formulas defined via nested XML elements.
-
isNullable
public Boolean isNullable()
- Specified by:
isNullable
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
isNullable
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
getIndexConstraintNames
public Set<String> getIndexConstraintNames()
- Specified by:
getIndexConstraintNames
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getIndexConstraintNames
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
isUnique
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
getUniqueKeyConstraintNames
public Set<String> getUniqueKeyConstraintNames()
- Specified by:
getUniqueKeyConstraintNames
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getUniqueKeyConstraintNames
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
-