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 forand mappings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSingularAttributeSourceEmbeddedImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmbeddableSource
getEmbeddableSource()
Gets the source information about the embeddable/composition.GenerationTiming
getGenerationTiming()
Obtain a description of if/when the attribute value is generated by the database.String
getName()
Obtain the attribute name.NaturalIdMutability
getNaturalIdMutability()
Retrieve the natural id mutabilityString
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.SingularAttributeNature
getSingularAttributeNature()
Obtain the nature of this attribute type.HibernateTypeSource
getTypeInformation()
Obtain information about the Hibernate type (Type
) for this attribute.boolean
isSingular()
Attributes are (coarsely speaking) either singular or plural.boolean
isVirtualAttribute()
Determine 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, sourceMappingDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getSourceType, getXmlNodeName, isIncludedInOptimisticLocking
-
Methods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSource
isBytecodeLazy, isInsertable, isUpdatable
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
Constructor Detail
-
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 Detail
-
getEmbeddableSource
public EmbeddableSource getEmbeddableSource()
Description copied from interface:EmbeddableSourceContributor
Gets the source information about the embeddable/composition.- Specified by:
getEmbeddableSource
in interfaceEmbeddableSourceContributor
- Returns:
- The EmbeddableSource
-
getName
public String getName()
Description copied from interface:AttributeSource
Obtain the attribute name.- Specified by:
getName
in interfaceAttributeSource
- Returns:
- The attribute name.
null
is NOT allowed!
-
isSingular
public boolean isSingular()
Description copied from interface:AttributeSource
Attributes are (coarsely speaking) either singular or plural.- Specified by:
isSingular
in interfaceAttributeSource
- Returns:
true
indicates the attribute is singular (and therefore castable toSingularAttributeSource
);false
indicates it is plural (and therefore castable toPluralAttributeSource
).
-
isVirtualAttribute
public boolean isVirtualAttribute()
Description copied from interface:SingularAttributeSource
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttribute
in interfaceSingularAttributeSource
- Returns:
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;false
indicates the attribute physically exists.
-
getSingularAttributeNature
public SingularAttributeNature getSingularAttributeNature()
Description copied from interface:SingularAttributeSource
Obtain the nature of this attribute type.- Specified by:
getSingularAttributeNature
in interfaceSingularAttributeSource
- Returns:
- The attribute type nature
-
getTypeInformation
public HibernateTypeSource getTypeInformation()
Description copied from interface:AttributeSource
Obtain information about the Hibernate type (Type
) for this attribute.- Specified by:
getTypeInformation
in interfaceAttributeSource
- Returns:
- The Hibernate type information
-
getPropertyAccessorName
public String getPropertyAccessorName()
Description copied from interface:AttributeSource
Obtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorName
in interfaceAttributeSource
- Returns:
- The property accessor style for this attribute.
- See Also:
PropertyAccessStrategy
-
getNaturalIdMutability
public NaturalIdMutability getNaturalIdMutability()
Description copied from interface:SingularAttributeSource
Retrieve the natural id mutability- Specified by:
getNaturalIdMutability
in interfaceSingularAttributeSource
- Returns:
- The mutability, see enum for meanings
-
getGenerationTiming
public GenerationTiming getGenerationTiming()
Description copied from interface:SingularAttributeSource
Obtain a description of if/when the attribute value is generated by the database.- Specified by:
getGenerationTiming
in interfaceSingularAttributeSource
- Returns:
- The attribute value generation information
-
-