Class PluralAttributeElementSourceBasicImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.PluralAttributeElementSourceBasicImpl
-
- All Implemented Interfaces:
ImplicitBasicColumnNameSource
,ImplicitNameSource
,ColumnBindingDefaults
,PluralAttributeElementSource
,PluralAttributeElementSourceBasic
,RelationalValueSourceContainer
public class PluralAttributeElementSourceBasicImpl extends AbstractHbmSourceNode implements PluralAttributeElementSourceBasic, RelationalValueSourceContainer
-
-
Constructor Summary
Constructors Constructor Description PluralAttributeElementSourceBasicImpl(MappingDocument sourceMappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmBasicCollectionElementType jaxbElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areValuesIncludedInInsertByDefault()
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.boolean
areValuesIncludedInUpdateByDefault()
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.boolean
areValuesNullableByDefault()
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.AttributePath
getAttributePath()
Access to the AttributePath for the basic valueMetadataBuildingContext
getBuildingContext()
Access to the current building context.HibernateTypeSourceImpl
getExplicitHibernateTypeSource()
PluralAttributeElementNature
getNature()
List<RelationalValueSource>
getRelationalValueSources()
Obtain the containedRelationalValueSource
references.boolean
isCollectionElement()
Is the basic column the "element column" for a collection?-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
Constructor Detail
-
PluralAttributeElementSourceBasicImpl
public PluralAttributeElementSourceBasicImpl(MappingDocument sourceMappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmBasicCollectionElementType jaxbElement)
-
-
Method Detail
-
getNature
public PluralAttributeElementNature getNature()
- Specified by:
getNature
in interfacePluralAttributeElementSource
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
Description copied from interface:RelationalValueSourceContainer
Obtain the containedRelationalValueSource
references.- Specified by:
getRelationalValueSources
in interfaceRelationalValueSourceContainer
- Returns:
- The contained
RelationalValueSource
references.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()
Description copied from interface:ColumnBindingDefaults
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInInsertByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()
Description copied from interface:ColumnBindingDefaults
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInUpdateByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()
Description copied from interface:ColumnBindingDefaults
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesNullableByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
getExplicitHibernateTypeSource
public HibernateTypeSourceImpl getExplicitHibernateTypeSource()
- Specified by:
getExplicitHibernateTypeSource
in interfacePluralAttributeElementSourceBasic
-
getAttributePath
public AttributePath getAttributePath()
Description copied from interface:ImplicitBasicColumnNameSource
Access to the AttributePath for the basic value- Specified by:
getAttributePath
in interfaceImplicitBasicColumnNameSource
- Returns:
- The AttributePath for the basic value
-
isCollectionElement
public boolean isCollectionElement()
Description copied from interface:ImplicitBasicColumnNameSource
Is the basic column the "element column" for a collection?Historical handling for these in
hbm.xml
binding was to simply name the column "elt".- Specified by:
isCollectionElement
in interfaceImplicitBasicColumnNameSource
- Returns:
true
if the column being named is the collection element column;false
otherwise.
-
getBuildingContext
public MetadataBuildingContext getBuildingContext()
Description copied from interface:ImplicitNameSource
Access to the current building context.- Specified by:
getBuildingContext
in interfaceImplicitNameSource
- Returns:
- The building context
-
-