Interface CompositeIdentifierMapping
- All Superinterfaces:
Bindable, EmbeddableValuedModelPart, EntityIdentifierMapping, Fetchable, FetchableContainer, JavaTypedExpressible, JdbcMappingContainer, MappingModelExpressible, ModelPart, ModelPartContainer, SelectableMappings, TableGroupJoinProducer, TableGroupProducer, ValuedModelPart, ValueMapping
- All Known Subinterfaces:
NonAggregatedIdentifierMapping
public interface CompositeIdentifierMapping
extends EntityIdentifierMapping, EmbeddableValuedModelPart
Mapping for a composite identifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer Nested classes/interfaces inherited from interface EntityIdentifierMapping
EntityIdentifierMapping.NatureNested classes/interfaces inherited from interface ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Field Summary
Fields inherited from interface EntityIdentifierMapping
ID_ROLE_NAME, LEGACY_ID_NAME -
Method Summary
Modifier and TypeMethodDescriptiondefault intThe key that identifies this Fetchable within aFetchableContainer.Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.The type for this part.default IdentifierValueThe strategy for distinguishing between detached and transient state based on the identifier mappingbooleanDoes the identifier have a corresponding EmbeddableId or IdClass?Methods inherited from interface Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface EmbeddableValuedModelPart
addToCacheKey, breakDownJdbcValues, decompose, disassemble, findSubPart, forEachDisassembledJdbcValue, forEachInsertable, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSubPart, forEachUpdatable, getEmbeddableTypeDescriptor, getFetchable, getJavaType, getJdbcMapping, getJdbcTypeCount, getMappedType, getNumberOfFetchables, getParentInjectionAttributePropertyAccess, getSelectable, getSelectableIndex, hasPartitionedSelectionMapping, toSqlExpression, visitSubPartsMethods inherited from interface EntityIdentifierMapping
getAttributeName, getIdentifier, getIdentifier, getIdentifierIfNotUnsaved, getNature, getPartName, instantiate, isEntityIdentifierMapping, setIdentifierMethods inherited from interface Fetchable
asAttributeMapping, generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, isSelectable, resolveCircularFetchMethods inherited from interface FetchableContainer
getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchablesMethods inherited from interface JavaTypedExpressible
addToCacheKeyMethods inherited from interface ModelPart
applySqlSelections, applySqlSelections, areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, createDomainResult, decompose, findContainingEntityMapping, getNavigableRole, isVirtualMethods inherited from interface ModelPartContainer
findByPath, findByPath, forEachSubPartMethods inherited from interface TableGroupJoinProducer
createRootTableGroupJoin, createTableGroupJoin, determineSqlJoinType, getDefaultSqlAstJoinType, isSimpleJoinPredicateMethods inherited from interface TableGroupProducer
containsTableReference, getSqlAliasStemMethods inherited from interface ValuedModelPart
forEachNonFormula, forEachSelectable, getContainingTableExpression, getSingleJdbcMappingMethods inherited from interface ValueMapping
getExpressibleJavaType, treatAs
-
Method Details
-
getFetchableKey
default 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
-
getUnsavedStrategy
Description copied from interface:EntityIdentifierMappingThe strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategyin interfaceEntityIdentifierMapping- See Also:
-
hasContainingClass
boolean hasContainingClass()Does the identifier have a corresponding EmbeddableId or IdClass?- Returns:
- false if there is not an IdCass or an EmbeddableId
-
getPartMappingType
EmbeddableMappingType getPartMappingType()Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceModelPart
-
getMappedIdEmbeddableTypeDescriptor
EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.
-