Package org.hibernate.metamodel.mapping
Class DiscriminatorConverter<O,R>
java.lang.Object
org.hibernate.metamodel.mapping.DiscriminatorConverter<O,R>
- All Implemented Interfaces:
BasicValueConverter<O,
R>
- Direct Known Subclasses:
DefaultDiscriminatorConverter
,EmbeddableDiscriminatorConverter
,MappedDiscriminatorConverter
public abstract class DiscriminatorConverter<O,R>
extends Object
implements BasicValueConverter<O,R>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
forEachValueDetail
(Consumer<DiscriminatorValueDetails> consumer) abstract <X> X
fromValueDetails
(Function<DiscriminatorValueDetails, X> handler) abstract DiscriminatorValueDetails
getDetailsForDiscriminatorValue
(Object relationalForm) abstract DiscriminatorValueDetails
getDetailsForEntityName
(String entityName) getDetailsForRelationalForm
(R relationalForm) Descriptor for the Java type for the domain portion of this converterDescriptor 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:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<O,
R>
-
getRelationalJavaType
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaType
in interfaceBasicValueConverter<O,
R>
-
getDetailsForRelationalForm
-
toDomainValue
Description copied from interface:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValue
in interfaceBasicValueConverter<O,
R>
-
toRelationalValue
Description copied from interface:BasicValueConverter
Convert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValue
in interfaceBasicValueConverter<O,
R>
-
getDetailsForDiscriminatorValue
-
getDetailsForEntityName
-
toString
-
forEachValueDetail
-
fromValueDetails
-