Class DiscriminatorTypeImpl<O>
java.lang.Object
org.hibernate.type.internal.ConvertedBasicTypeImpl<O>
org.hibernate.metamodel.mapping.internal.DiscriminatorTypeImpl<O>
- All Implemented Interfaces:
BasicType<O>
,Type<O>
,Serializable
,BasicValuedMapping
,Bindable
,DiscriminatorType<O>
,JdbcMapping
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,SqlExpressible
,ValueMapping
,BasicDomainType<O>
,DomainType<O>
,ReturnableType<O>
,SimpleDomainType<O>
,SqmBindableType<O>
,SqmExpressible<O>
,SqmDomainType<O>
,AdjustableBasicType<O>
,BasicType<O>
,BindableType<O>
,ConvertedBasicType<O>
,JavaTypedExpressible
,OutputableType<O>
,ProcedureParameterExtractionAware<O>
,ProcedureParameterNamedBinder<O>
,Type
public class DiscriminatorTypeImpl<O>
extends ConvertedBasicTypeImpl<O>
implements DiscriminatorType<O>
Specialization of ConvertedBasicTypeImpl to expose access to the
underlyingJdbcMapping
of this discriminator - the bit that handles
the relationship between the relational JavaType and the JdbcType- See Also:
-
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
-
Field Summary
Fields inherited from class org.hibernate.type.internal.ConvertedBasicTypeImpl
EXTERNALIZED_PREFIX, NO_REG_KEYS
-
Constructor Summary
ConstructorsConstructorDescriptionDiscriminatorTypeImpl
(BasicType<?> underlyingJdbcMapping, DiscriminatorConverter<O, ?> discriminatorValueConverter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can the given instance of this type actually perform the parameter value extractions?TheJavaType
representing this domain type.The Java class which represents by this domain type.BasicType<?>
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 class org.hibernate.type.internal.ConvertedBasicTypeImpl
assemble, beforeAssemble, canDoSetting, compare, deepCopy, disassemble, disassemble, extract, extract, getCastType, getColumnSpan, getHashCode, getHashCode, getJavaTypeDescriptor, getJdbcJavaType, getJdbcLiteralFormatter, getJdbcType, getJdbcValueBinder, getJdbcValueExtractor, getMutabilityPlan, getName, getRegistrationKeys, getReturnedClass, getSqlTypeCodes, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.type.AdjustableBasicType
resolveIndicatedType
Methods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
getPersistenceType
Methods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getJdbcLiteralFormatter, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getJdbcValueBinder, getJdbcValueExtractor, getMappedJavaType, getMappedType, getRegistrationKeys, getSingleJdbcMapping, getSqmType
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.mapping.DiscriminatorType
getJavaTypeDescriptor
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcJavaType, getJdbcType
Methods inherited from interface org.hibernate.type.OutputableType
extract, extract, getJdbcType
Methods inherited from interface org.hibernate.query.sqm.SqmBindableType
resolveExpressible
Methods inherited from interface org.hibernate.query.sqm.tree.domain.SqmDomainType
getTupleLength, getTypeName
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType
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
-
Constructor Details
-
DiscriminatorTypeImpl
public DiscriminatorTypeImpl(BasicType<?> underlyingJdbcMapping, DiscriminatorConverter<O, ?> discriminatorValueConverter)
-
-
Method Details
-
getUnderlyingJdbcMapping
- Specified by:
getUnderlyingJdbcMapping
in interfaceDiscriminatorType<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 interfaceDiscriminatorType<O>
- Specified by:
getValueConverter
in interfaceJdbcMapping
- Overrides:
getValueConverter
in classConvertedBasicTypeImpl<O>
-
getJavaType
Description copied from interface:DomainType
The Java class which represents by this domain type.- Specified by:
getJavaType
in interfaceBasicDomainType<O>
- Specified by:
getJavaType
in interfaceBasicType<O>
- Specified by:
getJavaType
in interfaceDomainType<O>
- Specified by:
getJavaType
in interfaceSimpleDomainType<O>
- Specified by:
getJavaType
in interfaceType<O>
- Overrides:
getJavaType
in classConvertedBasicTypeImpl<O>
- See Also:
-
canDoExtraction
public boolean canDoExtraction()Description copied from interface:OutputableType
Can the given instance of this type actually perform the parameter value extractions?- Specified by:
canDoExtraction
in interfaceOutputableType<O>
- Overrides:
canDoExtraction
in classConvertedBasicTypeImpl<O>
- Returns:
true
indicates thatOutputableType.extract(java.sql.CallableStatement, int, org.hibernate.engine.spi.SharedSessionContractImplementor)
calls will not fail due toIllegalStateException
.
-
getExpressibleJavaType
Description copied from interface:DomainType
TheJavaType
representing this domain type.- Specified by:
getExpressibleJavaType
in interfaceBasicType<O>
- Specified by:
getExpressibleJavaType
in interfaceDomainType<O>
- Specified by:
getExpressibleJavaType
in interfaceJavaTypedExpressible<O>
- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<O>
- Specified by:
getExpressibleJavaType
in interfaceValueMapping
-