Class SelectableMappingImpl
java.lang.Object
org.hibernate.metamodel.mapping.internal.SqlTypedMappingImpl
org.hibernate.metamodel.mapping.internal.SelectableMappingImpl
- All Implemented Interfaces:
SelectableMapping,SqlTypedMapping
- Direct Known Subclasses:
EntityTableMapping.KeyColumn
-
Constructor Summary
ConstructorsConstructorDescriptionSelectableMappingImpl(String containingTableExpression, String selectionExpression, @Nullable SelectablePath selectablePath, @Nullable String customReadExpression, @Nullable String customWriteExpression, @Nullable String columnDefinition, @Nullable Long length, @Nullable Integer precision, @Nullable Integer scale, @Nullable Integer temporalPrecision, boolean isLob, boolean nullable, boolean insertable, boolean updateable, boolean partitioned, boolean isFormula, JdbcMapping jdbcMapping) -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectableMappingfrom(String containingTableExpression, Selectable selectable, @Nullable SelectablePath parentPath, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, boolean forceNotNullable, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) static SelectableMappingfrom(String containingTableExpression, Selectable selectable, @Nullable SelectablePath parentPath, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) static SelectableMappingfrom(String containingTableExpression, Selectable selectable, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, boolean forceNotNullable, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) static SelectableMappingfrom(String containingTableExpression, Selectable selectable, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) The name of the table to which this selectable is mapped@Nullable StringThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()@Nullable StringThe selection's write expression accountingColumnTransformer.write()The selection's expression.booleanIs the mapping a formula instead of a physical column?booleanbooleanisLob()booleanIs the mapping considered nullable?booleanbooleantoString()Methods inherited from class org.hibernate.metamodel.mapping.internal.SqlTypedMappingImpl
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecisionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getWriteExpressionMethods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, toSize
-
Constructor Details
-
SelectableMappingImpl
public SelectableMappingImpl(String containingTableExpression, String selectionExpression, @Nullable SelectablePath selectablePath, @Nullable String customReadExpression, @Nullable String customWriteExpression, @Nullable String columnDefinition, @Nullable Long length, @Nullable Integer precision, @Nullable Integer scale, @Nullable Integer temporalPrecision, boolean isLob, boolean nullable, boolean insertable, boolean updateable, boolean partitioned, boolean isFormula, JdbcMapping jdbcMapping)
-
-
Method Details
-
from
public static SelectableMapping from(String containingTableExpression, Selectable selectable, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) -
from
public static SelectableMapping from(String containingTableExpression, Selectable selectable, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, boolean forceNotNullable, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) -
from
public static SelectableMapping from(String containingTableExpression, Selectable selectable, @Nullable SelectablePath parentPath, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) -
from
public static SelectableMapping from(String containingTableExpression, Selectable selectable, @Nullable SelectablePath parentPath, JdbcMapping jdbcMapping, TypeConfiguration typeConfiguration, boolean insertable, boolean updateable, boolean partitioned, boolean forceNotNullable, Dialect dialect, SqmFunctionRegistry sqmFunctionRegistry, RuntimeModelCreationContext creationContext) -
toString
-
getContainingTableExpression
Description copied from interface:SelectableMappingThe name of the table to which this selectable is mapped- Specified by:
getContainingTableExpressionin interfaceSelectableMapping
-
getSelectionExpression
Description copied from interface:SelectableMappingThe selection's expression. This is the column name or formula- Specified by:
getSelectionExpressionin interfaceSelectableMapping
-
getSelectableName
- Specified by:
getSelectableNamein interfaceSelectableMapping
-
getSelectablePath
- Specified by:
getSelectablePathin 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
-
isLob
public boolean isLob()- Specified by:
isLobin 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
-