All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.sql.SingleLineComment Maven / Gradle / Ivy

There is a newer version: 4.29.2
Show newest version
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 getAffectedDatabaseObjects() {
		return new HashSet();
	}

	public String getEndDelimiter() {
		return "\n";
	}

	public String toSql() {
		return lineCommentToken + ' ' + sql;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy