jaskell.sql.Having 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.ArrayList;
import java.util.List;
public class Having extends Query implements CouldOrder, CouldLimit, CouldOffset {
CouldHaving _by;
Predicate _predicate;
public Having(Predicate _predicate){
this._predicate = _predicate;
}
@Override
public String script() {
return String.format("%s HAVING %s",
_by.script(),
_predicate.script());
}
@Override
public List> parameters() {
List> re = new ArrayList>();
re.addAll(_by.parameters());
re.addAll(_predicate.parameters());
return re;
}
public Order order(){
Order re = new Order();
re._prefix = this;
return re;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy