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 booleanareValuesIncludedInInsertByDefault()How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesIncludedInUpdateByDefault()How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesNullableByDefault()How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.AttributePathgetAttributePath()Access to the AttributePath for the basic valueMetadataBuildingContextgetBuildingContext()Access to the current building context.HibernateTypeSourceImplgetExplicitHibernateTypeSource()PluralAttributeElementNaturegetNature()List<RelationalValueSource>getRelationalValueSources()Obtain the containedRelationalValueSourcereferences.booleanisCollectionElement()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:
getNaturein interfacePluralAttributeElementSource
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
Description copied from interface:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- Specified by:
getRelationalValueSourcesin interfaceRelationalValueSourceContainer- Returns:
- The contained
RelationalValueSourcereferences.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInInsertByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInUpdateByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesNullableByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
getExplicitHibernateTypeSource
public HibernateTypeSourceImpl getExplicitHibernateTypeSource()
- Specified by:
getExplicitHibernateTypeSourcein interfacePluralAttributeElementSourceBasic
-
getAttributePath
public AttributePath getAttributePath()
Description copied from interface:ImplicitBasicColumnNameSourceAccess to the AttributePath for the basic value- Specified by:
getAttributePathin interfaceImplicitBasicColumnNameSource- Returns:
- The AttributePath for the basic value
-
isCollectionElement
public boolean isCollectionElement()
Description copied from interface:ImplicitBasicColumnNameSourceIs the basic column the "element column" for a collection?Historical handling for these in
hbm.xmlbinding was to simply name the column "elt".- Specified by:
isCollectionElementin interfaceImplicitBasicColumnNameSource- Returns:
trueif the column being named is the collection element column;falseotherwise.
-
getBuildingContext
public MetadataBuildingContext getBuildingContext()
Description copied from interface:ImplicitNameSourceAccess to the current building context.- Specified by:
getBuildingContextin interfaceImplicitNameSource- Returns:
- The building context
-
-