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
,MockEntityPersister
,NamedBasicTypeImpl
,NonAggregatedIdentifierMappingImpl
,NullType
,OneToManyCollectionPart
,PluralAttributeMappingImpl
,ProcessorSessionFactory.EntityPersister
,QueryParameterJavaObjectType
,SerializableToBlobType
,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 interface
Functional interface for consuming the JDBC values, along with two values of typeX
andY
.static interface
Functional interface for consuming the JDBC values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCacheKey
(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 ofJ
into its simple pieces.default int
forEachDisassembledJdbcValue
(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 valuesX
andY
.<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 int
forEachDisassembledJdbcValue
(Object value, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor)
, that passes null for the two valuesX
andY
.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 int
forEachJdbcType
(IndexedConsumer<JdbcMapping> action) Visit each of JdbcMappingdefault int
forEachJdbcValue
(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 valuesX
andY
.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 int
forEachJdbcValue
(Object value, Bindable.JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) A short hand form offorEachJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor)
, that passes null for the two valuesX
andY
.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 int
The 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:
getJdbcTypeCount
in interfaceJdbcMappingContainer
-
forEachJdbcType
Visit each of JdbcMapping- Specified by:
forEachJdbcType
in interfaceJdbcMappingContainer
- API Note:
- Same as
JdbcMappingContainer.forEachJdbcType(int, IndexedConsumer)
starting from `0`
-