01: package liquibase.database.sql;
02:
03: import liquibase.database.Database;
04:
05: public class RawSqlStatement implements SqlStatement {
06:
07: private String sql;
08: private String endDelimiter = ";";
09:
10: public RawSqlStatement(String sql) {
11: this .sql = sql;
12: }
13:
14: public RawSqlStatement(String sql, String endDelimiter) {
15: this (sql);
16: this .endDelimiter = endDelimiter;
17: }
18:
19: public boolean supportsDatabase(Database database) {
20: return true;
21: }
22:
23: public String getSqlStatement(Database database) {
24: return sql;
25: }
26:
27: public String getEndDelimiter(Database database) {
28: return endDelimiter;
29: }
30:
31: public String toString() {
32: return sql;
33: }
34: }
|