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

pack-priv Class IdentifierSourceNonAggregatedCompositeImpl

extends Object
implements IdentifierSourceNonAggregatedComposite, EmbeddableSource
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.EmbeddableSource, org.hibernate.boot.model.source.spi.AttributeSourceContainer, org.hibernate.boot.model.source.spi.ToolingHintContextContainer, org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite, org.hibernate.boot.model.source.spi.CompositeIdentifierSource, org.hibernate.boot.model.source.spi.EmbeddableSourceContributor, org.hibernate.boot.model.source.spi.IdentifierSource
Imports
java.util.ArrayList, .List, .Map, org.hibernate.EntityMode, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeIdType, org.hibernate.boot.model.IdentifierGeneratorDefinition, .JavaTypeDescriptor, org.hibernate.boot.model.source.spi.AttributePath, .AttributeRole, .AttributeSource, .AttributeSourceContainer, .EmbeddableSource, .IdentifierSourceNonAggregatedComposite, .LocalMetadataBuildingContext, .SingularAttributeSource, .ToolingHintContext, org.hibernate.id.EntityIdentifierNature, org.hibernate.internal.util.StringHelper

Models a composite identifier with is not not encapsulated in a dedicated "id class".
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AttributePath
private final AttributeRole
private final List<E>
private final IdentifierGeneratorDefinition
private final EmbeddableSource
private final RootEntitySourceImpl
private final ToolingHintContext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<AttributeSource>
public AttributePath
public AttributeRole
public List<SingularAttributeSource>
public EmbeddableSource
getEmbeddableSource()

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

Gets the source information about the embeddable/composition.
public EmbeddableSource
public IdentifierGeneratorDefinition
public IdentifierGeneratorDefinition
getIndividualAttributeIdGenerator(String
The name of the individual attribute within the composite identifier.
identifierAttributeName
)

Implements org.hibernate.boot.model.source.spi.CompositeIdentifierSource.getIndividualAttributeIdGenerator.

Handle silly SpecJ reading of the JPA spec.
public LocalMetadataBuildingContext
public EntityIdentifierNature
getNature()

Implements org.hibernate.boot.model.source.spi.IdentifierSource.getNature.

Obtain the nature of this identifier source.
public String
public ToolingHintContext
public Map<EntityMode, String>
public JavaTypeDescriptor
private EmbeddableSource
interpretIdClass(MappingDocument mappingDocument, JaxbHbmCompositeIdType jaxbHbmCompositeIdMapping)

public boolean
isDynamic()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.isDynamic.

Indicates whether this embeddable/component is dynamic (represented as a Map), or whether a dedicated class for it is available.
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributePathBaseback to summary
private final AttributePath attributePathBase
attributeRoleBaseback to summary
private final AttributeRole attributeRoleBase
attributeSourcesback to summary
private final List<E> attributeSources
generatorDefinitionback to summary
private final IdentifierGeneratorDefinition generatorDefinition
idClassSourceback to summary
private final EmbeddableSource idClassSource
rootEntitySourceback to summary
private final RootEntitySourceImpl rootEntitySource
toolingHintContextback to summary
private final ToolingHintContext toolingHintContext

Constructor Detail

IdentifierSourceNonAggregatedCompositeImplback to summary
pack-priv IdentifierSourceNonAggregatedCompositeImpl(RootEntitySourceImpl rootEntitySource)

Method Detail

attributeSourcesback to summary
public List<AttributeSource> attributeSources()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.attributeSources.

Doc from org.hibernate.boot.model.source.spi.AttributeSourceContainer.attributeSources.

Obtain this container's attribute sources.

Returns:List<AttributeSource>

The attribute sources.

Annotations
@Override
@SuppressWarnings:unchecked
getAttributePathBaseback to summary
public AttributePath getAttributePathBase()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.getAttributePathBase.

Annotations
@Override
getAttributeRoleBaseback to summary
public AttributeRole getAttributeRoleBase()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.getAttributeRoleBase.

Annotations
@Override
getAttributeSourcesMakingUpIdentifierback to summary
public List<SingularAttributeSource> getAttributeSourcesMakingUpIdentifier()

Implements org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite.getAttributeSourcesMakingUpIdentifier.

Doc from org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite.getAttributeSourcesMakingUpIdentifier.

Obtain the source descriptor for the identifier attribute.

Returns:List<SingularAttributeSource>

The identifier attribute source.

Annotations
@Override
@SuppressWarnings:unchecked
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
getIdClassSourceback to summary
public EmbeddableSource getIdClassSource()

Implements org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite.getIdClassSource.

Doc from org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite.getIdClassSource.

Retrieve the source information for the javax.persistence.IdClass definition

Returns:EmbeddableSource

The IdClass source information, or null if none.

Annotations
@Override
getIdentifierGeneratorDescriptorback to summary
public IdentifierGeneratorDefinition getIdentifierGeneratorDescriptor()

Implements org.hibernate.boot.model.source.spi.IdentifierSource.getIdentifierGeneratorDescriptor.

Doc from org.hibernate.boot.model.source.spi.IdentifierSource.getIdentifierGeneratorDescriptor.

Obtain the identifier generator source.

Returns:IdentifierGeneratorDefinition

The generator source.

Annotations
@Override
getIndividualAttributeIdGeneratorback to summary
public IdentifierGeneratorDefinition getIndividualAttributeIdGenerator(String identifierAttributeName)

Implements org.hibernate.boot.model.source.spi.CompositeIdentifierSource.getIndividualAttributeIdGenerator.

Doc from org.hibernate.boot.model.source.spi.CompositeIdentifierSource.getIndividualAttributeIdGenerator.

Handle silly SpecJ reading of the JPA spec. They believe composite identifiers should have "partial generation" capabilities.

Parameters
identifierAttributeName:String

The name of the individual attribute within the composite identifier.

Returns:IdentifierGeneratorDefinition

The generator for the named attribute (within the composite).

Annotations
@Override
getLocalMetadataBuildingContextback to summary
public LocalMetadataBuildingContext getLocalMetadataBuildingContext()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.getLocalMetadataBuildingContext.

Doc from org.hibernate.boot.model.source.spi.AttributeSourceContainer.getLocalMetadataBuildingContext.

Obtain the local binding context associated with this container.

Returns:LocalMetadataBuildingContext

The local binding context

Annotations
@Override
getNatureback to summary
public EntityIdentifierNature getNature()

Implements org.hibernate.boot.model.source.spi.IdentifierSource.getNature.

Doc from org.hibernate.boot.model.source.spi.IdentifierSource.getNature.

Obtain the nature of this identifier source.

Returns:EntityIdentifierNature

The identifier source's nature.

Annotations
@Override
getParentReferenceAttributeNameback to summary
public String getParentReferenceAttributeName()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.getParentReferenceAttributeName.

Annotations
@Override
getToolingHintContextback to summary
public ToolingHintContext getToolingHintContext()

Implements org.hibernate.boot.model.source.spi.ToolingHintContextContainer.getToolingHintContext.

Annotations
@Override
getTuplizerClassMapback to summary
public Map<EntityMode, String> getTuplizerClassMap()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.getTuplizerClassMap.

Annotations
@Override
getTypeDescriptorback to summary
public JavaTypeDescriptor getTypeDescriptor()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.getTypeDescriptor.

Annotations
@Override
interpretIdClassback to summary
private EmbeddableSource interpretIdClass(MappingDocument mappingDocument, JaxbHbmCompositeIdType jaxbHbmCompositeIdMapping)
isDynamicback to summary
public boolean isDynamic()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.isDynamic.

Doc from org.hibernate.boot.model.source.spi.EmbeddableSource.isDynamic.

Indicates whether this embeddable/component is dynamic (represented as a Map), or whether a dedicated class for it is available.

Returns:boolean

true indicates that the composition is represented as a Map; false indicates there is a dedicated class for representing the composition.

Annotations
@Override
isUniqueback to summary
public boolean isUnique()

Implements org.hibernate.boot.model.source.spi.EmbeddableSource.isUnique.

Annotations
@Override