Package org.hibernate.metamodel.mapping
Interface Bindable
- All Superinterfaces:
JdbcMappingContainer
- All Known Subinterfaces:
AdjustableBasicType<J>,AggregatedIdentifierMapping,Association,AttributeMapping,BasicEntityIdentifierMapping,BasicPluralType<C,,E> BasicType<T>,BasicValuedMapping,BasicValuedModelPart,CollectionIdentifierDescriptor,CollectionPart,CompositeIdentifierMapping,ConvertedBasicType<J>,DatabaseSnapshotContributor,DiscriminatedAssociationModelPart,DiscriminatorMapping,DiscriminatorType<O>,EmbeddableDiscriminatorMapping,EmbeddableMappingType,EmbeddableValuedFetchable,EmbeddableValuedModelPart,EntityAssociationMapping,EntityCollectionPart,EntityDiscriminatorMapping,EntityIdentifierMapping,EntityMappingType,EntityPersister,EntityRowIdMapping,EntityValuedFetchable,EntityValuedModelPart,EntityVersionMapping,Fetchable,FetchableContainer,ForeignKeyDescriptor,InFlightEntityMappingType,Loadable,ManagedMappingType,MappingModelExpressible<T>,ModelPart,ModelPartContainer,NaturalIdMapping,NonAggregatedIdentifierMapping,NonAggregatedIdentifierMapping.IdentifierValueMapper,OwnedValuedModelPart,PluralAttributeMapping,RootTableGroupProducer,SingleAttributeIdentifierMapping,SingularAttributeMapping,SoftDeletableModelPart,SoftDeleteMapping,TableGroupJoinProducer,TableGroupProducer,ValuedModelPart,ValueMapping,VirtualModelPart
- All Known Implementing Classes:
AbstractAttributeMapping,AbstractCompositeIdentifierMapping,AbstractDiscriminatorMapping,AbstractEmbeddableMapping,AbstractEntityCollectionPart,AbstractEntityPersister,AbstractJdbcParameter,AbstractNaturalIdMapping,AbstractSingleColumnStandardBasicType,AbstractSingularAttributeMapping,AbstractStandardBasicType,AbstractStateArrayContributorMapping,AnonymousTupleBasicEntityIdentifierMapping,AnonymousTupleBasicValuedModelPart,AnonymousTupleEmbeddableValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleEntityValuedModelPart,AnonymousTupleNonAggregatedEntityIdentifierMapping,AnonymousTupleTableGroupProducer,AnyDiscriminatorPart,AnyKeyPart,ArrayTupleType,BasicArrayType,BasicAttributeMapping,BasicCollectionType,BasicEntityIdentifierMappingImpl,BasicTypeImpl,BasicValuedCollectionPart,BottomType,CaseStatementDiscriminatorMappingImpl,CollectionIdentifierDescriptorImpl,ColumnValueParameter,CompoundNaturalIdMapping,ConvertedBasicArrayType,ConvertedBasicCollectionType,ConvertedBasicTypeImpl,CteTupleTableGroupProducer,CustomMutabilityConvertedBasicTypeImpl,CustomMutabilityConvertedPrimitiveBasicTypeImpl,CustomType,DiscriminatedAssociationAttributeMapping,DiscriminatedCollectionPart,DiscriminatorType,DiscriminatorTypeImpl,EmbeddableMappingTypeImpl,EmbeddableTypeLiteral,EmbeddedAttributeMapping,EmbeddedCollectionPart,EmbeddedForeignKeyDescriptor,EmbeddedIdentifierMappingImpl,EntityRowIdMappingImpl,EntityTypeLiteral,EntityVersionMappingImpl,ExplicitColumnDiscriminatorMappingImpl,IdClassEmbeddable,ImmutableNamedBasicTypeImpl,InverseNonAggregatedIdentifierMapping,JavaObjectType,JdbcLiteral,JdbcParameterImpl,JoinedSubclassEntityPersister,ManyToManyCollectionPart,NamedBasicTypeImpl,NonAggregatedIdentifierMappingImpl,NullType,OneToManyCollectionPart,PluralAttributeMappingImpl,QueryParameterJavaObjectType,SerializableType,SimpleForeignKeyDescriptor,SimpleNaturalIdMapping,SingleTableEntityPersister,SoftDeleteMappingImpl,SqlTypedMappingJdbcParameter,StandardBasicTypeTemplate,ToOneAttributeMapping,TupleMappingModelExpressible,UnionSubclassEntityPersister,VersionTypeSeedParameterSpecification,VirtualEmbeddedAttributeMapping,VirtualIdEmbeddable
Contract for things at the domain mapping level that can be bound
into a JDBC
PreparedStatement.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFunctional interface for consuming the JDBC values, along with two values of typeXandY.static interfaceFunctional interface for consuming the JDBC values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.disassemble(Object value, SharedSessionContractImplementor session) Breaks down a value ofJinto its simple pieces.default intforEachDisassembledJdbcValue(Object value, int offset, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachDisassembledJdbcValue(Object, int, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), that passes null for the two valuesXandY.<X,Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session) LikeforEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), but additionally receives an offset by which the selectionIndex is incremented when callingBindable.JdbcValuesBiConsumer.consume(int, Object, Object, Object, JdbcMapping).default intforEachDisassembledJdbcValue(Object value, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), that passes null for the two valuesXandY.default <X,Y> int forEachDisassembledJdbcValue(Object value, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session) Visit each constituent JDBC value over the result fromdisassemble(java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor).default intforEachJdbcType(IndexedConsumer<JdbcMapping> action) Visit each of JdbcMappingdefault intforEachJdbcValue(Object value, int offset, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachJdbcValue(Object, int, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), that passes null for the two valuesXandY.default <X,Y> int forEachJdbcValue(Object value, int offset, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session) Visit each constituent JDBC value extracted from the entity instance itself.default intforEachJdbcValue(Object value, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), that passes null for the two valuesXandY.default <X,Y> int forEachJdbcValue(Object value, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session) Visit each constituent JDBC value extracted from the entity instance itself.default intThe number of JDBC mappingsMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMapping
-
Method Details
-
getJdbcTypeCount
default int getJdbcTypeCount()The number of JDBC mappings- Specified by:
getJdbcTypeCountin interfaceJdbcMappingContainer
-
forEachJdbcType
Visit each of JdbcMapping- Specified by:
forEachJdbcTypein interfaceJdbcMappingContainer- API Note:
- Same as
JdbcMappingContainer.forEachJdbcType(int, IndexedConsumer)starting from `0`
-