Class BasicAttributeColumnsAndFormulasSource
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
- org.hibernate.boot.model.source.internal.hbm.BasicAttributeColumnsAndFormulasSource
-
- All Implemented Interfaces:
RelationalValueSourceHelper.ColumnsAndFormulasSource
public class BasicAttributeColumnsAndFormulasSource extends RelationalValueSourceHelper.AbstractColumnsAndFormulasSource implements RelationalValueSourceHelper.ColumnsAndFormulasSource
ColumnAndFormulaSource implementation handling basic attribute mappings.
-
-
Constructor Summary
Constructors Constructor Description BasicAttributeColumnsAndFormulasSource(JaxbHbmBasicAttributeType basicAttributeMapping)
-
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()
SizeSource
getSizeSource()
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()
-
-
-
Constructor Detail
-
BasicAttributeColumnsAndFormulasSource
public BasicAttributeColumnsAndFormulasSource(JaxbHbmBasicAttributeType basicAttributeMapping)
-
-
Method Detail
-
getSourceType
public XmlElementMetadata getSourceType()
Description copied from interface:RelationalValueSourceHelper.ColumnsAndFormulasSource
What kind of XML element does this information come from?- Specified by:
getSourceType
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- 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.- Specified by:
getSourceName
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- 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.
-
getSizeSource
public SizeSource getSizeSource()
- Specified by:
getSizeSource
in interfaceRelationalValueSourceHelper.ColumnsAndFormulasSource
- Overrides:
getSizeSource
in classRelationalValueSourceHelper.AbstractColumnsAndFormulasSource
-
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
-
-