public class CompositeIdentifierSingularAttributeSourceBasicImpl extends AbstractHbmSourceNode implements SingularAttributeSourceBasic
<key-property/>
Constructor and Description |
---|
CompositeIdentifierSingularAttributeSourceBasicImpl(MappingDocument mappingDocument,
AttributeSourceContainer container,
JaxbHbmCompositeKeyBasicAttributeType keyPropertyElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
areValuesIncludedInInsertByDefault()
How should non-specification of value insertion by the individual value sources here be
interpreted in terms of defaulting that value.
|
boolean |
areValuesIncludedInUpdateByDefault()
How should non-specification of value updating by the individual value sources here be
interpreted in terms of defaulting that value.
|
boolean |
areValuesNullableByDefault()
How should non-specification of value nullability by the individual value sources here be
interpreted in terms of defaulting that value.
|
AttributePath |
getAttributePath()
Access to the AttributePath for the basic value
|
AttributeRole |
getAttributeRole() |
MetadataBuildingContext |
getBuildingContext()
Access to the current building context.
|
GenerationTiming |
getGenerationTiming()
Obtain a description of if/when the attribute value is generated by the database.
|
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.
|
List<RelationalValueSource> |
getRelationalValueSources()
Obtain the contained
RelationalValueSource references. |
SingularAttributeNature |
getSingularAttributeNature()
Obtain the nature of this attribute type.
|
XmlElementMetadata |
getSourceType() |
ToolingHintContext |
getToolingHintContext() |
HibernateTypeSourceImpl |
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 |
isCollectionElement()
Is the basic column the "element column" for a collection?
Historical handling for these in
hbm.xml binding was to simply
name the column "elt". |
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 CompositeIdentifierSingularAttributeSourceBasicImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyBasicAttributeType keyPropertyElement)
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()
ImplicitBasicColumnNameSource
getAttributePath
in interface ImplicitBasicColumnNameSource
getAttributePath
in interface AttributeSource
public boolean isCollectionElement()
ImplicitBasicColumnNameSource
hbm.xml
binding was to simply
name the column "elt".isCollectionElement
in interface ImplicitBasicColumnNameSource
true
if the column being named is the collection element
column; false
otherwise.public AttributeRole getAttributeRole()
getAttributeRole
in interface AttributeSource
public HibernateTypeSourceImpl getTypeInformation()
AttributeSource
Type
) for this attribute.getTypeInformation
in interface AttributeSource
public String getPropertyAccessorName()
AttributeSource
getPropertyAccessorName
in interface AttributeSource
PropertyAccessStrategy
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 boolean isIncludedInOptimisticLocking()
AttributeSource
isIncludedInOptimisticLocking
in interface AttributeSource
true
indicates it should be included; false
, it should not.public boolean areValuesIncludedInInsertByDefault()
ColumnBindingDefaults
areValuesIncludedInInsertByDefault
in interface ColumnBindingDefaults
true
Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesIncludedInUpdateByDefault()
ColumnBindingDefaults
areValuesIncludedInUpdateByDefault
in interface ColumnBindingDefaults
true
Indicates that updates are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesNullableByDefault()
ColumnBindingDefaults
areValuesNullableByDefault
in interface ColumnBindingDefaults
true
Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.public List<RelationalValueSource> getRelationalValueSources()
RelationalValueSourceContainer
RelationalValueSource
references.getRelationalValueSources
in interface RelationalValueSourceContainer
RelationalValueSource
references.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 ToolingHintContext getToolingHintContext()
getToolingHintContext
in interface ToolingHintContextContainer
public MetadataBuildingContext getBuildingContext()
ImplicitNameSource
getBuildingContext
in interface ImplicitNameSource
Copyright © 2021 JBoss by Red Hat. All rights reserved.