1 |
|
package liquibase.sql.visitor; |
2 |
|
|
3 |
|
import liquibase.database.Database; |
4 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 6 |
Complexity Density: 1 |
|
5 |
|
public class RegExpReplaceSqlVisitor extends AbstractSqlVisitor { |
6 |
|
|
7 |
|
private String replace; |
8 |
|
private String with; |
9 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
10 |
0
|
public String getName() {... |
11 |
0
|
return "regExpReplace"; |
12 |
|
} |
13 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
14 |
0
|
public String getReplace() {... |
15 |
0
|
return replace; |
16 |
|
} |
17 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
18 |
0
|
public void setReplace(String replace) {... |
19 |
0
|
this.replace = replace; |
20 |
|
} |
21 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
22 |
0
|
public String getWith() {... |
23 |
0
|
return with; |
24 |
|
} |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
26 |
0
|
public void setWith(String with) {... |
27 |
0
|
this.with = with; |
28 |
|
} |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
0
|
public String modifySql(String sql, Database database) {... |
31 |
0
|
return sql.replaceAll(getReplace(), getWith()); |
32 |
|
} |
33 |
|
} |