1 | |
package liquibase.sql; |
2 | |
|
3 | |
import liquibase.database.structure.DatabaseObject; |
4 | |
|
5 | |
import java.util.Collection; |
6 | |
import java.util.HashSet; |
7 | |
|
8 | |
public class SingleLineComment implements Sql { |
9 | |
|
10 | |
final private String sql; |
11 | |
final private String lineCommentToken; |
12 | |
|
13 | 0 | public SingleLineComment(String sql, String lineCommentToken) { |
14 | 0 | this.sql = sql; |
15 | 0 | this.lineCommentToken = lineCommentToken; |
16 | 0 | } |
17 | |
|
18 | |
public Collection<? extends DatabaseObject> getAffectedDatabaseObjects() { |
19 | 0 | return new HashSet<DatabaseObject>(); |
20 | |
} |
21 | |
|
22 | |
public String getEndDelimiter() { |
23 | 0 | return "\n"; |
24 | |
} |
25 | |
|
26 | |
public String toSql() { |
27 | 0 | return lineCommentToken + ' ' + sql; |
28 | |
} |
29 | |
|
30 | |
} |