public class ComponentAttributeSourceImpl extends Object implements ComponentAttributeSource
| Constructor and Description |
|---|
ComponentAttributeSourceImpl(JaxbComponentElement componentElement,
AttributeSourceContainer parentContainer,
LocalBindingContext bindingContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areValuesIncludedInInsertByDefault() |
boolean |
areValuesIncludedInUpdateByDefault() |
boolean |
areValuesNullableByDefault() |
Iterable<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
String |
getClassName() |
ValueHolder<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. |
public ComponentAttributeSourceImpl(JaxbComponentElement componentElement, AttributeSourceContainer parentContainer, LocalBindingContext bindingContext)
public String getClassName()
getClassName in interface ComponentAttributeSourcepublic ValueHolder<Class<?>> getClassReference()
getClassReference in interface ComponentAttributeSourcepublic String getPath()
AttributeSourceContainergetPath in interface AttributeSourceContainerpublic LocalBindingContext getLocalBindingContext()
AttributeSourceContainergetLocalBindingContext in interface AttributeSourceContainerpublic String getParentReferenceAttributeName()
getParentReferenceAttributeName in interface ComponentAttributeSourcepublic String getExplicitTuplizerClassName()
getExplicitTuplizerClassName in interface ComponentAttributeSourcepublic Iterable<AttributeSource> attributeSources()
AttributeSourceContainerattributeSources in interface AttributeSourceContainerpublic boolean isVirtualAttribute()
SingularAttributeSourceisVirtualAttribute in interface SingularAttributeSourcetrue indicates the attribute is virtual, meaning it does NOT exist on the domain model;
false indicates the attribute physically exists.public SingularAttributeNature getNature()
SingularAttributeSourcegetNature in interface SingularAttributeSourcepublic ExplicitHibernateTypeSource getTypeInformation()
AttributeSourceType) for this attribute.getTypeInformation in interface AttributeSourcepublic String getName()
AttributeSourcegetName in interface AttributeSourcenull ais NOT allowed!public boolean isSingular()
AttributeSourceSingularAttributeSource?isSingular in interface AttributeSourcetrue indicates this is castable to SingularAttributeSource; false otherwise.public String getPropertyAccessorName()
AttributeSourcegetPropertyAccessorName in interface AttributeSourcePropertyAccessorpublic boolean isInsertable()
SingularAttributeSourceisInsertable in interface SingularAttributeSourcetrue indicates the attribute value should be used in the SQL INSERT; false
indicates it should not.public boolean isUpdatable()
SingularAttributeSourceisUpdatable in interface SingularAttributeSourcetrue indicates the attribute value should be used in the SQL UPDATE; false
indicates it should not.public PropertyGeneration getGeneration()
SingularAttributeSourcegetGeneration in interface SingularAttributeSourcepublic boolean isLazy()
SingularAttributeSourceisLazy in interface SingularAttributeSourcetrue to indicate the attribute should be lazily loaded.public boolean isIncludedInOptimisticLocking()
AttributeSourceOptimisticLockStyle.ALL or
OptimisticLockStyle.DIRTY style optimistic locking, should this attribute
be used?isIncludedInOptimisticLocking in interface AttributeSourcetrue indicates it should be included; false, it should not.public Iterable<MetaAttributeSource> metaAttributes()
AttributeSourcemetaAttributes in interface AttributeSourcepublic boolean areValuesIncludedInInsertByDefault()
areValuesIncludedInInsertByDefault in interface RelationalValueSourceContainerpublic boolean areValuesIncludedInUpdateByDefault()
areValuesIncludedInUpdateByDefault in interface RelationalValueSourceContainerpublic boolean areValuesNullableByDefault()
areValuesNullableByDefault in interface RelationalValueSourceContainerpublic List<RelationalValueSource> relationalValueSources()
RelationalValueSourceContainerRelationalValueSource references.relationalValueSources in interface RelationalValueSourceContainerRelationalValueSource references.Copyright © 2018 JBoss by Red Hat. All rights reserved.