Class DiscriminatorConverter<O,R>
java.lang.Object
org.hibernate.metamodel.mapping.DiscriminatorConverter<O,R>
- All Implemented Interfaces:
BasicValueConverter<O,R>
public abstract class DiscriminatorConverter<O,R>
extends Object
implements BasicValueConverter<O,R>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidforEachValueDetail(Consumer<DiscriminatorValueDetails> consumer) abstract <X> XfromValueDetails(Function<DiscriminatorValueDetails, X> handler) Find and return the first DiscriminatorValueDetails which matches the givenhandlerabstract DiscriminatorValueDetailsgetDetailsForDiscriminatorValue(Object relationalValue) abstract DiscriminatorValueDetailsgetDetailsForEntityName(String entityName) getDetailsForRelationalForm(R relationalForm) Descriptor for the Java type for the domain portion of this converterprotected abstract StringgetEntityName(O domainForm) Descriptor for the Java type for the relational portion of this convertertoDomainValue(R relationalForm) Convert the relational form just retrieved from JDBC ResultSet into the domain form.toRelationalValue(O domainForm) Convert the domain form into the relational form in preparation for storage into JDBCtoString()
-
Constructor Details
-
DiscriminatorConverter
-
-
Method Details
-
getDiscriminatorName
-
getDomainJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<O,R>
-
getRelationalJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<O,R>
-
getDetailsForRelationalForm
-
toDomainValue
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValuein interfaceBasicValueConverter<O,R>
-
toRelationalValue
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValuein interfaceBasicValueConverter<O,R>
-
getEntityName
-
getDetailsForDiscriminatorValue
@Nullable public abstract DiscriminatorValueDetails getDetailsForDiscriminatorValue(@Nullable Object relationalValue) -
getDetailsForEntityName
@Nonnull public abstract DiscriminatorValueDetails getDetailsForEntityName(@Nonnull String entityName) -
toString
-
forEachValueDetail
-
fromValueDetails
@Nullable public abstract <X> X fromValueDetails(@Nonnull Function<DiscriminatorValueDetails, X> handler) Find and return the first DiscriminatorValueDetails which matches the givenhandler
-