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>,SimpleDomainType<O>,BindableType<O>,OutputableType<O>,ReturnableType<O>,SqmExpressible<O>,AdjustableBasicType<O>,BasicType<O>,ConvertedBasicType<O>,JavaTypedExpressible,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- Author:
- Steve Ebersole
- 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?The Java type descriptor for this expressibleReturn the represented Java 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
areEqual, getPersistenceTypeMethods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getJdbcLiteralFormatter, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getJdbcValueBinder, getJdbcValueExtractor, getMappedJavaType, getMappedType, getRegistrationKeys, getSingleJdbcMappingMethods 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.model.domain.DomainType
getSqmType, getTupleLengthMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcJavaType, getJdbcTypeMethods inherited from interface org.hibernate.query.OutputableType
extract, extract, getJdbcTypeMethods inherited from interface org.hibernate.metamodel.model.domain.SimpleDomainType
getBindableJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressibleMethods 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:TypeReturn the represented Java type.- Specified by:
getJavaTypein interfaceType<O>- Overrides:
getJavaTypein classConvertedBasicTypeImpl<O>- Returns:
- Java type
-
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:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceBasicType<O>- Specified by:
getExpressibleJavaTypein interfaceJavaTypedExpressible<O>- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<O>- Specified by:
getExpressibleJavaTypein interfaceValueMapping
-