Class ExplicitColumnDiscriminatorMappingImpl
java.lang.Object
org.hibernate.metamodel.mapping.internal.AbstractDiscriminatorMapping
org.hibernate.metamodel.mapping.internal.ExplicitColumnDiscriminatorMappingImpl
- All Implemented Interfaces:
BasicValuedMapping,BasicValuedModelPart,Bindable,DiscriminatorMapping,EmbeddableDiscriminatorMapping,EntityDiscriminatorMapping,JdbcMappingContainer,MappingModelExpressible,ModelPart,SelectableMapping,SelectableMappings,SqlExpressible,SqlTypedMapping,ValuedModelPart,ValueMapping,VirtualModelPart,Fetchable,FetchOptions,FetchStyleAccess,FetchTimingAccess,JavaTypedExpressible
public class ExplicitColumnDiscriminatorMappingImpl
extends AbstractDiscriminatorMapping
implements EmbeddableDiscriminatorMapping
-
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 org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Field Summary
Fields inherited from interface org.hibernate.metamodel.mapping.EntityDiscriminatorMapping
DISCRIMINATOR_ROLE_NAME, LEGACY_DISCRIMINATOR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionExplicitColumnDiscriminatorMappingImpl(ManagedMappingType mappingType, String name, String tableExpression, String columnExpression, boolean isFormula, boolean isPhysical, boolean isUpdateable, String columnDefinition, String customReadExpression, Long length, Integer precision, Integer scale, DiscriminatorType<?> discriminatorType) -
Method Summary
Modifier and TypeMethodDescriptionThe table which contains the columns mapped by this valueThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()The selection's write expression accountingColumnTransformer.write()Descriptor for the type of this mappinggetScale()The selection's expression.Information about the value mappingsbooleanbooleanIs the discriminator defined by a physical column?booleanIs the mapping a formula instead of a physical column?booleanbooleanIs the mapping considered nullable?booleanbooleanresolveSqlExpression(NavigablePath navigablePath, JdbcMapping jdbcMappingToUse, TableGroup tableGroup, SqlAstCreationState creationState) Create the appropriate SQL expression for this discriminatorMethods inherited from class org.hibernate.metamodel.mapping.internal.AbstractDiscriminatorMapping
applySqlSelections, applySqlSelections, breakDownJdbcValues, createDomainResult, disassemble, findContainingEntityMapping, forEachDisassembledJdbcValue, forEachJdbcType, generateFetch, getEntityDescriptor, getJavaType, getJdbcMapping, getNavigableRole, getUnderlyingJdbcMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey, disassemble, getJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedModelPart
asBasicValuedModelPart, forEachSelectable, forEachSelectable, getJdbcMapping, getJdbcTypeCount, getPartMappingType, getSelectable, getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.metamodel.mapping.DiscriminatorMapping
generateFetch, getDomainJavaType, getRelationalJavaType, getUnderlyingJdbcMapping, resolveDiscriminatorValueMethods inherited from interface org.hibernate.metamodel.mapping.EmbeddableDiscriminatorMapping
getDiscriminatorValueMethods inherited from interface org.hibernate.metamodel.mapping.EntityDiscriminatorMapping
getFetchableKey, getFetchableName, getMappedFetchOptions, getPartName, getStyle, getTimingMethods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, incrementFetchDepth, isSelectable, resolveCircularFetchMethods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKeyMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcTypeMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, findContainingEntityMapping, getJavaType, getNavigableRole, isEntityIdentifierMappingMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getSelectablePath, getWriteExpressionMethods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getJdbcMapping, isLob, toSizeMethods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachNonFormula, forEachUpdatableMethods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAsMethods inherited from interface org.hibernate.metamodel.mapping.VirtualModelPart
isVirtual
-
Constructor Details
-
ExplicitColumnDiscriminatorMappingImpl
public ExplicitColumnDiscriminatorMappingImpl(ManagedMappingType mappingType, String name, String tableExpression, String columnExpression, boolean isFormula, boolean isPhysical, boolean isUpdateable, String columnDefinition, String customReadExpression, Long length, Integer precision, Integer scale, DiscriminatorType<?> discriminatorType)
-
-
Method Details
-
getMappedType
Description copied from interface:ValueMappingDescriptor for the type of this mapping- Specified by:
getMappedTypein interfaceValueMapping- Overrides:
getMappedTypein classAbstractDiscriminatorMapping
-
getValueConverter
Description copied from interface:DiscriminatorMappingInformation about the value mappings- Specified by:
getValueConverterin interfaceDiscriminatorMapping- Overrides:
getValueConverterin classAbstractDiscriminatorMapping
-
getContainingTableExpression
Description copied from interface:ValuedModelPartThe table which contains the columns mapped by this value- Specified by:
getContainingTableExpressionin interfaceSelectableMapping- Specified by:
getContainingTableExpressionin interfaceValuedModelPart
-
getSelectableName
- Specified by:
getSelectableNamein interfaceSelectableMapping
-
getSelectionExpression
Description copied from interface:SelectableMappingThe selection's expression. This is the column name or formula- Specified by:
getSelectionExpressionin interfaceSelectableMapping
-
getCustomReadExpression
Description copied from interface:SelectableMappingThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()- Specified by:
getCustomReadExpressionin interfaceSelectableMapping
-
getCustomWriteExpression
Description copied from interface:SelectableMappingThe selection's write expression accountingColumnTransformer.write()- Specified by:
getCustomWriteExpressionin interfaceSelectableMapping
-
getColumnDefinition
- Specified by:
getColumnDefinitionin interfaceSqlTypedMapping
-
getLength
- Specified by:
getLengthin interfaceSqlTypedMapping
-
getPrecision
- Specified by:
getPrecisionin interfaceSqlTypedMapping
-
getScale
- Specified by:
getScalein interfaceSqlTypedMapping
-
getTemporalPrecision
- Specified by:
getTemporalPrecisionin interfaceSqlTypedMapping
-
isFormula
public boolean isFormula()Description copied from interface:SelectableMappingIs the mapping a formula instead of a physical column?- Specified by:
isFormulain interfaceSelectableMapping
-
isNullable
public boolean isNullable()Description copied from interface:SelectableMappingIs the mapping considered nullable?- Specified by:
isNullablein interfaceSelectableMapping
-
isInsertable
public boolean isInsertable()- Specified by:
isInsertablein interfaceSelectableMapping
-
isUpdateable
public boolean isUpdateable()- Specified by:
isUpdateablein interfaceSelectableMapping
-
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitionedin interfaceSelectableMapping
-
hasPartitionedSelectionMapping
public boolean hasPartitionedSelectionMapping()- Specified by:
hasPartitionedSelectionMappingin interfaceBasicValuedModelPart- Specified by:
hasPartitionedSelectionMappingin interfaceModelPart
-
hasPhysicalColumn
public boolean hasPhysicalColumn()Description copied from interface:EntityDiscriminatorMappingIs the discriminator defined by a physical column?- Specified by:
hasPhysicalColumnin interfaceEntityDiscriminatorMapping
-