Class AbstractSingularAttributeSourceEmbeddedImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractSingularAttributeSourceEmbeddedImpl
- All Implemented Interfaces:
AttributeSource,EmbeddableSourceContributor,SingularAttributeSource,SingularAttributeSourceEmbedded,ToolingHintContextContainer
public abstract class AbstractSingularAttributeSourceEmbeddedImpl
extends AbstractHbmSourceNode
implements SingularAttributeSourceEmbedded
Common base class for
<component/> and <composite-id/> mappings.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, EmbeddedAttributeMapping embeddedAttributeMapping, List nestedAttributeMappings, boolean isDynamic, NaturalIdMutability naturalIdMutability, String logicalTableName) AbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, EmbeddedAttributeMapping jaxbEmbeddedAttributeMapping, EmbeddableSource embeddableSource, NaturalIdMutability naturalIdMutability) -
Method Summary
Modifier and TypeMethodDescriptionGets the source information about the embeddable/composition.Obtain a description of if/when the attribute value is generated by the database.getName()Obtain the attribute name.Retrieve the natural id mutabilityObtain the name of the property accessor style used to access this attribute.Obtain the nature of this attribute type.Obtain information about the Hibernate type (Type) for this attribute.booleanAttributes are (coarsely speaking) either singular or plural.booleanDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getSourceType, getXmlNodeName, isIncludedInOptimisticLockingMethods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSource
isBytecodeLazy, isInsertable, isUpdatableMethods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
Constructor Details
-
AbstractSingularAttributeSourceEmbeddedImpl
protected AbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, EmbeddedAttributeMapping embeddedAttributeMapping, List nestedAttributeMappings, boolean isDynamic, NaturalIdMutability naturalIdMutability, String logicalTableName) -
AbstractSingularAttributeSourceEmbeddedImpl
public AbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, EmbeddedAttributeMapping jaxbEmbeddedAttributeMapping, EmbeddableSource embeddableSource, NaturalIdMutability naturalIdMutability)
-
-
Method Details
-
getEmbeddableSource
Description copied from interface:EmbeddableSourceContributorGets the source information about the embeddable/composition.- Specified by:
getEmbeddableSourcein interfaceEmbeddableSourceContributor- Returns:
- The EmbeddableSource
-
getName
Description copied from interface:AttributeSourceObtain the attribute name.- Specified by:
getNamein interfaceAttributeSource- Returns:
- The attribute name.
nullis NOT allowed!
-
isSingular
public boolean isSingular()Description copied from interface:AttributeSourceAttributes are (coarsely speaking) either singular or plural.- Specified by:
isSingularin interfaceAttributeSource- Returns:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
isVirtualAttribute
public boolean isVirtualAttribute()Description copied from interface:SingularAttributeSourceDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttributein interfaceSingularAttributeSource- Returns:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
getSingularAttributeNature
Description copied from interface:SingularAttributeSourceObtain the nature of this attribute type.- Specified by:
getSingularAttributeNaturein interfaceSingularAttributeSource- Returns:
- The attribute type nature
-
getTypeInformation
Description copied from interface:AttributeSourceObtain information about the Hibernate type (Type) for this attribute.- Specified by:
getTypeInformationin interfaceAttributeSource- Returns:
- The Hibernate type information
-
getPropertyAccessorName
Description copied from interface:AttributeSourceObtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorNamein interfaceAttributeSource- Returns:
- The property accessor style for this attribute.
- See Also:
-
getNaturalIdMutability
Description copied from interface:SingularAttributeSourceRetrieve the natural id mutability- Specified by:
getNaturalIdMutabilityin interfaceSingularAttributeSource- Returns:
- The mutability, see enum for meanings
-
getGenerationTiming
Description copied from interface:SingularAttributeSourceObtain a description of if/when the attribute value is generated by the database.- Specified by:
getGenerationTimingin interfaceSingularAttributeSource- Returns:
- The attribute value generation information
-