org.hibernate.annotations.SoftDelete
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | applyColumnName(Column softDeleteColumn, SoftDelete softDeleteConfig, MetadataBuildingContext context)
|
| public static void | bindSoftDeleteIndicator(SoftDelete
The SoftDelete annotation softDeleteConfig, SoftDeletable The thing which is to be soft-deleted target, Table The table to which the soft-delete should be applied table, MetadataBuildingContext The processing context for access to needed info and services context)Creates and binds the column and value for modeling the soft-delete in the database |
| public static Predicate | createNonSoftDeletedRestriction(TableReference
The table reference for the table containing the soft-delete column tableReference, SoftDeleteMapping The soft-delete mapping softDeleteMapping)Create a SQL AST Predicate for restricting matches to non-deleted rows |
| public static Predicate | createNonSoftDeletedRestriction(TableReference
The table reference for the table containing the soft-delete column tableReference, SoftDeleteMapping The soft-delete mapping softDeleteMapping, SqlExpressionResolver expressionResolver)Create a SQL AST Predicate for restricting matches to non-deleted rows |
| public static Assignment | createSoftDeleteAssignment(TableReference
The table reference for the table containing the soft-delete column tableReference, SoftDeleteMapping The soft-delete mapping softDeleteMapping)Create a SQL AST Assignment for setting the soft-delete column to its deleted indicate value |
| private static Column | createSoftDeleteIndicatorColumn(SoftDelete softDeleteConfig, BasicValue softDeleteIndicatorValue, MetadataBuildingContext context)
|
| private static BasicValue | createSoftDeleteIndicatorValue(SoftDelete softDeleteConfig, Table table, MetadataBuildingContext context)
|
| public static SoftDeleteMappingImpl | resolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, MappingModelCreationProcess creationProcess)
|
| public static SoftDeleteMappingImpl | resolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, Dialect dialect)
|
| SoftDeleteHelper | back to summary |
|---|---|
| public SoftDeleteHelper() | |
| applyColumnName | back to summary |
|---|---|
| private static void applyColumnName(Column softDeleteColumn, SoftDelete softDeleteConfig, MetadataBuildingContext context) | |
| bindSoftDeleteIndicator | back to summary |
|---|---|
| public static void bindSoftDeleteIndicator(SoftDelete softDeleteConfig, SoftDeletable target, Table table, MetadataBuildingContext context) Creates and binds the column and value for modeling the soft-delete in the database
| |
| createNonSoftDeletedRestriction | back to summary |
|---|---|
| public static Predicate createNonSoftDeletedRestriction(TableReference tableReference, SoftDeleteMapping softDeleteMapping) Create a SQL AST Predicate for restricting matches to non-deleted rows
| |
| createNonSoftDeletedRestriction | back to summary |
|---|---|
| public static Predicate createNonSoftDeletedRestriction(TableReference tableReference, SoftDeleteMapping softDeleteMapping, SqlExpressionResolver expressionResolver) Create a SQL AST Predicate for restricting matches to non-deleted rows
| |
| createSoftDeleteAssignment | back to summary |
|---|---|
| public static Assignment createSoftDeleteAssignment(TableReference tableReference, SoftDeleteMapping softDeleteMapping) Create a SQL AST Assignment for setting the soft-delete column to its deleted indicate value
| |
| createSoftDeleteIndicatorColumn | back to summary |
|---|---|
| private static Column createSoftDeleteIndicatorColumn(SoftDelete softDeleteConfig, BasicValue softDeleteIndicatorValue, MetadataBuildingContext context) | |
| createSoftDeleteIndicatorValue | back to summary |
|---|---|
| private static BasicValue createSoftDeleteIndicatorValue(SoftDelete softDeleteConfig, Table table, MetadataBuildingContext context) | |
| resolveSoftDeleteMapping | back to summary |
|---|---|
| public static SoftDeleteMappingImpl resolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, MappingModelCreationProcess creationProcess) | |
| resolveSoftDeleteMapping | back to summary |
|---|---|
| public static SoftDeleteMappingImpl resolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, Dialect dialect) | |