public class SingularAttributeSourceAnyImpl extends AbstractHbmSourceNode implements SingularAttributeSourceAny
Constructor and Description |
---|
SingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument,
AttributeSourceContainer container,
JaxbHbmAnyAssociationType jaxbAnyMapping,
String logicalTableName,
NaturalIdMutability naturalIdMutability) |
Modifier and Type | Method and Description |
---|---|
AttributePath |
getAttributePath() |
AttributeRole |
getAttributeRole() |
String |
getCascadeStyleName()
Obtain the cascade styles to be applied to this association.
|
AnyDiscriminatorSource |
getDiscriminatorSource() |
GenerationTiming |
getGenerationTiming()
Obtain a description of if/when the attribute value is generated by the database.
|
AnyKeySource |
getKeySource() |
String |
getName()
Obtain the attribute name.
|
NaturalIdMutability |
getNaturalIdMutability()
Retrieve the natural id mutability
|
String |
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.
|
SingularAttributeNature |
getSingularAttributeNature()
Obtain the nature of this attribute type.
|
XmlElementMetadata |
getSourceType() |
ToolingHintContext |
getToolingHintContext() |
HibernateTypeSource |
getTypeInformation()
Obtain information about the Hibernate type (
Type ) for this attribute. |
String |
getXmlNodeName()
Ugh.
|
boolean |
isBytecodeLazy()
Should the attribute be lazily loaded by bytecode enhancement?
|
boolean |
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?
|
Boolean |
isInsertable()
Did the mapping specify that the given attribute value(s) should be inserted into the database?
|
boolean |
isSingular()
Attributes are (coarsely speaking) either singular or plural.
|
Boolean |
isUpdatable()
Did the mapping specify that the given attribute value(s) should be updated in the database?
|
boolean |
isVirtualAttribute()
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.
|
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
public SingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)
public SingularAttributeNature getSingularAttributeNature()
SingularAttributeSource
getSingularAttributeNature
in interface SingularAttributeSource
public XmlElementMetadata getSourceType()
getSourceType
in interface AttributeSource
public boolean isSingular()
AttributeSource
isSingular
in interface AttributeSource
true
indicates the attribute is singular (and therefore castable
to SingularAttributeSource
); false
indicates it is plural (and
therefore castable to PluralAttributeSource
).public String getName()
AttributeSource
getName
in interface AttributeSource
null
is NOT allowed!public String getXmlNodeName()
AttributeSource
getXmlNodeName
in interface AttributeSource
public AttributePath getAttributePath()
getAttributePath
in interface AttributeSource
public AttributeRole getAttributeRole()
getAttributeRole
in interface AttributeSource
public boolean isVirtualAttribute()
SingularAttributeSource
isVirtualAttribute
in interface SingularAttributeSource
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;
false
indicates the attribute physically exists.public GenerationTiming getGenerationTiming()
SingularAttributeSource
getGenerationTiming
in interface SingularAttributeSource
public Boolean isInsertable()
SingularAttributeSource
isInsertable
in interface SingularAttributeSource
true
indicates value(s) should be inserted; false
indicates not.public Boolean isUpdatable()
SingularAttributeSource
isUpdatable
in interface SingularAttributeSource
true
indicates value(s) should be updated; false
indicates not.public boolean isBytecodeLazy()
SingularAttributeSource
isBytecodeLazy
in interface SingularAttributeSource
true
to indicate the attribute should be lazily loaded by bytecode enhancement?public NaturalIdMutability getNaturalIdMutability()
SingularAttributeSource
getNaturalIdMutability
in interface SingularAttributeSource
public HibernateTypeSource getTypeInformation()
AttributeSource
Type
) for this attribute.getTypeInformation
in interface AttributeSource
public String getPropertyAccessorName()
AttributeSource
getPropertyAccessorName
in interface AttributeSource
PropertyAccessStrategy
public boolean isIncludedInOptimisticLocking()
AttributeSource
isIncludedInOptimisticLocking
in interface AttributeSource
true
indicates it should be included; false
, it should not.public ToolingHintContext getToolingHintContext()
getToolingHintContext
in interface ToolingHintContextContainer
public AnyDiscriminatorSource getDiscriminatorSource()
getDiscriminatorSource
in interface AnyMappingSource
public AnyKeySource getKeySource()
getKeySource
in interface AnyMappingSource
public String getCascadeStyleName()
CascadeStyleSource
getCascadeStyleName
in interface CascadeStyleSource
Copyright © 2018 JBoss by Red Hat. All rights reserved.