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

pack-priv Class IdentifierSourceAggregatedCompositeImpl

extends Object
implements IdentifierSourceAggregatedComposite
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite, org.hibernate.boot.model.source.spi.CompositeIdentifierSource, org.hibernate.boot.model.source.spi.EmbeddableSourceContributor, org.hibernate.boot.model.source.spi.IdentifierSource, org.hibernate.boot.model.source.spi.ToolingHintContextContainer
Imports
java.util.Collections, .List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeIdType, .JaxbHbmToolingHintType, .JaxbHbmTuplizerType, org.hibernate.boot.model.IdentifierGeneratorDefinition, org.hibernate.boot.model.source.spi.AttributePath, .AttributeRole, .EmbeddableMapping, .EmbeddableSource, .EmbeddedAttributeMapping, .IdentifierSourceAggregatedComposite, .MapsIdSource, .NaturalIdMutability, .SingularAttributeSourceEmbedded, .ToolingHintContext, org.hibernate.id.EntityIdentifierNature

Models a <composite-id/> mapping where we have a named (embeddable) attribute.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final IdentifierSourceAggregatedCompositeImpl.SingularAttributeSourceAggregatedCompositeIdentifierImpl
private final IdentifierGeneratorDefinition
private final ToolingHintContext

Constructor Summary

AccessConstructor and Description
public

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 SingularAttributeSourceEmbedded
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 List<MapsIdSource>
public EntityIdentifierNature
getNature()

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

Obtain the nature of this identifier source.
public ToolingHintContext
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeSourceback to summary
private final IdentifierSourceAggregatedCompositeImpl.SingularAttributeSourceAggregatedCompositeIdentifierImpl attributeSource
generatorDefinitionback to summary
private final IdentifierGeneratorDefinition generatorDefinition
toolingHintContextback to summary
private final ToolingHintContext toolingHintContext

Constructor Detail

IdentifierSourceAggregatedCompositeImplback to summary
public IdentifierSourceAggregatedCompositeImpl(final RootEntitySourceImpl rootEntitySource)

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
getIdentifierAttributeSourceback to summary
public SingularAttributeSourceEmbedded getIdentifierAttributeSource()

Implements org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite.getIdentifierAttributeSource.

Doc from org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite.getIdentifierAttributeSource.

Obtain the source descriptor for the identifier attribute.

Returns:SingularAttributeSourceEmbedded

The identifier attribute source.

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
getMapsIdSourcesback to summary
public List<MapsIdSource> getMapsIdSources()

Implements org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite.getMapsIdSources.

Doc from org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite.getMapsIdSources.

Obtain the mapping of attributes annotated with jakarta.persistence.MapsId.

Returns:List<MapsIdSource>

The MapsId sources.

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
getToolingHintContextback to summary
public ToolingHintContext getToolingHintContext()

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

Annotations
@Override
org.hibernate.boot.model.source.internal.hbm back to summary

private Class IdentifierSourceAggregatedCompositeImpl.EmbeddedAttributeMappingAdapterAggregatedCompositeId

extends Object
implements EmbeddedAttributeMapping, EmbeddableSourceContainer, EmbeddableMapping
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.model.source.internal.hbm.IdentifierSourceAggregatedCompositeImpl.EmbeddedAttributeMappingAdapterAggregatedCompositeId
All Implemented Interfaces
org.hibernate.boot.model.source.spi.EmbeddableMapping, org.hibernate.boot.model.source.internal.hbm.EmbeddableSourceContainer, org.hibernate.boot.model.source.spi.EmbeddedAttributeMapping, org.hibernate.boot.jaxb.hbm.spi.SingularAttributeInfo, org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer, org.hibernate.boot.jaxb.hbm.spi.AttributeMapping

Field Summary

Modifier and TypeField and Description
private final AttributePath
private final AttributeRole
private final JaxbHbmCompositeIdType
private final RootEntitySourceImpl
private final ToolingHintContext

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
public AttributePath
public AttributeRole
public List<E>
public String
public EmbeddableMapping
public String
public String
public ToolingHintContext
public List<JaxbHbmToolingHintType>
public List<JaxbHbmTuplizerType>
public String
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idAttributePathback to summary
private final AttributePath idAttributePath
idAttributeRoleback to summary
private final AttributeRole idAttributeRole
jaxbCompositeIdMappingback to summary
private final JaxbHbmCompositeIdType jaxbCompositeIdMapping
rootEntitySourceback to summary
private final RootEntitySourceImpl rootEntitySource
toolingHintContextback to summary
private final ToolingHintContext toolingHintContext

Constructor Detail

EmbeddedAttributeMappingAdapterAggregatedCompositeIdback to summary
private EmbeddedAttributeMappingAdapterAggregatedCompositeId(RootEntitySourceImpl rootEntitySource)

Method Detail

getAccessback to summary
public String getAccess()

Implements org.hibernate.boot.jaxb.hbm.spi.AttributeMapping.getAccess.

Annotations
@Override
getAttributePathBaseback to summary
public AttributePath getAttributePathBase()

Implements org.hibernate.boot.model.source.internal.hbm.EmbeddableSourceContainer.getAttributePathBase.

Annotations
@Override
getAttributeRoleBaseback to summary
public AttributeRole getAttributeRoleBase()

Implements org.hibernate.boot.model.source.internal.hbm.EmbeddableSourceContainer.getAttributeRoleBase.

Annotations
@Override
getAttributesback to summary
public List<E> getAttributes()
getClazzback to summary
public String getClazz()

Implements org.hibernate.boot.model.source.spi.EmbeddableMapping.getClazz.

Annotations
@Override
getEmbeddableMappingback to summary
public EmbeddableMapping getEmbeddableMapping()

Implements org.hibernate.boot.model.source.spi.EmbeddedAttributeMapping.getEmbeddableMapping.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.hibernate.boot.jaxb.hbm.spi.AttributeMapping.getName.

Annotations
@Override
getParentback to summary
public String getParent()

Implements org.hibernate.boot.model.source.spi.EmbeddableMapping.getParent.

Annotations
@Override
getToolingHintContextBaselineForEmbeddableback to summary
public ToolingHintContext getToolingHintContextBaselineForEmbeddable()

Implements org.hibernate.boot.model.source.internal.hbm.EmbeddableSourceContainer.getToolingHintContextBaselineForEmbeddable.

Annotations
@Override
getToolingHintsback to summary
public List<JaxbHbmToolingHintType> getToolingHints()

Implements org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer.getToolingHints.

Annotations
@Override
getTuplizerback to summary
public List<JaxbHbmTuplizerType> getTuplizer()

Implements org.hibernate.boot.model.source.spi.EmbeddableMapping.getTuplizer.

Annotations
@Override
getXmlNodeNameback to summary
public String getXmlNodeName()
isUniqueback to summary
public boolean isUnique()

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

Annotations
@Override
org.hibernate.boot.model.source.internal.hbm back to summary

private Class IdentifierSourceAggregatedCompositeImpl.SingularAttributeSourceAggregatedCompositeIdentifierImpl

extends AbstractSingularAttributeSourceEmbeddedImpl
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final IdentifierSourceAggregatedCompositeImpl.EmbeddedAttributeMappingAdapterAggregatedCompositeId

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public AttributePath
public AttributeRole
public XmlElementMetadata
public ToolingHintContext
public String
getXmlNodeName()

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

This is only useful to log warnings when these deprecated attributes are populated.
public boolean
isBytecodeLazy()

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

Should the attribute be lazily loaded by bytecode enhancement?
public boolean
isIncludedInOptimisticLocking()

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

If the containing entity is using optimistic locking, should this attribute participate in that locking?
public Boolean
isInsertable()

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

Did the mapping specify that the given attribute value(s) should be inserted into the database?
public Boolean
isUpdatable()

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

Did the mapping specify that the given attribute value(s) should be updated in the database?
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractSingularAttributeSourceEmbeddedImpl:
getEmbeddableSourcegetGenerationTiminggetNamegetNaturalIdMutabilitygetPropertyAccessorNamegetSingularAttributeNaturegetTypeInformationisSingularisVirtualAttribute

Field Detail

compositeIdAdapterback to summary
private final IdentifierSourceAggregatedCompositeImpl.EmbeddedAttributeMappingAdapterAggregatedCompositeId compositeIdAdapter

Constructor Detail

SingularAttributeSourceAggregatedCompositeIdentifierImplback to summary
protected SingularAttributeSourceAggregatedCompositeIdentifierImpl(MappingDocument mappingDocument, IdentifierSourceAggregatedCompositeImpl.EmbeddedAttributeMappingAdapterAggregatedCompositeId compositeIdAdapter)

Method Detail

getAttributePathback to summary
public AttributePath getAttributePath()

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

Annotations
@Override
getAttributeRoleback to summary
public AttributeRole getAttributeRole()

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

Annotations
@Override
getSourceTypeback to summary
public XmlElementMetadata getSourceType()

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

Annotations
@Override
getToolingHintContextback to summary
public ToolingHintContext getToolingHintContext()

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

Annotations
@Override
getXmlNodeNameback to summary
public String getXmlNodeName()

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

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

This is only useful to log warnings when these deprecated attributes are populated. It was only useful for DOM4J entity-mode, which was removed a long time ago.

Returns:String

The xml node name

Annotations
@Override
isBytecodeLazyback to summary
public boolean isBytecodeLazy()

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

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

Should the attribute be lazily loaded by bytecode enhancement?

Returns:boolean

true to indicate the attribute should be lazily loaded by bytecode enhancement?

Annotations
@Override
isIncludedInOptimisticLockingback to summary
public boolean isIncludedInOptimisticLocking()

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

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

If the containing entity is using optimistic locking, should this attribute participate in that locking? Meaning, should changes in the value of this attribute at runtime indicate that the entity is now dirty in terms of optimistic locking?

Returns:boolean

true indicates it should be included; false, it should not.

Annotations
@Override
isInsertableback to summary
public Boolean isInsertable()

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

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

Did the mapping specify that the given attribute value(s) should be inserted into the database?

Returns:Boolean

true indicates value(s) should be inserted; false indicates not.

Annotations
@Override
isUpdatableback to summary
public Boolean isUpdatable()

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

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

Did the mapping specify that the given attribute value(s) should be updated in the database?

Returns:Boolean

true indicates value(s) should be updated; false indicates not.

Annotations
@Override