public class ManyToOneAttributeBinding extends BasicAttributeBinding implements SingularAssociationAttributeBinding
Modifier and Type | Method and Description |
---|---|
CascadeStyle |
getCascadeStyle()
Obtain the cascade style in effect for this association.
|
FetchMode |
getFetchMode()
Temporary.
|
FetchStyle |
getFetchStyle() |
FetchTiming |
getFetchTiming() |
AttributeBinding |
getReferencedAttributeBinding() |
String |
getReferencedAttributeName() |
EntityBinding |
getReferencedEntityBinding() |
String |
getReferencedEntityName()
Obtain the name of the referenced entity.
|
boolean |
isAssociation() |
boolean |
isPropertyReference()
Is this association based on a property reference (non PK column(s) as target of FK)?
Convenience form of checking
SingularAssociationAttributeBinding.getReferencedAttributeName() for null . |
boolean |
isReferenceResolved() |
void |
resolveReference(AttributeBinding referencedAttributeBinding) |
void |
setCascadeStyles(Iterable<CascadeStyle> cascadeStyles)
Set the cascade styles in effect for this association.
|
void |
setFetchStyle(FetchStyle fetchStyle) |
void |
setFetchTiming(FetchTiming fetchTiming) |
void |
setReferencedAttributeName(String referencedEntityAttributeName) |
void |
setReferencedEntityName(String referencedEntityName)
Set the name of the
|
forceNonNullable, forceUnique, getGeneration, getMetaAttributeContext, getUnsavedValue, isIncludedInOptimisticLocking, isKeyCascadeDeleteEnabled, setGeneration, setIncludedInOptimisticLocking, setKeyCascadeDeleteEnabled, setMetaAttributeContext, setUnsavedValue
checkValueBinding, getAttribute, getSimpleValueBindings, getSimpleValueSpan, getValue, hasDerivedValue, isNullable, setSimpleValueBindings
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getPropertyAccessorName, isAlternateUniqueKey, isBasicPropertyAccessor, isLazy, setAlternateUniqueKey, setLazy, setPropertyAccessorName, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGeneration, getSimpleValueBindings, getSimpleValueSpan, getValue, hasDerivedValue, isNullable, setSimpleValueBindings
addEntityReferencingAttributeBinding, getAttribute, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getMetaAttributeContext, getPropertyAccessorName, isAlternateUniqueKey, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setIncludedInOptimisticLocking, setPropertyAccessorName, validate
public boolean isAssociation()
isAssociation
in interface AttributeBinding
isAssociation
in class BasicAttributeBinding
public final boolean isPropertyReference()
SingularAssociationAttributeBinding
SingularAssociationAttributeBinding.getReferencedAttributeName()
for null
.isPropertyReference
in interface SingularAssociationAttributeBinding
public final String getReferencedEntityName()
SingularAssociationAttributeBinding
getReferencedEntityName
in interface SingularAssociationAttributeBinding
public void setReferencedEntityName(String referencedEntityName)
SingularAssociationAttributeBinding
setReferencedEntityName
in interface SingularAssociationAttributeBinding
public final String getReferencedAttributeName()
getReferencedAttributeName
in interface SingularAssociationAttributeBinding
public void setReferencedAttributeName(String referencedEntityAttributeName)
setReferencedAttributeName
in interface SingularAssociationAttributeBinding
public CascadeStyle getCascadeStyle()
AssociationAttributeBinding
getCascadeStyle
in interface AssociationAttributeBinding
public void setCascadeStyles(Iterable<CascadeStyle> cascadeStyles)
AssociationAttributeBinding
setCascadeStyles
in interface AssociationAttributeBinding
cascadeStyles
- The cascade styles.public FetchTiming getFetchTiming()
getFetchTiming
in interface AssociationAttributeBinding
public void setFetchTiming(FetchTiming fetchTiming)
setFetchTiming
in interface AssociationAttributeBinding
public FetchStyle getFetchStyle()
getFetchStyle
in interface AssociationAttributeBinding
public void setFetchStyle(FetchStyle fetchStyle)
setFetchStyle
in interface AssociationAttributeBinding
public FetchMode getFetchMode()
AssociationAttributeBinding
getFetchMode
in interface AssociationAttributeBinding
public final boolean isReferenceResolved()
isReferenceResolved
in interface SingularAssociationAttributeBinding
public final void resolveReference(AttributeBinding referencedAttributeBinding)
resolveReference
in interface SingularAssociationAttributeBinding
public AttributeBinding getReferencedAttributeBinding()
getReferencedAttributeBinding
in interface SingularAssociationAttributeBinding
public final EntityBinding getReferencedEntityBinding()
getReferencedEntityBinding
in interface SingularAssociationAttributeBinding
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.