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
-
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
ModifierConstructorDescriptionAbstractAttributeMapping
(String name, int fetchableIndex, ManagedMappingType declaringType, AttributeMetadata attributeMetadata, int stateArrayPosition, PropertyAccess propertyAccess) protected
For Hibernate Reactive -
Method Summary
Modifier and TypeMethodDescriptionAccess to AttributeMetadataThe name of the mapped attributeThe managed type that declares this attributeint
The key that identifies this Fetchable within aFetchableContainer
.JavaType<?>
The Java type for this part.The type for this part.The getter/setter access to this attributeint
The attribute's position within the container's state arrayMethods 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 Details
-
AbstractAttributeMapping
public AbstractAttributeMapping(String name, int fetchableIndex, ManagedMappingType declaringType, AttributeMetadata attributeMetadata, int stateArrayPosition, PropertyAccess propertyAccess) -
AbstractAttributeMapping
For Hibernate Reactive
-
-
Method Details
-
getDeclaringType
Description copied from interface:AttributeMapping
The managed type that declares this attribute- Specified by:
getDeclaringType
in interfaceAttributeMapping
- Specified by:
getDeclaringType
in interfaceOwnedValuedModelPart
-
getAttributeName
Description copied from interface:AttributeMapping
The name of the mapped attribute- Specified by:
getAttributeName
in interfaceAttributeMapping
-
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
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
Description copied from interface:ModelPart
The type for this part.- Specified by:
getPartMappingType
in interfaceModelPart
-
getJavaType
Description copied from interface:ModelPart
The Java type for this part. Generally equivalent toMappingType.getMappedJavaType()
relative toModelPart.getPartMappingType()
- Specified by:
getJavaType
in interfaceModelPart
-