|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.source.hbm.ComponentAttributeSourceImpl
public class ComponentAttributeSourceImpl
Constructor Summary | |
---|---|
ComponentAttributeSourceImpl(JaxbComponentElement componentElement,
AttributeSourceContainer parentContainer,
LocalBindingContext bindingContext)
|
Method Summary | |
---|---|
boolean |
areValuesIncludedInInsertByDefault()
|
boolean |
areValuesIncludedInUpdateByDefault()
|
boolean |
areValuesNullableByDefault()
|
Iterable<AttributeSource> |
attributeSources()
Obtain this container's attribute sources. |
String |
getClassName()
|
Value<Class<?>> |
getClassReference()
|
String |
getExplicitTuplizerClassName()
|
PropertyGeneration |
getGeneration()
Obtain a description of if/when the attribute value is generated by the database. |
LocalBindingContext |
getLocalBindingContext()
Obtain the local binding context associated with this container. |
String |
getName()
Obtain the attribute name. |
SingularAttributeNature |
getNature()
Obtain the nature of this attribute type. |
String |
getParentReferenceAttributeName()
|
String |
getPath()
Obtain the path used to uniquely identify this container. |
String |
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute. |
ExplicitHibernateTypeSource |
getTypeInformation()
Obtain information about the Hibernate type ( Type ) for this attribute. |
boolean |
isIncludedInOptimisticLocking()
If the containing entity is using OptimisticLockStyle.ALL or
OptimisticLockStyle.DIRTY style optimistic locking, should this attribute
be used? |
boolean |
isInsertable()
Determine whether this attribute is insertable. |
boolean |
isLazy()
Should the attribute be (bytecode enhancement) lazily loaded? |
boolean |
isSingular()
Is this a singular attribute? Specifically, can it be cast to SingularAttributeSource ? |
boolean |
isUpdatable()
Determine whether this attribute is updateable. |
boolean |
isVirtualAttribute()
Determine whether this is a virtual attribute or whether it physically exists on the users domain model. |
Iterable<MetaAttributeSource> |
metaAttributes()
Obtain the meta-attribute sources associated with this attribute. |
List<RelationalValueSource> |
relationalValueSources()
Obtain the contained RelationalValueSource references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentAttributeSourceImpl(JaxbComponentElement componentElement, AttributeSourceContainer parentContainer, LocalBindingContext bindingContext)
Method Detail |
---|
public String getClassName()
getClassName
in interface ComponentAttributeSource
public Value<Class<?>> getClassReference()
getClassReference
in interface ComponentAttributeSource
public String getPath()
AttributeSourceContainer
getPath
in interface AttributeSourceContainer
public LocalBindingContext getLocalBindingContext()
AttributeSourceContainer
getLocalBindingContext
in interface AttributeSourceContainer
public String getParentReferenceAttributeName()
getParentReferenceAttributeName
in interface ComponentAttributeSource
public String getExplicitTuplizerClassName()
getExplicitTuplizerClassName
in interface ComponentAttributeSource
public Iterable<AttributeSource> attributeSources()
AttributeSourceContainer
attributeSources
in interface AttributeSourceContainer
public boolean isVirtualAttribute()
SingularAttributeSource
isVirtualAttribute
in interface SingularAttributeSource
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;
false
indicates the attribute physically exists.public SingularAttributeNature getNature()
SingularAttributeSource
getNature
in interface SingularAttributeSource
public ExplicitHibernateTypeSource getTypeInformation()
AttributeSource
Type
) for this attribute.
getTypeInformation
in interface AttributeSource
public String getName()
AttributeSource
getName
in interface AttributeSource
null
ais NOT allowed!public boolean isSingular()
AttributeSource
SingularAttributeSource
?
isSingular
in interface AttributeSource
true
indicates this is castable to SingularAttributeSource
; false
otherwise.public String getPropertyAccessorName()
AttributeSource
getPropertyAccessorName
in interface AttributeSource
PropertyAccessor
public boolean isInsertable()
SingularAttributeSource
isInsertable
in interface SingularAttributeSource
true
indicates the attribute value should be used in the SQL INSERT
; false
indicates it should not.public boolean isUpdatable()
SingularAttributeSource
isUpdatable
in interface SingularAttributeSource
true
indicates the attribute value should be used in the SQL UPDATE
; false
indicates it should not.public PropertyGeneration getGeneration()
SingularAttributeSource
getGeneration
in interface SingularAttributeSource
public boolean isLazy()
SingularAttributeSource
isLazy
in interface SingularAttributeSource
true
to indicate the attribute should be lazily loaded.public boolean isIncludedInOptimisticLocking()
AttributeSource
OptimisticLockStyle.ALL
or
OptimisticLockStyle.DIRTY
style optimistic locking, should this attribute
be used?
isIncludedInOptimisticLocking
in interface AttributeSource
true
indicates it should be included; false
, it should not.public Iterable<MetaAttributeSource> metaAttributes()
AttributeSource
metaAttributes
in interface AttributeSource
public boolean areValuesIncludedInInsertByDefault()
areValuesIncludedInInsertByDefault
in interface RelationalValueSourceContainer
public boolean areValuesIncludedInUpdateByDefault()
areValuesIncludedInUpdateByDefault
in interface RelationalValueSourceContainer
public boolean areValuesNullableByDefault()
areValuesNullableByDefault
in interface RelationalValueSourceContainer
public List<RelationalValueSource> relationalValueSources()
RelationalValueSourceContainer
RelationalValueSource
references.
relationalValueSources
in interface RelationalValueSourceContainer
RelationalValueSource
references.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |