Package org.hibernate.boot.model
Interface TypeContributions
- All Known Implementing Classes:
DialectFeatureChecks.FakeTypeContributions,MetadataBuilderImpl
public interfaceTypeContributionsAllows custom types and type descriptors to be contributed to the eventualTypeConfiguration, either by aDialector by aTypeContributor.- See Also:
TypeContributor
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidcontributeAttributeConverter(Class<? extendsAttributeConverter<?,?>> converterClass)Register anAttributeConverterclass.default voidcontributeJavaType(JavaType<?> descriptor)default voidcontributeJdbcType(JdbcType descriptor)default voidcontributeJdbcTypeConstructor(JdbcTypeConstructor typeConstructor)default voidcontributeType(BasicType<?> type)Deprecated.See discussion ofTypeContributorin User Guide.default voidcontributeType(BasicType<?> type,String... keys)Deprecated.UsecontributeType(BasicType)instead.default voidcontributeType(CompositeUserType<?> type)Register aCompositeUserTypeas the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass().default voidcontributeType(UserType<?> type)Register aUserTypeas the implicit (auto-applied) type for values of typeUserType.returnedClass().default voidcontributeType(UserType<?> type,String... keys)Deprecated.UsecontributeType(BasicType)instead.TypeConfigurationgetTypeConfiguration()TheTypeConfigurationto contribute to
Method Detail
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
TheTypeConfigurationto 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 aUserTypeas the implicit (auto-applied) type for values of typeUserType.returnedClass().
contributeType
@Incubatingdefault void contributeType(CompositeUserType<?> type)
Register aCompositeUserTypeas the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass().- Since:
- 6.4
contributeAttributeConverter
@Incubatingdefault void contributeAttributeConverter(Class<? extendsAttributeConverter<?,?>> converterClass)
Register anAttributeConverterclass.- Since:
- 6.2
contributeType
@Deprecated(since="6.0")default void contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributorin 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.