Class SelectableMappingImpl
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.SqlTypedMappingImpl
-
- org.hibernate.metamodel.mapping.internal.SelectableMappingImpl
-
- All Implemented Interfaces:
SelectableMapping,SqlTypedMapping
public class SelectableMappingImpl extends SqlTypedMappingImpl implements SelectableMapping
-
-
Constructor Summary
Constructors Constructor Description SelectableMappingImpl(String containingTableExpression, String selectionExpression, SelectablePath selectablePath, String customReadExpression, String customWriteExpression, String columnDefinition, Long length, Integer precision, Integer scale, Integer temporalPrecision, boolean isLob, boolean nullable, boolean insertable, boolean updateable, boolean partitioned, boolean isFormula, JdbcMapping jdbcMapping)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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)StringgetContainingTableExpression()The name of the table to which this selectable is mappedStringgetCustomReadExpression()The selection's read expression accounting for formula treatment as well asColumnTransformer.read()StringgetCustomWriteExpression()The selection's write expression accountingColumnTransformer.write()StringgetSelectableName()SelectablePathgetSelectablePath()StringgetSelectionExpression()The selection's expression.StringgetWriteExpression()booleanisFormula()Is the mapping a formula instead of a physical column?booleanisInsertable()booleanisLob()booleanisNullable()Is the mapping considered nullable?booleanisPartitioned()booleanisUpdateable()StringtoString()-
Methods inherited from class org.hibernate.metamodel.mapping.internal.SqlTypedMappingImpl
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, toSize
-
-
-
-
Constructor Detail
-
SelectableMappingImpl
public SelectableMappingImpl(String containingTableExpression, String selectionExpression, SelectablePath selectablePath, String customReadExpression, String customWriteExpression, String columnDefinition, Long length, Integer precision, Integer scale, Integer temporalPrecision, boolean isLob, boolean nullable, boolean insertable, boolean updateable, boolean partitioned, boolean isFormula, JdbcMapping jdbcMapping)
-
-
Method Detail
-
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)
-
getContainingTableExpression
public String getContainingTableExpression()
Description copied from interface:SelectableMappingThe name of the table to which this selectable is mapped- Specified by:
getContainingTableExpressionin interfaceSelectableMapping
-
getSelectionExpression
public String getSelectionExpression()
Description copied from interface:SelectableMappingThe selection's expression. This is the column name or formula- Specified by:
getSelectionExpressionin interfaceSelectableMapping
-
getSelectableName
public String getSelectableName()
- Specified by:
getSelectableNamein interfaceSelectableMapping
-
getSelectablePath
public SelectablePath getSelectablePath()
- Specified by:
getSelectablePathin interfaceSelectableMapping
-
getCustomReadExpression
public String getCustomReadExpression()
Description copied from interface:SelectableMappingThe selection's read expression accounting for formula treatment as well asColumnTransformer.read()- Specified by:
getCustomReadExpressionin interfaceSelectableMapping
-
getCustomWriteExpression
public String getCustomWriteExpression()
Description copied from interface:SelectableMappingThe selection's write expression accountingColumnTransformer.write()- Specified by:
getCustomWriteExpressionin interfaceSelectableMapping
-
getWriteExpression
public String getWriteExpression()
- Specified by:
getWriteExpressionin 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
-
-