liquibase.sql.SingleLineComment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.sql;
import liquibase.database.structure.DatabaseObject;
import java.util.Collection;
import java.util.HashSet;
public class SingleLineComment implements Sql {
final private String sql;
final private String lineCommentToken;
public SingleLineComment(String sql, String lineCommentToken) {
this.sql = sql;
this.lineCommentToken = lineCommentToken;
}
public Collection extends DatabaseObject> getAffectedDatabaseObjects() {
return new HashSet();
}
public String getEndDelimiter() {
return "\n";
}
public String toSql() {
return lineCommentToken + ' ' + sql;
}
}