1 | |
package liquibase.statement.core; |
2 | |
|
3 | |
import liquibase.statement.AbstractSqlStatement; |
4 | |
|
5 | |
public class CreateViewStatement extends AbstractSqlStatement { |
6 | |
|
7 | |
private String schemaName; |
8 | |
private String viewName; |
9 | |
private String selectQuery; |
10 | |
private boolean replaceIfExists; |
11 | |
|
12 | 46 | public CreateViewStatement(String schemaName, String viewName, String selectQuery, boolean replaceIfExists) { |
13 | 46 | this.schemaName = schemaName; |
14 | 46 | this.viewName = viewName; |
15 | 46 | this.selectQuery = selectQuery; |
16 | 46 | this.replaceIfExists = replaceIfExists; |
17 | 46 | } |
18 | |
|
19 | |
public String getSchemaName() { |
20 | 0 | return schemaName; |
21 | |
} |
22 | |
|
23 | |
public String getViewName() { |
24 | 15 | return viewName; |
25 | |
} |
26 | |
|
27 | |
public String getSelectQuery() { |
28 | 15 | return selectQuery; |
29 | |
} |
30 | |
|
31 | |
public boolean isReplaceIfExists() { |
32 | 15 | return replaceIfExists; |
33 | |
} |
34 | |
|
35 | |
} |