Class AbstractAttributeMapping
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.AbstractAttributeMapping
-
- All Implemented Interfaces:
AttributeMapping
,Bindable
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,OwnedValuedModelPart
,PropertyBasedMapping
,SelectableMappings
,ValuedModelPart
,ValueMapping
,DatabaseSnapshotContributor
,Fetchable
,JavaTypedExpressible
,MutabilityPlanExposer
- Direct Known Subclasses:
AbstractStateArrayContributorMapping
,PluralAttributeMappingImpl
public abstract class AbstractAttributeMapping extends Object implements AttributeMapping
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractAttributeMapping(String name, int fetchableIndex, ManagedMappingType declaringType, AttributeMetadata attributeMetadata, int stateArrayPosition, PropertyAccess propertyAccess)
protected
AbstractAttributeMapping(AbstractAttributeMapping original)
For Hibernate Reactive
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMetadata
getAttributeMetadata()
Access to AttributeMetadataString
getAttributeName()
The name of the mapped attributeManagedMappingType
getDeclaringType()
The managed type that declares this attributeint
getFetchableKey()
The key that identifies this Fetchable within aFetchableContainer
.JavaType<?>
getJavaType()
The Java type for this part.MappingType
getPartMappingType()
The type for this part.PropertyAccess
getPropertyAccess()
The getter/setter access to this attributeint
getStateArrayPosition()
The attribute's position within the container's state array-
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.mapping.AttributeMapping
asAttributeMapping, asEmbeddedAttributeMapping, asPluralAttributeMapping, compare, findContainingEntityMapping, getExposedMutabilityPlan, getGenerator, getPartName, getValue, isEmbeddedAttributeMapping, isPluralAttributeMapping, setValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResult
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, isSelectable, resolveCircularFetch
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, getNavigableRole, hasPartitionedSelectionMapping, isEntityIdentifierMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
getSelectable
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachNonFormula, forEachSelectable, forEachSelectable, forEachUpdatable, getContainingTableExpression, getJdbcTypeCount, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Constructor Detail
-
AbstractAttributeMapping
public AbstractAttributeMapping(String name, int fetchableIndex, ManagedMappingType declaringType, AttributeMetadata attributeMetadata, int stateArrayPosition, PropertyAccess propertyAccess)
-
AbstractAttributeMapping
protected AbstractAttributeMapping(AbstractAttributeMapping original)
For Hibernate Reactive
-
-
Method Detail
-
getDeclaringType
public ManagedMappingType getDeclaringType()
Description copied from interface:AttributeMapping
The managed type that declares this attribute- Specified by:
getDeclaringType
in interfaceAttributeMapping
- Specified by:
getDeclaringType
in interfaceOwnedValuedModelPart
-
getAttributeName
public String getAttributeName()
Description copied from interface:AttributeMapping
The name of the mapped attribute- Specified by:
getAttributeName
in interfaceAttributeMapping
-
getAttributeMetadata
public AttributeMetadata getAttributeMetadata()
Description copied from interface:AttributeMapping
Access to AttributeMetadata- Specified by:
getAttributeMetadata
in interfaceAttributeMapping
-
getStateArrayPosition
public int getStateArrayPosition()
Description copied from interface:AttributeMapping
The attribute's position within the container's state array- Specified by:
getStateArrayPosition
in interfaceAttributeMapping
-
getPropertyAccess
public PropertyAccess getPropertyAccess()
Description copied from interface:AttributeMapping
The getter/setter access to this attribute- Specified by:
getPropertyAccess
in interfaceAttributeMapping
- Specified by:
getPropertyAccess
in interfacePropertyBasedMapping
-
getFetchableKey
public int getFetchableKey()
Description copied from interface:Fetchable
The key that identifies this Fetchable within aFetchableContainer
. If this Fetchable is part ofFetchableContainer.visitFetchables(IndexedConsumer, EntityMappingType)
, the values is guaranteed to be between 0 (inclusive) andFetchableContainer.getNumberOfFetchableKeys()
(exclusive). Other Fetchable objects may have a special negative value.The main intent of this key is to index e.g.
Fetch
objects in an array.- Specified by:
getFetchableKey
in interfaceFetchable
-
getPartMappingType
public MappingType getPartMappingType()
Description copied from interface:ModelPart
The type for this part.- Specified by:
getPartMappingType
in interfaceModelPart
-
getJavaType
public JavaType<?> getJavaType()
Description copied from interface:ModelPart
The Java type for this part. Generally equivalent toMappingType.getMappedJavaType()
relative toModelPart.getPartMappingType()
- Specified by:
getJavaType
in interfaceModelPart
-
-