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

public Class SingularAttributeSourceAnyImpl

extends AbstractHbmSourceNode
implements SingularAttributeSourceAny
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.SingularAttributeSourceAny, org.hibernate.boot.model.source.spi.CascadeStyleSource, org.hibernate.boot.model.source.spi.AnyMappingSource, org.hibernate.boot.model.source.spi.SingularAttributeSource, org.hibernate.boot.model.source.spi.AttributeSource, org.hibernate.boot.model.source.spi.ToolingHintContextContainer
Imports
java.util.HashMap, .List, .Locale, .Map, org.hibernate.boot.MappingException, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmAnyAssociationType, .JaxbHbmAnyValueMappingType, org.hibernate.boot.model.source.spi.AnyDiscriminatorSource, .AnyKeySource, .AttributePath, .AttributeRole, .AttributeSourceContainer, .HibernateTypeSource, .NaturalIdMutability, .RelationalValueSource, .SingularAttributeNature, .SingularAttributeSourceAny, .ToolingHintContext, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.tuple.GenerationTiming

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AttributePath
private final AttributeRole
private final HibernateTypeSource
private final AnyDiscriminatorSource
private final JaxbHbmAnyAssociationType
private final AnyKeySource
private final NaturalIdMutability
private final ToolingHintContext

Constructor Summary

AccessConstructor and Description
public
SingularAttributeSourceAnyImpl(final MappingDocument sourceMappingDocument, AttributeSourceContainer container, final JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)

Method Summary

Modifier and TypeMethod and Description
public AttributePath
public AttributeRole
public String
getCascadeStyleName()

Implements org.hibernate.boot.model.source.spi.CascadeStyleSource.getCascadeStyleName.

Obtain the cascade styles to be applied to this association.
public AnyDiscriminatorSource
public GenerationTiming
getGenerationTiming()

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

Obtain a description of if/when the attribute value is generated by the database.
public AnyKeySource
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 XmlElementMetadata
public ToolingHintContext
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 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
public boolean
isSingular()

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

Attributes are (coarsely speaking) either singular or plural.
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?
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

attributePathback to summary
private final AttributePath attributePath
attributeRoleback to summary
private final AttributeRole attributeRole
attributeTypeSourceback to summary
private final HibernateTypeSource attributeTypeSource
discriminatorSourceback to summary
private final AnyDiscriminatorSource discriminatorSource
jaxbAnyMappingback to summary
private final JaxbHbmAnyAssociationType jaxbAnyMapping
keySourceback to summary
private final AnyKeySource keySource
naturalIdMutabilityback to summary
private final NaturalIdMutability naturalIdMutability
toolingHintContextback to summary
private final ToolingHintContext toolingHintContext

Constructor Detail

SingularAttributeSourceAnyImplback to summary
public SingularAttributeSourceAnyImpl(final MappingDocument sourceMappingDocument, AttributeSourceContainer container, final JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)

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
getCascadeStyleNameback to summary
public String getCascadeStyleName()

Implements org.hibernate.boot.model.source.spi.CascadeStyleSource.getCascadeStyleName.

Doc from org.hibernate.boot.model.source.spi.CascadeStyleSource.getCascadeStyleName.

Obtain the cascade styles to be applied to this association.

Returns:String

The cascade styles.

Annotations
@Override
getDiscriminatorSourceback to summary
public AnyDiscriminatorSource getDiscriminatorSource()

Implements org.hibernate.boot.model.source.spi.AnyMappingSource.getDiscriminatorSource.

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.

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

Returns:GenerationTiming

The attribute value generation information

Annotations
@Override
getKeySourceback to summary
public AnyKeySource getKeySource()

Implements org.hibernate.boot.model.source.spi.AnyMappingSource.getKeySource.

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
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
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
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
isLazyback to summary
public boolean isLazy()

Overrides default org.hibernate.boot.model.source.spi.AnyMappingSource.isLazy.

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
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
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