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

pack-priv Class SingularAttributeSourceEmbeddedImpl

extends AbstractSingularAttributeSourceEmbeddedImpl
Class Inheritance
Imports
java.util.Collections, .List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeAttributeType, .JaxbHbmDynamicComponentType, .JaxbHbmNestedCompositeElementType, .JaxbHbmToolingHintType, .JaxbHbmTuplizerType, org.hibernate.boot.model.source.spi.AttributePath, .AttributeRole, .AttributeSourceContainer, .EmbeddableMapping, .EmbeddedAttributeMapping, .NaturalIdMutability, .ToolingHintContext

The source information for a singular attribute whose type is composite (embedded in JPA terms).
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final boolean
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
public
SingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmCompositeAttributeType jaxbComponentElement, NaturalIdMutability naturalIdMutability, String logicalTableName)

public
SingularAttributeSourceEmbeddedImpl(MappingDocument mappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmNestedCompositeElementType attributeJaxbMapping, NaturalIdMutability naturalIdMutability, String logicalTableName)

public
SingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmDynamicComponentType jaxbDynamicEmbeddedMapping, NaturalIdMutability naturalIdMutability, String logicalTableName)

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

insertback to summary
private final boolean insert
lazyback to summary
private final boolean lazy
optimisticLockback to summary
private final boolean optimisticLock
updateback to summary
private final boolean update
xmlNodeNameback to summary
private final String xmlNodeName

Constructor Detail

SingularAttributeSourceEmbeddedImplback to summary
public SingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmCompositeAttributeType jaxbComponentElement, NaturalIdMutability naturalIdMutability, String logicalTableName)
SingularAttributeSourceEmbeddedImplback to summary
public SingularAttributeSourceEmbeddedImpl(MappingDocument mappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmNestedCompositeElementType attributeJaxbMapping, NaturalIdMutability naturalIdMutability, String logicalTableName)
SingularAttributeSourceEmbeddedImplback to summary
public SingularAttributeSourceEmbeddedImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer parentContainer, final JaxbHbmDynamicComponentType jaxbDynamicEmbeddedMapping, NaturalIdMutability naturalIdMutability, String logicalTableName)

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