db.sql.api.impl.cmd.basic.Count1 Maven / Gradle / Ivy
package db.sql.api.impl.cmd.basic;
import db.sql.api.Cmd;
import db.sql.api.SqlBuilderContext;
import db.sql.api.impl.cmd.Methods;
import db.sql.api.impl.cmd.dbFun.Count;
import db.sql.api.impl.tookit.SqlConst;
public class Count1 extends Count {
public final static Count1 INSTANCE = new Count1();
public Count1() {
super(Methods.value(1));
}
@Override
public StringBuilder functionSql(Cmd module, Cmd parent, SqlBuilderContext context, StringBuilder sqlBuilder) {
sqlBuilder.append(operator).append(SqlConst.BRACKET_LEFT);
sqlBuilder.append(1);
sqlBuilder.append(SqlConst.BRACKET_RIGHT);
return sqlBuilder;
}
@Override
public boolean contain(Cmd cmd) {
return false;
}
}