Top Description Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public abstract Class AbstractSingularAttributeSourceEmbeddedImpl

extends AbstractHbmSourceNode
implements SingularAttributeSourceEmbedded
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.SingularAttributeSourceEmbedded, org.hibernate.boot.model.source.spi.EmbeddableSourceContributor, org.hibernate.boot.model.source.spi.SingularAttributeSource, org.hibernate.boot.model.source.spi.AttributeSource, org.hibernate.boot.model.source.spi.ToolingHintContextContainer
Known Direct Subclasses
org.hibernate.boot.model.source.internal.hbm.IdentifierSourceAggregatedCompositeImpl.SingularAttributeSourceAggregatedCompositeIdentifierImpl, org.hibernate.boot.model.source.internal.hbm.SingularAttributeSourceEmbeddedImpl
Imports
java.util.List, org.hibernate.boot.model.source.spi.AttributePath, .AttributeRole, .AttributeSourceContainer, .EmbeddableSource, .EmbeddedAttributeMapping, .HibernateTypeSource, .NaturalIdMutability, .SingularAttributeNature, .SingularAttributeSourceEmbedded, .ToolingHintContext, org.hibernate.tuple.GenerationTiming

Common base class for <component/> and <composite-id/> mappings.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EmbeddableSource
private final EmbeddedAttributeMapping
private NaturalIdMutability

Constructor Summary

AccessConstructor and Description
protected
AbstractSingularAttributeSourceEmbeddedImpl(final MappingDocument sourceMappingDocument, final AttributeSourceContainer container, final EmbeddedAttributeMapping embeddedAttributeMapping, List<E> nestedAttributeMappings, boolean isDynamic, NaturalIdMutability naturalIdMutability, String logicalTableName)

public
AbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, EmbeddedAttributeMapping jaxbEmbeddedAttributeMapping, EmbeddableSource embeddableSource, NaturalIdMutability naturalIdMutability)

Method Summary

Modifier and TypeMethod and Description
public EmbeddableSource
getEmbeddableSource()

Implements org.hibernate.boot.model.source.spi.EmbeddableSourceContributor.getEmbeddableSource.

Gets the source information about the embeddable/composition.
public GenerationTiming
getGenerationTiming()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Deprecated as a consequence of GenerationTiming being deprecated.
Obtain a description of if/when the attribute value is generated by the database.
public String
public NaturalIdMutability
public String
getPropertyAccessorName()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getPropertyAccessorName.

Obtain the name of the property accessor style used to access this attribute.
public SingularAttributeNature
public HibernateTypeSource
getTypeInformation()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getTypeInformation.

Obtain information about the Hibernate type (org.hibernate.type.Type) for this attribute.
public boolean
isSingular()

Implements org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Attributes are (coarsely speaking) either singular or plural.
public boolean
isVirtualAttribute()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

embeddableSourceback to summary
private final EmbeddableSource embeddableSource
jaxbEmbeddedAttributeMappingback to summary
private final EmbeddedAttributeMapping jaxbEmbeddedAttributeMapping
naturalIdMutabilityback to summary
private NaturalIdMutability naturalIdMutability

Constructor Detail

AbstractSingularAttributeSourceEmbeddedImplback to summary
protected AbstractSingularAttributeSourceEmbeddedImpl(final MappingDocument sourceMappingDocument, final AttributeSourceContainer container, final EmbeddedAttributeMapping embeddedAttributeMapping, List<E> nestedAttributeMappings, boolean isDynamic, NaturalIdMutability naturalIdMutability, String logicalTableName)
AbstractSingularAttributeSourceEmbeddedImplback to summary
public AbstractSingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, EmbeddedAttributeMapping jaxbEmbeddedAttributeMapping, EmbeddableSource embeddableSource, NaturalIdMutability naturalIdMutability)

Method Detail

getEmbeddableSourceback to summary
public EmbeddableSource getEmbeddableSource()

Implements org.hibernate.boot.model.source.spi.EmbeddableSourceContributor.getEmbeddableSource.

Doc from org.hibernate.boot.model.source.spi.EmbeddableSourceContributor.getEmbeddableSource.

Gets the source information about the embeddable/composition.

Returns:EmbeddableSource

The EmbeddableSource

Annotations
@Override
getGenerationTimingback to summary
public GenerationTiming getGenerationTiming()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Deprecated

as a consequence of GenerationTiming being deprecated. See corresponding docs for further information.

Obtain a description of if/when the attribute value is generated by the database.

Returns:GenerationTiming

The attribute value generation information

Annotations
@Override
getNameback to summary
public String getName()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getName.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.getName.

Obtain the attribute name.

Returns:String

The attribute name. null is NOT allowed!

Annotations
@Override
getNaturalIdMutabilityback to summary
public NaturalIdMutability getNaturalIdMutability()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getNaturalIdMutability.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.getNaturalIdMutability.

Retrieve the natural id mutability

Returns:NaturalIdMutability

The mutability, see enum for meanings

Annotations
@Override
getPropertyAccessorNameback to summary
public String getPropertyAccessorName()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getPropertyAccessorName.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.getPropertyAccessorName.

Obtain the name of the property accessor style used to access this attribute.

Returns:String

The property accessor style for this attribute.

Annotations
@Override
getSingularAttributeNatureback to summary
public SingularAttributeNature getSingularAttributeNature()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getSingularAttributeNature.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.getSingularAttributeNature.

Obtain the nature of this attribute type.

Returns:SingularAttributeNature

The attribute type nature

Annotations
@Override
getTypeInformationback to summary
public HibernateTypeSource getTypeInformation()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getTypeInformation.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.getTypeInformation.

Obtain information about the Hibernate type (org.hibernate.type.Type) for this attribute.

Returns:HibernateTypeSource

The Hibernate type information

Annotations
@Override
isSingularback to summary
public boolean isSingular()

Implements org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Attributes are (coarsely speaking) either singular or plural.

Returns:boolean

true indicates the attribute is singular (and therefore castable to SingularAttributeSource); false indicates it is plural (and therefore castable to PluralAttributeSource).

Annotations
@Override
isVirtualAttributeback to summary
public boolean isVirtualAttribute()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.

Returns:boolean

true indicates the attribute is virtual, meaning it does NOT exist on the domain model; false indicates the attribute physically exists.

Annotations
@Override