Interface RelationalValueSourceHelper.ColumnsAndFormulasSource
- All Known Implementing Classes:
BasicAttributeColumnsAndFormulasSource,ManyToOneAttributeColumnsAndFormulasSource,RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Enclosing class:
- RelationalValueSourceHelper
public static interface RelationalValueSourceHelper.ColumnsAndFormulasSource
Internal unifying contract used in creating
Column
and Formula instances. 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
Modifier and TypeMethodDescriptionAccess to any column defined via XML attribute.Access to any nested<column/>or<formula />XML elements.Access to any formula defined via XML attribute.The name of the source.What kind of XML element does this information come from?booleanisUnique()
-
Method Details
-
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:
-
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() -
getIndexConstraintNames
-
getUniqueKeyConstraintNames
-