Package org.hibernate.metamodel.mapping
Interface DiscriminatorType<O>
-
- Type Parameters:
O
- The Java type of the domain form of the discriminator.
- All Superinterfaces:
BasicDomainType<O>
,BasicType<O>
,BasicType<O>
,BasicValuedMapping
,Bindable
,BindableType<O>
,ConvertedBasicType<O>
,DomainType<O>
,JavaTypedExpressible
,JdbcMapping
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,OutputableType<O>
,ReturnableType<O>
,Serializable
,SimpleDomainType<O>
,SqlExpressible
,SqmExpressible<O>
,Type<O>
,Type
,ValueMapping
- All Known Implementing Classes:
DiscriminatorTypeImpl
public interface DiscriminatorType<O> extends ConvertedBasicType<O>, BasicDomainType<O>
Union ofConvertedBasicType
andBasicDomainType
capabilities.- Implementation Note:
- We need the
BasicDomainType
aspect for handling in SQM trees.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JavaType<O>
getJavaTypeDescriptor()
The descriptor for the Java type represented by this expressible typeBasicType<?>
getUnderlyingJdbcMapping()
DiscriminatorConverter<O,?>
getValueConverter()
Returns the converter that this basic type uses for transforming from the domain type, to the relational type, ornull
if there is no conversion.-
Methods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
areEqual, getPersistenceType
-
Methods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getExpressibleJavaType, getJdbcLiteralFormatter, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getJdbcValueBinder, getJdbcValueExtractor, getMappedJavaType, getMappedType, getRegistrationKeys, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLength
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcJavaType, getJdbcType
-
Methods inherited from interface org.hibernate.query.OutputableType
canDoExtraction, extract, extract, getJdbcType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.SimpleDomainType
getBindableJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, disassemble, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getReturnedClassName, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
treatAs
-
-
-
-
Method Detail
-
getValueConverter
DiscriminatorConverter<O,?> getValueConverter()
Description copied from interface:JdbcMapping
Returns the converter that this basic type uses for transforming from the domain type, to the relational type, ornull
if there is no conversion.- Specified by:
getValueConverter
in interfaceBasicType<O>
- Specified by:
getValueConverter
in interfaceConvertedBasicType<O>
- Specified by:
getValueConverter
in interfaceJdbcMapping
-
getUnderlyingJdbcMapping
BasicType<?> getUnderlyingJdbcMapping()
-
getJavaTypeDescriptor
default JavaType<O> getJavaTypeDescriptor()
Description copied from interface:JdbcMapping
The descriptor for the Java type represented by this expressible type- Specified by:
getJavaTypeDescriptor
in interfaceBasicType<O>
- Specified by:
getJavaTypeDescriptor
in interfaceJdbcMapping
-
-