1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.migration.commands;
17
18 import org.apache.ibatis.migration.operations.StatusOperation;
19 import org.apache.ibatis.migration.options.SelectedOptions;
20
21 public final class StatusCommand extends BaseCommand {
22 private StatusOperation operation;
23
24 public StatusCommand(SelectedOptions options) {
25 super(options);
26 }
27
28 @Override
29 public void execute(String... params) {
30 operation = new StatusOperation().operate(getConnectionProvider(), getMigrationLoader(),
31 getDatabaseOperationOption(), printStream);
32 }
33
34 public StatusOperation getOperation() {
35 return operation;
36 }
37 }