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)protectedAbstractAttributeMapping(AbstractAttributeMapping original)For Hibernate Reactive
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMetadatagetAttributeMetadata()Access to AttributeMetadataStringgetAttributeName()The name of the mapped attributeManagedMappingTypegetDeclaringType()The managed type that declares this attributeintgetFetchableKey()The key that identifies this Fetchable within aFetchableContainer.JavaType<?>getJavaType()The Java type for this part.MappingTypegetPartMappingType()The type for this part.PropertyAccessgetPropertyAccess()The getter/setter access to this attributeintgetStateArrayPosition()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:AttributeMappingThe managed type that declares this attribute- Specified by:
getDeclaringTypein interfaceAttributeMapping- Specified by:
getDeclaringTypein interfaceOwnedValuedModelPart
-
getAttributeName
public String getAttributeName()
Description copied from interface:AttributeMappingThe name of the mapped attribute- Specified by:
getAttributeNamein interfaceAttributeMapping
-
getAttributeMetadata
public AttributeMetadata getAttributeMetadata()
Description copied from interface:AttributeMappingAccess to AttributeMetadata- Specified by:
getAttributeMetadatain interfaceAttributeMapping
-
getStateArrayPosition
public int getStateArrayPosition()
Description copied from interface:AttributeMappingThe attribute's position within the container's state array- Specified by:
getStateArrayPositionin interfaceAttributeMapping
-
getPropertyAccess
public PropertyAccess getPropertyAccess()
Description copied from interface:AttributeMappingThe getter/setter access to this attribute- Specified by:
getPropertyAccessin interfaceAttributeMapping- Specified by:
getPropertyAccessin interfacePropertyBasedMapping
-
getFetchableKey
public int getFetchableKey()
Description copied from interface:FetchableThe 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.
Fetchobjects in an array.- Specified by:
getFetchableKeyin interfaceFetchable
-
getPartMappingType
public MappingType getPartMappingType()
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceModelPart
-
getJavaType
public JavaType<?> getJavaType()
Description copied from interface:ModelPartThe Java type for this part. Generally equivalent toMappingType.getMappedJavaType()relative toModelPart.getPartMappingType()- Specified by:
getJavaTypein interfaceModelPart
-
-