Class SoftDeleteMappingImpl
java.lang.Object
org.hibernate.metamodel.mapping.internal.SoftDeleteMappingImpl
- All Implemented Interfaces:
Bindable,JdbcMappingContainer,MappingModelExpressible,ModelPart,SelectableMapping,SoftDeleteMapping,SqlExpressible,SqlTypedMapping,VirtualModelPart
SoftDeleteMapping implementation
- Author:
- Steve Ebersole
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionSoftDeleteMappingImpl(SoftDeletableModelPart softDeletable, String columnName, String tableName, Object deletedLiteralValue, String deletedLiteralText, Object nonDeletedLiteralValue, String nonDeletedLiteralText, JdbcMapping jdbcMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.voidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.voidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.<X,Y> int breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart.JdbcValueBiConsumer<X, Y> valueConsumer, SharedSessionContractImplementor session) Breaks down the domain value to its constituent JDBC values.<T> DomainResult<T>createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState) Create a DomainResult for a specific reference to this ModelPart.disassemble(Object value, SharedSessionContractImplementor session) Breaks down a value ofJinto its simple pieces.<X,Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session) LikeBindable.forEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), but additionally receives an offset by which the selectionIndex is incremented when callingBindable.JdbcValuesBiConsumer.consume(int, Object, Object, Object, JdbcMapping).intforEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Visit each JdbcMapping starting from the given offsetThe name of the soft-delete indicator column.The String representation of the SQL literal value which indicates a deleted rowThe SQL literal value which indicates a deleted rowJavaType<?>The Java type for this part.Anything that is expressible at the SQL AST level would be of basic type.The String representation of the SQL literal value which indicates a non-deleted rowThe SQL literal value which indicates a non-deleted rowThe type for this part.The local part name, which is generally the unqualified role nameThe name of the table which holds the indicator columnbooleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCountMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, decompose, decompose, forEachSelectable, forEachSelectable, isEntityIdentifierMappingMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getSelectablePathMethods inherited from interface org.hibernate.metamodel.mapping.SoftDeleteMapping
getColumnDefinition, getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getLength, getPrecision, getScale, getSelectableName, getSelectionExpression, getTemporalPrecision, getWriteExpression, isFormula, isInsertable, isNullable, isPartitioned, isUpdateableMethods inherited from interface org.hibernate.metamodel.mapping.SqlExpressible
getJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
isLob, toSizeMethods inherited from interface org.hibernate.metamodel.mapping.VirtualModelPart
isVirtual
-
Field Details
-
ROLE_NAME
- See Also:
-
-
Constructor Details
-
SoftDeleteMappingImpl
public SoftDeleteMappingImpl(SoftDeletableModelPart softDeletable, String columnName, String tableName, Object deletedLiteralValue, String deletedLiteralText, Object nonDeletedLiteralValue, String nonDeletedLiteralText, JdbcMapping jdbcMapping)
-
-
Method Details
-
getColumnName
Description copied from interface:SoftDeleteMappingThe name of the soft-delete indicator column.- Specified by:
getColumnNamein interfaceSoftDeleteMapping
-
getTableName
Description copied from interface:SoftDeleteMappingThe name of the table which holds the indicator column- Specified by:
getTableNamein interfaceSoftDeleteMapping
-
getDeletedLiteralValue
Description copied from interface:SoftDeleteMappingThe SQL literal value which indicates a deleted row- Specified by:
getDeletedLiteralValuein interfaceSoftDeleteMapping
-
getDeletedLiteralText
Description copied from interface:SoftDeleteMappingThe String representation of the SQL literal value which indicates a deleted row- Specified by:
getDeletedLiteralTextin interfaceSoftDeleteMapping
-
getNonDeletedLiteralValue
Description copied from interface:SoftDeleteMappingThe SQL literal value which indicates a non-deleted row- Specified by:
getNonDeletedLiteralValuein interfaceSoftDeleteMapping
-
getNonDeletedLiteralText
Description copied from interface:SoftDeleteMappingThe String representation of the SQL literal value which indicates a non-deleted row- Specified by:
getNonDeletedLiteralTextin interfaceSoftDeleteMapping
-
getJdbcMapping
Description copied from interface:SqlExpressibleAnything that is expressible at the SQL AST level would be of basic type.- Specified by:
getJdbcMappingin interfaceSqlExpressible- Specified by:
getJdbcMappingin interfaceSqlTypedMapping
-
getPartName
Description copied from interface:ModelPartThe local part name, which is generally the unqualified role name- Specified by:
getPartNamein interfaceModelPart
-
forEachJdbcType
Description copied from interface:JdbcMappingContainerVisit each JdbcMapping starting from the given offset- Specified by:
forEachJdbcTypein interfaceJdbcMappingContainer
-
getPartMappingType
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceModelPart
-
getJavaType
Description copied from interface:ModelPartThe Java type for this part. Generally equivalent toMappingType.getMappedJavaType()relative toModelPart.getPartMappingType()- Specified by:
getJavaTypein interfaceModelPart
-
hasPartitionedSelectionMapping
public boolean hasPartitionedSelectionMapping()- Specified by:
hasPartitionedSelectionMappingin interfaceModelPart
-
findContainingEntityMapping
- Specified by:
findContainingEntityMappingin interfaceModelPart
-
toString
-