Interface RelationalValueSourceHelper.ColumnsAndFormulasSource
-
- All Known Implementing Classes:
BasicAttributeColumnsAndFormulasSource,ManyToOneAttributeColumnsAndFormulasSource,RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Enclosing class:
- RelationalValueSourceHelper
public static interface RelationalValueSourceHelper.ColumnsAndFormulasSourceInternal unifying contract used in creatingColumnandFormulainstances. It adapts the variances across the different mappings which contribute column/formula information. For example, consider the<property/>mapping which might have:- a
columnXML attribute - a
formulaXML attribute - one or more nested
<column/>XML elements - a nested
<formula/>XML element
<timestamp/>mapping, which can only have:- a
columnXML attribute
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetColumnAttribute()Access to any column defined via XML attribute.ListgetColumnOrFormulaElements()Access to any nested<column/>or<formula />XML elements.StringgetFormulaAttribute()Access to any formula defined via XML attribute.Set<String>getIndexConstraintNames()SizeSourcegetSizeSource()StringgetSourceName()The name of the source.XmlElementMetadatagetSourceType()What kind of XML element does this information come from?Set<String>getUniqueKeyConstraintNames()BooleanisNullable()booleanisUnique()
-
-
-
Method Detail
-
getSourceType
XmlElementMetadata getSourceType()
What kind of XML element does this information come from?- Returns:
- The source XML element type
-
getSourceName
String getSourceName()
The name of the source. May benullif none was specified. Will be treated asnullif the nature says it cannot be named.- Returns:
- The name of the source.
- See Also:
XmlElementMetadata.canBeNamed()
-
getFormulaAttribute
String getFormulaAttribute()
Access to any formula defined via XML attribute.- Returns:
- formula, if one, as defined via XML attribute.
-
getColumnOrFormulaElements
List getColumnOrFormulaElements()
Access to any nested<column/>or<formula />XML elements.- Returns:
- columns or formulas defined via nested XML elements.
-
getColumnAttribute
String getColumnAttribute()
Access to any column defined via XML attribute.- Returns:
- column, if one, as defined via XML attribute.
-
getSizeSource
SizeSource getSizeSource()
-
isNullable
Boolean isNullable()
-
isUnique
boolean isUnique()
-
-