Class CaseStatementDiscriminatorMappingImpl
java.lang.Object
org.hibernate.metamodel.mapping.internal.AbstractDiscriminatorMapping
org.hibernate.metamodel.mapping.internal.CaseStatementDiscriminatorMappingImpl
- All Implemented Interfaces:
BasicValuedMapping,BasicValuedModelPart,Bindable,DiscriminatorMapping,EntityDiscriminatorMapping,JdbcMappingContainer,MappingModelExpressible,ModelPart,SelectableMapping,SelectableMappings,SqlExpressible,SqlTypedMapping,ValuedModelPart,ValueMapping,VirtualModelPart,Fetchable,FetchOptions,FetchStyleAccess,FetchTimingAccess,JavaTypedExpressible
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classNested 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
ConstructorsConstructorDescriptionCaseStatementDiscriminatorMappingImpl(JoinedSubclassEntityPersister entityDescriptor, String[] tableNames, int[] notNullColumnTableNumbers, String[] notNullColumnNames, String[] discriminatorValues, boolean[] discriminatorAbstract, DiscriminatorType<?> incomingDiscriminatorType) -
Method Summary
Modifier and TypeMethodDescriptioncreateDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState) Create a DomainResult for a specific reference to this ModelPart.BasicFetch<?> generateFetch(FetchParent fetchParent, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState) Generates a Fetch of this fetchableThe 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()getScale()The selection's expression.booleanbooleanIs 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, disassemble, findContainingEntityMapping, forEachDisassembledJdbcValue, forEachJdbcType, getEntityDescriptor, getJavaType, getJdbcMapping, getMappedType, getNavigableRole, getUnderlyingJdbcMapping, getValueConverterMethods 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
addToCacheKeyMethods 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, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.metamodel.mapping.DiscriminatorMapping
getDomainJavaType, getRelationalJavaType, resolveDiscriminatorValueMethods 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.ModelPart
areEqual, asEntityMappingType, breakDownJdbcValues, decompose, decompose, isEntityIdentifierMappingMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getSelectableName, getSelectablePath, getWriteExpressionMethods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
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
-
CaseStatementDiscriminatorMappingImpl
public CaseStatementDiscriminatorMappingImpl(JoinedSubclassEntityPersister entityDescriptor, String[] tableNames, int[] notNullColumnTableNumbers, String[] notNullColumnNames, String[] discriminatorValues, boolean[] discriminatorAbstract, DiscriminatorType<?> incomingDiscriminatorType)
-
-
Method Details
-
hasPhysicalColumn
public boolean hasPhysicalColumn()Description copied from interface:EntityDiscriminatorMappingIs the discriminator defined by a physical column? -
getCustomReadExpression
Description copied from interface:SelectableMappingThe selection's read expression accounting for formula treatment as well asColumnTransformer.read() -
getCustomWriteExpression
Description copied from interface:SelectableMappingThe selection's write expression accountingColumnTransformer.write() -
getColumnDefinition
-
getLength
-
getPrecision
-
getTemporalPrecision
-
getScale
-
isNullable
public boolean isNullable()Description copied from interface:SelectableMappingIs the mapping considered nullable? -
isInsertable
public boolean isInsertable() -
isUpdateable
public boolean isUpdateable() -
isPartitioned
public boolean isPartitioned() -
hasPartitionedSelectionMapping
public boolean hasPartitionedSelectionMapping() -
getContainingTableExpression
Description copied from interface:ValuedModelPartThe table which contains the columns mapped by this value -
getSelectionExpression
Description copied from interface:SelectableMappingThe selection's expression. This is the column name or formula -
isFormula
public boolean isFormula()Description copied from interface:SelectableMappingIs the mapping a formula instead of a physical column?
-