Package org.hibernate.boot.model
Interface TypeContributions
-
- All Known Implementing Classes:
MetadataBuilderImpl
public interface TypeContributions
Allows custom types and type descriptors to be contributed to the eventualTypeConfiguration
, either by aDialect
or by aTypeContributor
.- See Also:
TypeContributor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
contributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)
Register anAttributeConverter
class.default void
contributeJavaType(JavaType<?> descriptor)
default void
contributeJdbcType(JdbcType descriptor)
default void
contributeJdbcTypeConstructor(JdbcTypeConstructor typeConstructor)
default void
contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributor
in User Guide.default void
contributeType(BasicType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.default void
contributeType(CompositeUserType<?> type)
Register aCompositeUserType
as the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass()
.default void
contributeType(UserType<?> type)
Register aUserType
as the implicit (auto-applied) type for values of typeUserType.returnedClass()
.default void
contributeType(UserType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.TypeConfiguration
getTypeConfiguration()
TheTypeConfiguration
to contribute to
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
TheTypeConfiguration
to contribute to
-
contributeJavaType
default void contributeJavaType(JavaType<?> descriptor)
-
contributeJdbcType
default void contributeJdbcType(JdbcType descriptor)
-
contributeJdbcTypeConstructor
default void contributeJdbcTypeConstructor(JdbcTypeConstructor typeConstructor)
-
contributeType
default void contributeType(UserType<?> type)
Register aUserType
as the implicit (auto-applied) type for values of typeUserType.returnedClass()
.
-
contributeType
@Incubating default void contributeType(CompositeUserType<?> type)
Register aCompositeUserType
as the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass()
.- Since:
- 6.4
-
contributeAttributeConverter
@Incubating default void contributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)
Register anAttributeConverter
class.- Since:
- 6.2
-
contributeType
@Deprecated(since="6.0") default void contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributor
in User Guide.
-
contributeType
@Deprecated(since="5.3") default void contributeType(BasicType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.
-
contributeType
@Deprecated(since="5.3") default void contributeType(UserType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.
-
-