|
||||||||||
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
public abstract class AbstractSingularAttributeBinding
Constructor Summary | |
---|---|
protected |
AbstractSingularAttributeBinding(AttributeBindingContainer container,
SingularAttribute attribute)
|
Method Summary | |
---|---|
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)
|
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.SingularAttributeBinding |
---|
getGeneration |
Methods inherited from interface org.hibernate.metamodel.binding.AttributeBinding |
---|
addEntityReferencingAttributeBinding, getContainer, getEntityReferencingAttributeBindings, getHibernateTypeDescriptor, getMetaAttributeContext, getPropertyAccessorName, isAlternateUniqueKey, isAssociation, isBasicPropertyAccessor, isIncludedInOptimisticLocking, isLazy, setIncludedInOptimisticLocking, setPropertyAccessorName, validate |
Constructor Detail |
---|
protected AbstractSingularAttributeBinding(AttributeBindingContainer container, SingularAttribute attribute)
Method Detail |
---|
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 not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |