jaskell.sql.Count Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaskell-java8 Show documentation
Show all versions of jaskell-java8 Show documentation
This is a utils library for java 8 project.
It include parsec combinators and sql generators library.
package jaskell.sql;
import jaskell.script.Directive;
import jaskell.script.Parameter;
import java.util.List;
public class Count extends Literal {
private Name _field = null;
Count(){
}
Count(String name){
_field = new Name(name);
}
Count(Name name){
_field = name;
}
@Override
public String script() {
if(_field != null) {
return String.format("COUNT(%s)", _field.script());
}else{
return "COUNT(*)";
}
}
@Override
public List> parameters() {
return _field.parameters();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy