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

jaskell.sql.Count 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.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