jaskell.sql.Sum 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.Parameter;
import java.util.List;
/**
* TODO
*
* @author mars
* @version 1.0.0
* @since 2020/05/01 17:09
*/
public class Sum extends Literal {
private Name _field = null;
Sum(){
}
Sum(String name){
_field = new Name(name);
}
Sum(Name name){
_field = name;
}
@Override
public String script() {
if(_field != null) {
return String.format("SUM(%s)", _field.script());
}else{
return "SUM(*)";
}
}
@Override
public List> parameters() {
return _field.parameters();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy