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

jaskell.sql.Sum Maven / Gradle / Ivy

Go to download

This is a utils library for java 8 project. It include parsec combinators and sql generators library.

There is a newer version: 2.9.2
Show newest version
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