Skip to content

Commit

Permalink
Deprecate DeleteQuery#deleteWithRelatedData
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Sep 19, 2023
1 parent 3f0c9a2 commit aae9047
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected void executeDelete(CommandContext commandContext) {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
delete();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/**
* @author Tijs Rademakers
*/
@Deprecated
public class DeleteRelatedDataOfRemovedHistoricCaseInstancesCmd implements Command<Object>, Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/**
* @author Tijs Rademakers
*/
@Deprecated
public class DeleteTaskAndPlanItemInstanceDataOfRemovedHistoricCaseInstancesCmd implements Command<Object>, Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ public void delete() {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
if (commandExecutor != null) {
CommandConfig config = new CommandConfig().transactionRequiresNew();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public void delete() {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
delete();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public interface DeleteQuery<T extends DeleteQuery<T, U>, U> {
* the respective deletion for the particular model) which is owned by another engine (e.g. a process for the cmmn engine).
* Use the specific deletion methods on the respective history services otherwise: they delete with cascading to all
* other engines, but are not as performant as the bulk delete here.
* @deprecated in favour of using {@link BatchDeleteQuery#deleteSequentiallyUsingBatch(int, String)}
* or {@link #delete()} if the query does not support batch delete
*/
@Deprecated
void deleteWithRelatedData();

}
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public void delete() {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
delete();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ public void delete() {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
if (commandExecutor != null) {
CommandConfig config = new CommandConfig().transactionRequiresNew();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.flowable.engine.impl.util.CommandContextUtil;
import org.flowable.entitylink.api.history.HistoricEntityLinkService;

@Deprecated
public class DeleteRelatedDataOfRemovedHistoricProcessInstancesCmd implements Command<Object>, Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.flowable.engine.impl.util.CommandContextUtil;

@Deprecated
public class DeleteTaskAndActivityDataOfRemovedHistoricProcessInstancesCmd implements Command<Object>, Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,7 @@ public void delete() {
}

@Override
@Deprecated
public void deleteWithRelatedData() {
delete();
}
Expand Down

0 comments on commit aae9047

Please sign in to comment.