Interface RelationalValueSourceHelper.ColumnsAndFormulasSource
-
- All Known Implementing Classes:
BasicAttributeColumnsAndFormulasSource
,ManyToOneAttributeColumnsAndFormulasSource
,RelationalValueSourceHelper.AbstractColumnsAndFormulasSource
- Enclosing class:
- RelationalValueSourceHelper
public static interface RelationalValueSourceHelper.ColumnsAndFormulasSource
Internal unifying contract used in creatingColumn
andFormula
instances. It adapts the variances across the different mappings which contribute column/formula information. For example, consider the<property/>
mapping which might have:- a
column
XML attribute - a
formula
XML attribute - one or more nested
<column/>
XML elements - a nested
<formula/>
XML element
<timestamp/>
mapping, which can only have:- a
column
XML attribute
-
-
Method Summary
All Methods Instance Methods Abstract 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()
-
-
-
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 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
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()
-
-