|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.binding.AbstractAttributeBinding org.hibernate.metamodel.binding.AbstractSingularAttributeBinding org.hibernate.metamodel.binding.ComponentAttributeBinding
public class ComponentAttributeBinding
Constructor Summary | |
---|---|
ComponentAttributeBinding(AttributeBindingContainer container,
SingularAttribute attribute)
|
Method Summary | |
---|---|
Iterable<AttributeBinding> |
attributeBindings()
Obtain all attribute bindings |
protected void |
checkValueBinding()
|
AttributeContainer |
getAttributeContainer()
Obtain the underlying domain attribute container. |
Class<?> |
getClassReference()
Obtain the Class reference for this attribute container. |
Component |
getComponent()
|
PropertyGeneration |
getGeneration()
Obtain the generation strategy for this attribute/value. |
MetaAttributeContext |
getMetaAttributeContext()
Obtain the meta attributes associated with this binding |
SingularAttribute |
getParentReference()
|
String |
getPathBase()
Obtain the path base of this container. |
boolean |
isAssociation()
|
AttributeBinding |
locateAttributeBinding(String name)
Locate a specific attribute binding, by its local name. |
BagBinding |
makeBagAttributeBinding(PluralAttribute attribute,
CollectionElementNature nature)
Factory method for bag attribute bindings. |
BasicAttributeBinding |
makeBasicAttributeBinding(SingularAttribute attribute)
Factory method for basic attribute bindings. |
ComponentAttributeBinding |
makeComponentAttributeBinding(SingularAttribute attribute)
Factory method for component attribute bindings. |
ManyToOneAttributeBinding |
makeManyToOneAttributeBinding(SingularAttribute attribute)
Factory method for many-to-one attribute bindings. |
SetBinding |
makeSetAttributeBinding(PluralAttribute attribute,
CollectionElementNature nature)
Factory method for bag attribute bindings. |
protected void |
registerAttributeBinding(String name,
AttributeBinding attributeBinding)
|
EntityBinding |
seekEntityBinding()
Seeks out the entity binding that is the root of this component path. |
void |
setMetaAttributeContext(MetaAttributeContext metaAttributeContext)
|
void |
setParentReference(SingularAttribute parentReference)
|
Methods inherited from class org.hibernate.metamodel.binding.AbstractSingularAttributeBinding |
---|
getAttribute, getSimpleValueBindings, getSimpleValueSpan, getValue, hasDerivedValue, isNullable, setSimpleValueBindings |
Methods inherited from class org.hibernate.metamodel.binding.AbstractAttributeBinding |
---|
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getPropertyAccessorName, isAlternateUniqueKey, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setAlternateUniqueKey, setIncludedInOptimisticLocking, setLazy, setPropertyAccessorName, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.metamodel.binding.AttributeBinding |
---|
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getPropertyAccessorName, isAlternateUniqueKey, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setIncludedInOptimisticLocking, setPropertyAccessorName, validate |
Constructor Detail |
---|
public ComponentAttributeBinding(AttributeBindingContainer container, SingularAttribute attribute)
Method Detail |
---|
public EntityBinding seekEntityBinding()
AttributeBindingContainer
seekEntityBinding
in interface AttributeBindingContainer
public String getPathBase()
AttributeBindingContainer
getPathBase
in interface AttributeBindingContainer
public AttributeContainer getAttributeContainer()
AttributeBindingContainer
getAttributeContainer
in interface AttributeBindingContainer
public Component getComponent()
public boolean isAssociation()
isAssociation
in interface AttributeBinding
public MetaAttributeContext getMetaAttributeContext()
AttributeBinding
getMetaAttributeContext
in interface AttributeBinding
getMetaAttributeContext
in interface AttributeBindingContainer
getMetaAttributeContext
in class AbstractAttributeBinding
public void setMetaAttributeContext(MetaAttributeContext metaAttributeContext)
setMetaAttributeContext
in class AbstractAttributeBinding
public AttributeBinding locateAttributeBinding(String name)
AttributeBindingContainer
locateAttributeBinding
in interface AttributeBindingContainer
name
- The name of the attribute, local to this container.
public Iterable<AttributeBinding> attributeBindings()
AttributeBindingContainer
attributeBindings
in interface AttributeBindingContainer
protected void checkValueBinding()
checkValueBinding
in class AbstractSingularAttributeBinding
public BasicAttributeBinding makeBasicAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeBasicAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.
protected void registerAttributeBinding(String name, AttributeBinding attributeBinding)
public ComponentAttributeBinding makeComponentAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeComponentAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.
public ManyToOneAttributeBinding makeManyToOneAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeManyToOneAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.
public BagBinding makeBagAttributeBinding(PluralAttribute attribute, CollectionElementNature nature)
AttributeBindingContainer
makeBagAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.nature
- The nature of the collection elements.
public SetBinding makeSetAttributeBinding(PluralAttribute attribute, CollectionElementNature nature)
AttributeBindingContainer
makeSetAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.nature
- The nature of the collection elements.
public Class<?> getClassReference()
AttributeBindingContainer
Class
reference for this attribute container. Generally this is used to perform reflection
on the attributes.
getClassReference
in interface AttributeBindingContainer
Class
referencepublic SingularAttribute getParentReference()
public void setParentReference(SingularAttribute parentReference)
public PropertyGeneration getGeneration()
SingularAttributeBinding
getGeneration
in interface SingularAttributeBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |