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 TypeMethodDescriptionbooleanCan the given instance of this type actually perform the parameter value extractions?TheJavaTyperepresenting 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, ornullif 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.type.AdjustableBasicType
resolveIndicatedTypeMethods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
getPersistenceTypeMethods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getJdbcLiteralFormatter, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getJdbcValueBinder, getJdbcValueExtractor, getMappedJavaType, getMappedType, getRegistrationKeys, getSingleJdbcMapping, getSqmTypeMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKeyMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.metamodel.mapping.DiscriminatorType
getJavaTypeDescriptorMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcJavaType, getJdbcTypeMethods inherited from interface org.hibernate.type.OutputableType
extract, extract, getJdbcTypeMethods inherited from interface org.hibernate.query.sqm.SqmBindableType
resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmDomainType
getTupleLength, getTypeNameMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaTypeMethods 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, toLoggableStringMethods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
treatAs
-
Constructor Details
-
DiscriminatorTypeImpl
public DiscriminatorTypeImpl(BasicType<?> underlyingJdbcMapping, DiscriminatorConverter<O, ?> discriminatorValueConverter)
-
-
Method Details
-
getUnderlyingJdbcMapping
- Specified by:
getUnderlyingJdbcMappingin interfaceDiscriminatorType<O>
-
getValueConverter
Description copied from interface:JdbcMappingReturns the converter that this basic type uses for transforming from the domain type, to the relational type, ornullif there is no conversion.- Specified by:
getValueConverterin interfaceBasicType<O>- Specified by:
getValueConverterin interfaceConvertedBasicType<O>- Specified by:
getValueConverterin interfaceDiscriminatorType<O>- Specified by:
getValueConverterin interfaceJdbcMapping- Overrides:
getValueConverterin classConvertedBasicTypeImpl<O>
-
getJavaType
Description copied from interface:DomainTypeThe Java class which represents by this domain type.- Specified by:
getJavaTypein interfaceBasicDomainType<O>- Specified by:
getJavaTypein interfaceBasicType<O>- Specified by:
getJavaTypein interfaceDomainType<O>- Specified by:
getJavaTypein interfaceSimpleDomainType<O>- Specified by:
getJavaTypein interfaceType<O>- Overrides:
getJavaTypein classConvertedBasicTypeImpl<O>- See Also:
-
canDoExtraction
public boolean canDoExtraction()Description copied from interface:OutputableTypeCan the given instance of this type actually perform the parameter value extractions?- Specified by:
canDoExtractionin interfaceOutputableType<O>- Overrides:
canDoExtractionin classConvertedBasicTypeImpl<O>- Returns:
trueindicates thatOutputableType.extract(java.sql.CallableStatement, int, org.hibernate.engine.spi.SharedSessionContractImplementor)calls will not fail due toIllegalStateException.
-
getExpressibleJavaType
Description copied from interface:DomainTypeTheJavaTyperepresenting this domain type.- Specified by:
getExpressibleJavaTypein interfaceBasicType<O>- Specified by:
getExpressibleJavaTypein interfaceDomainType<O>- Specified by:
getExpressibleJavaTypein interfaceJavaTypedExpressible<O>- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<O>- Specified by:
getExpressibleJavaTypein interfaceValueMapping
-