Class CompositeIdentifierSingularAttributeSourceManyToOneImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractToOneAttributeSourceImpl
org.hibernate.boot.model.source.internal.hbm.CompositeIdentifierSingularAttributeSourceManyToOneImpl
- All Implemented Interfaces:
AssociationSource
,AttributeSource
,CascadeStyleSource
,ColumnBindingDefaults
,FetchableAttributeSource
,ForeignKeyContributingSource
,RelationalValueSourceContainer
,SingularAttributeSource
,SingularAttributeSourceManyToOne
,SingularAttributeSourceToOne
,ToolingHintContextContainer
public class CompositeIdentifierSingularAttributeSourceManyToOneImpl
extends AbstractToOneAttributeSourceImpl
implements SingularAttributeSourceManyToOne, RelationalValueSourceContainer
Descriptor for
<key-many-to-one/>
mapping-
Constructor Summary
ConstructorsConstructorDescriptionCompositeIdentifierSingularAttributeSourceManyToOneImpl
(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyManyToOneType keyManyToOneElement) -
Method Summary
Modifier and TypeMethodDescriptionboolean
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.boolean
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.boolean
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.Obtain the cascade styles to be applied to this association.protected String
Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.getName()
Obtain the attribute name.Obtain the name of the property accessor style used to access this attribute.Obtain the name of the referenced entity.Obtain the containedRelationalValueSource
references.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.boolean
Should the attribute be lazily loaded by bytecode enhancement?boolean
Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?boolean
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?Did the mapping specify that the given attribute value(s) should be inserted into the database?boolean
isUnique()
Did the mapping specify that the given attribute value(s) should be updated in the database?boolean
Determine 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.AbstractToOneAttributeSourceImpl
createForeignKeyConstraint, getAttributeSource, getGenerationTiming, getNaturalIdMutability, isIgnoreNotFound, isMappedBy, isSingular
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.boot.model.source.spi.AssociationSource
getAttributeSource, isIgnoreNotFound, isMappedBy
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
isSingular
Methods inherited from interface org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
createForeignKeyConstraint
Methods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSource
getGenerationTiming, getNaturalIdMutability
-
Constructor Details
-
CompositeIdentifierSingularAttributeSourceManyToOneImpl
public CompositeIdentifierSingularAttributeSourceManyToOneImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyManyToOneType keyManyToOneElement)
-
-
Method Details
-
getSingularAttributeNature
Description copied from interface:SingularAttributeSource
Obtain the nature of this attribute type.- Specified by:
getSingularAttributeNature
in interfaceSingularAttributeSource
- Returns:
- The attribute type nature
-
isInsertable
Description copied from interface:SingularAttributeSource
Did the mapping specify that the given attribute value(s) should be inserted into the database?- Specified by:
isInsertable
in interfaceSingularAttributeSource
- Returns:
true
indicates value(s) should be inserted;false
indicates not.
-
isUpdatable
Description copied from interface:SingularAttributeSource
Did the mapping specify that the given attribute value(s) should be updated in the database?- Specified by:
isUpdatable
in interfaceSingularAttributeSource
- Returns:
true
indicates value(s) should be updated;false
indicates not.
-
isBytecodeLazy
public boolean isBytecodeLazy()Description copied from interface:SingularAttributeSource
Should the attribute be lazily loaded by bytecode enhancement?- Specified by:
isBytecodeLazy
in interfaceSingularAttributeSource
- Returns:
true
to indicate the attribute should be lazily loaded by bytecode enhancement?
-
getSourceType
- Specified by:
getSourceType
in interfaceAttributeSource
-
getName
Description copied from interface:AttributeSource
Obtain the attribute name.- Specified by:
getName
in interfaceAttributeSource
- Returns:
- The attribute name.
null
is NOT allowed!
-
getXmlNodeName
Description copied from interface:AttributeSource
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.- Specified by:
getXmlNodeName
in interfaceAttributeSource
- Returns:
- The xml node name
-
getAttributePath
- Specified by:
getAttributePath
in interfaceAttributeSource
-
getTypeInformation
Description copied from interface:AttributeSource
Obtain information about the Hibernate type (Type
) for this attribute.- Specified by:
getTypeInformation
in interfaceAttributeSource
- Returns:
- The Hibernate type information
-
getPropertyAccessorName
Description copied from interface:AttributeSource
Obtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorName
in interfaceAttributeSource
- Returns:
- The property accessor style for this attribute.
- See Also:
-
getAttributeRole
- Specified by:
getAttributeRole
in interfaceAttributeSource
-
getRelationalValueSources
Description copied from interface:RelationalValueSourceContainer
Obtain the containedRelationalValueSource
references.- Specified by:
getRelationalValueSources
in interfaceRelationalValueSourceContainer
- Returns:
- The contained
RelationalValueSource
references.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInInsertByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInUpdateByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that updates are enabled by default for all value sources which do not explicitly specify.
-
isIncludedInOptimisticLocking
public boolean isIncludedInOptimisticLocking()Description copied from interface:AttributeSource
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?- Specified by:
isIncludedInOptimisticLocking
in interfaceAttributeSource
- Returns:
true
indicates it should be included;false
, it should not.
-
getFetchCharacteristics
- Specified by:
getFetchCharacteristics
in interfaceFetchableAttributeSource
- Specified by:
getFetchCharacteristics
in interfaceSingularAttributeSourceToOne
-
isVirtualAttribute
public boolean isVirtualAttribute()Description copied from interface:SingularAttributeSource
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttribute
in interfaceSingularAttributeSource
- Overrides:
isVirtualAttribute
in classAbstractToOneAttributeSourceImpl
- Returns:
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;false
indicates the attribute physically exists.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesNullableByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
getReferencedEntityAttributeName
- Specified by:
getReferencedEntityAttributeName
in interfaceSingularAttributeSourceToOne
-
getReferencedEntityName
Description copied from interface:AssociationSource
Obtain the name of the referenced entity.- Specified by:
getReferencedEntityName
in interfaceAssociationSource
- Specified by:
getReferencedEntityName
in interfaceSingularAttributeSourceToOne
- Returns:
- The name of the referenced entity
-
isEmbedXml
- Specified by:
isEmbedXml
in interfaceSingularAttributeSourceToOne
-
isUnique
public boolean isUnique()- Specified by:
isUnique
in interfaceSingularAttributeSourceToOne
-
getForeignKeyDirection
- Specified by:
getForeignKeyDirection
in interfaceSingularAttributeSourceToOne
-
getCascadeStyleName
Description copied from interface:CascadeStyleSource
Obtain the cascade styles to be applied to this association.- Specified by:
getCascadeStyleName
in interfaceCascadeStyleSource
- Returns:
- The cascade styles.
-
getExplicitForeignKeyName
Description copied from interface:ForeignKeyContributingSource
Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.- Specified by:
getExplicitForeignKeyName
in interfaceForeignKeyContributingSource
- Returns:
- The user supplied foreign key name.
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()Description copied from interface:ForeignKeyContributingSource
Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- Specified by:
isCascadeDeleteEnabled
in interfaceForeignKeyContributingSource
- Returns:
true
, if the cascade delete is enabled;false
, otherwise.
-
getClassName
-
getToolingHintContext
- Specified by:
getToolingHintContext
in interfaceToolingHintContextContainer
-