Package org.hibernate.metamodel.mapping
Interface SoftDeleteMapping
-
- All Superinterfaces:
Bindable
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,SelectableMapping
,SqlExpressible
,SqlTypedMapping
,VirtualModelPart
- All Known Implementing Classes:
SoftDeleteMappingImpl
public interface SoftDeleteMapping extends SelectableMapping, VirtualModelPart, SqlExpressible
Metadata about the indicator column for entities and collections enabled for soft delete- See Also:
SoftDelete
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getColumnDefinition()
String
getColumnName()
The name of the soft-delete indicator column.default String
getContainingTableExpression()
The name of the table to which this selectable is mappeddefault String
getCustomReadExpression()
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
default String
getCustomWriteExpression()
The selection's write expression accountingColumnTransformer.write()
String
getDeletedLiteralText()
The String representation of the SQL literal value which indicates a deleted rowObject
getDeletedLiteralValue()
The SQL literal value which indicates a deleted rowdefault Long
getLength()
String
getNonDeletedLiteralText()
The String representation of the SQL literal value which indicates a non-deleted rowObject
getNonDeletedLiteralValue()
The SQL literal value which indicates a non-deleted rowdefault Integer
getPrecision()
default Integer
getScale()
default String
getSelectableName()
default String
getSelectionExpression()
The selection's expression.String
getTableName()
The name of the table which holds the indicator columndefault Integer
getTemporalPrecision()
default String
getWriteExpression()
default boolean
isFormula()
Is the mapping a formula instead of a physical column?default boolean
isInsertable()
default boolean
isNullable()
Is the mapping considered nullable?default boolean
isPartitioned()
default boolean
isUpdateable()
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, findContainingEntityMapping, forEachSelectable, forEachSelectable, getJavaType, getNavigableRole, getPartMappingType, getPartName, hasPartitionedSelectionMapping, isEntityIdentifierMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getSelectablePath
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlExpressible
getJdbcMapping, getJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getJdbcMapping, isLob, toSize
-
Methods inherited from interface org.hibernate.metamodel.mapping.VirtualModelPart
isVirtual
-
-
-
-
Method Detail
-
getColumnName
String getColumnName()
The name of the soft-delete indicator column.
-
getTableName
String getTableName()
The name of the table which holds the indicator column
-
getDeletedLiteralValue
Object getDeletedLiteralValue()
The SQL literal value which indicates a deleted row
-
getDeletedLiteralText
String getDeletedLiteralText()
The String representation of the SQL literal value which indicates a deleted row
-
getNonDeletedLiteralValue
Object getNonDeletedLiteralValue()
The SQL literal value which indicates a non-deleted row- API Note:
- The inverse of getDeletedLiteralValue()
-
getNonDeletedLiteralText
String getNonDeletedLiteralText()
The String representation of the SQL literal value which indicates a non-deleted row
-
getSelectionExpression
default String getSelectionExpression()
Description copied from interface:SelectableMapping
The selection's expression. This is the column name or formula- Specified by:
getSelectionExpression
in interfaceSelectableMapping
-
getSelectableName
default String getSelectableName()
- Specified by:
getSelectableName
in interfaceSelectableMapping
-
getWriteExpression
default String getWriteExpression()
- Specified by:
getWriteExpression
in interfaceSelectableMapping
-
getContainingTableExpression
default String getContainingTableExpression()
Description copied from interface:SelectableMapping
The name of the table to which this selectable is mapped- Specified by:
getContainingTableExpression
in interfaceSelectableMapping
-
getCustomReadExpression
default String getCustomReadExpression()
Description copied from interface:SelectableMapping
The selection's read expression accounting for formula treatment as well asColumnTransformer.read()
- Specified by:
getCustomReadExpression
in interfaceSelectableMapping
-
getCustomWriteExpression
default String getCustomWriteExpression()
Description copied from interface:SelectableMapping
The selection's write expression accountingColumnTransformer.write()
- Specified by:
getCustomWriteExpression
in interfaceSelectableMapping
-
isFormula
default boolean isFormula()
Description copied from interface:SelectableMapping
Is the mapping a formula instead of a physical column?- Specified by:
isFormula
in interfaceSelectableMapping
-
isNullable
default boolean isNullable()
Description copied from interface:SelectableMapping
Is the mapping considered nullable?- Specified by:
isNullable
in interfaceSelectableMapping
-
isInsertable
default boolean isInsertable()
- Specified by:
isInsertable
in interfaceSelectableMapping
-
isUpdateable
default boolean isUpdateable()
- Specified by:
isUpdateable
in interfaceSelectableMapping
-
isPartitioned
default boolean isPartitioned()
- Specified by:
isPartitioned
in interfaceSelectableMapping
-
getColumnDefinition
default String getColumnDefinition()
- Specified by:
getColumnDefinition
in interfaceSqlTypedMapping
-
getLength
default Long getLength()
- Specified by:
getLength
in interfaceSqlTypedMapping
-
getPrecision
default Integer getPrecision()
- Specified by:
getPrecision
in interfaceSqlTypedMapping
-
getScale
default Integer getScale()
- Specified by:
getScale
in interfaceSqlTypedMapping
-
getTemporalPrecision
default Integer getTemporalPrecision()
- Specified by:
getTemporalPrecision
in interfaceSqlTypedMapping
-
-