Class SingularAttributeSourceAnyImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.SingularAttributeSourceAnyImpl
- All Implemented Interfaces:
AnyMappingSource,AttributeSource,CascadeStyleSource,SingularAttributeSource,SingularAttributeSourceAny,ToolingHintContextContainer
public class SingularAttributeSourceAnyImpl
extends AbstractHbmSourceNode
implements SingularAttributeSourceAny
-
Constructor Summary
ConstructorsConstructorDescriptionSingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability) -
Method Summary
Modifier and TypeMethodDescriptionObtain the cascade styles to be applied to this association.Obtain a description of if/when the attribute value is generated by the database.getName()Obtain the attribute name.Retrieve the natural id mutabilityObtain the name of the property accessor style used to access this attribute.Obtain the nature of this attribute type.Obtain information about the Hibernate type (Type) for this attribute.This is only useful to log warnings when these deprecated attributes are populated.booleanShould the attribute be lazily loaded by bytecode enhancement?booleanIf 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?Did the mapping specify that the given attribute value(s) should be inserted into the database?booleanisLazy()booleanAttributes are (coarsely speaking) either singular or plural.Did the mapping specify that the given attribute value(s) should be updated in the database?booleanDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
Constructor Details
-
SingularAttributeSourceAnyImpl
public SingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)
-
-
Method Details
-
getSingularAttributeNature
Description copied from interface:SingularAttributeSourceObtain the nature of this attribute type.- Specified by:
getSingularAttributeNaturein interfaceSingularAttributeSource- Returns:
- The attribute type nature
-
getSourceType
- Specified by:
getSourceTypein interfaceAttributeSource
-
isSingular
public boolean isSingular()Description copied from interface:AttributeSourceAttributes are (coarsely speaking) either singular or plural.- Specified by:
isSingularin interfaceAttributeSource- Returns:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
getName
Description copied from interface:AttributeSourceObtain the attribute name.- Specified by:
getNamein interfaceAttributeSource- Returns:
- The attribute name.
nullis NOT allowed!
-
getXmlNodeName
Description copied from interface:AttributeSourceThis 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.- Specified by:
getXmlNodeNamein interfaceAttributeSource- Returns:
- The xml node name
-
getAttributePath
- Specified by:
getAttributePathin interfaceAttributeSource
-
getAttributeRole
- Specified by:
getAttributeRolein interfaceAttributeSource
-
isVirtualAttribute
public boolean isVirtualAttribute()Description copied from interface:SingularAttributeSourceDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttributein interfaceSingularAttributeSource- Returns:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
getGenerationTiming
Description copied from interface:SingularAttributeSourceObtain a description of if/when the attribute value is generated by the database.- Specified by:
getGenerationTimingin interfaceSingularAttributeSource- Returns:
- The attribute value generation information
-
isInsertable
Description copied from interface:SingularAttributeSourceDid the mapping specify that the given attribute value(s) should be inserted into the database?- Specified by:
isInsertablein interfaceSingularAttributeSource- Returns:
trueindicates value(s) should be inserted;falseindicates not.
-
isUpdatable
Description copied from interface:SingularAttributeSourceDid the mapping specify that the given attribute value(s) should be updated in the database?- Specified by:
isUpdatablein interfaceSingularAttributeSource- Returns:
trueindicates value(s) should be updated;falseindicates not.
-
isBytecodeLazy
public boolean isBytecodeLazy()Description copied from interface:SingularAttributeSourceShould the attribute be lazily loaded by bytecode enhancement?- Specified by:
isBytecodeLazyin interfaceSingularAttributeSource- Returns:
trueto indicate the attribute should be lazily loaded by bytecode enhancement?
-
getNaturalIdMutability
Description copied from interface:SingularAttributeSourceRetrieve the natural id mutability- Specified by:
getNaturalIdMutabilityin interfaceSingularAttributeSource- Returns:
- The mutability, see enum for meanings
-
getTypeInformation
Description copied from interface:AttributeSourceObtain information about the Hibernate type (Type) for this attribute.- Specified by:
getTypeInformationin interfaceAttributeSource- Returns:
- The Hibernate type information
-
getPropertyAccessorName
Description copied from interface:AttributeSourceObtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorNamein interfaceAttributeSource- Returns:
- The property accessor style for this attribute.
- See Also:
-
isIncludedInOptimisticLocking
public boolean isIncludedInOptimisticLocking()Description copied from interface:AttributeSourceIf 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?- Specified by:
isIncludedInOptimisticLockingin interfaceAttributeSource- Returns:
trueindicates it should be included;false, it should not.
-
getToolingHintContext
- Specified by:
getToolingHintContextin interfaceToolingHintContextContainer
-
getDiscriminatorSource
- Specified by:
getDiscriminatorSourcein interfaceAnyMappingSource
-
getKeySource
- Specified by:
getKeySourcein interfaceAnyMappingSource
-
getCascadeStyleName
Description copied from interface:CascadeStyleSourceObtain the cascade styles to be applied to this association.- Specified by:
getCascadeStyleNamein interfaceCascadeStyleSource- Returns:
- The cascade styles.
-
isLazy
public boolean isLazy()- Specified by:
isLazyin interfaceAnyMappingSource
-