public abstract class AbstractSingularAttributeBinding extends AbstractAttributeBinding implements SingularAttributeBinding
Modifier | Constructor and Description |
---|---|
protected |
AbstractSingularAttributeBinding(AttributeBindingContainer container,
SingularAttribute attribute) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkValueBinding() |
SingularAttribute |
getAttribute()
Obtain the attribute bound.
|
Iterable<SimpleValueBinding> |
getSimpleValueBindings() |
int |
getSimpleValueSpan()
Returns the number of
SimpleValueBinding objects that will be returned by
SingularAttributeBinding.getSimpleValueBindings() |
Value |
getValue()
Obtain the value bound here.
|
boolean |
hasDerivedValue()
Convenience method to determine if any
simple value bindings are derived values
(formula mappings). |
boolean |
isNullable()
Convenience method to determine if all
simple value bindings allow nulls. |
void |
setSimpleValueBindings(Iterable<SimpleValueBinding> simpleValueBindings) |
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getMetaAttributeContext, getPropertyAccessorName, isAlternateUniqueKey, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setAlternateUniqueKey, setIncludedInOptimisticLocking, setLazy, setMetaAttributeContext, setPropertyAccessorName, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGeneration
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getMetaAttributeContext, getPropertyAccessorName, isAlternateUniqueKey, isAssociation, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setIncludedInOptimisticLocking, setPropertyAccessorName, validate
protected AbstractSingularAttributeBinding(AttributeBindingContainer container, SingularAttribute attribute)
public SingularAttribute getAttribute()
AttributeBinding
getAttribute
in interface AttributeBinding
getAttribute
in class AbstractAttributeBinding
public Value getValue()
SingularAttributeBinding
Tuple
indicating multiple database values are bound, in which case access to the individual values can be achieved by
either casting this return to Tuple
and using its
Tuple.values()
method or using the SingularAttributeBinding.getSimpleValueBindings()
method here and accessing each bindings simple value
getValue
in interface SingularAttributeBinding
public void setSimpleValueBindings(Iterable<SimpleValueBinding> simpleValueBindings)
setSimpleValueBindings
in interface SingularAttributeBinding
public int getSimpleValueSpan()
SingularAttributeBinding
SimpleValueBinding
objects that will be returned by
SingularAttributeBinding.getSimpleValueBindings()
getSimpleValueSpan
in interface SingularAttributeBinding
simple value bindings
SingularAttributeBinding.getSimpleValueBindings()
protected void checkValueBinding()
public Iterable<SimpleValueBinding> getSimpleValueBindings()
getSimpleValueBindings
in interface SingularAttributeBinding
public boolean hasDerivedValue()
SingularAttributeBinding
simple value bindings
are derived values
(formula mappings).hasDerivedValue
in interface SingularAttributeBinding
true
indicates that the binding contains a derived value; false
indicates it does not.public boolean isNullable()
SingularAttributeBinding
simple value bindings
allow nulls.isNullable
in interface SingularAttributeBinding
true
indicates that all values allow null
; false
indicates one or more do notCopyright © 2012 JBoss by Red Hat. All Rights Reserved.