nosi.core.data.querybuilder.IGRPQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of igrp-core Show documentation
Show all versions of igrp-core Show documentation
IGRP Framework is a powerful and highly customizable platform developed by the Operational Nucleus for the Information Society (NOSi) to create web applications, it provides out of box, several modules to make easy to create stand-alone, production-grade web applications: authentication and access-control, business processes automation, reporting, page builder with automatic code generation and incorporation of the Once-Only-Principle, written in Java. IGRP Framework WAR - Contains some keys resources that give UI to IGRP Framework and others supports files.
package nosi.core.data.querybuilder;
import nosi.core.data.querybuilder.groupbyclause.IGRPGroupByQuery;
import nosi.core.data.querybuilder.orderbyclause.IGRPOrderByQuery;
import nosi.core.data.querybuilder.selectclause.IGRPSelectQuery;
import nosi.core.data.querybuilder.whereclause.IGRPWhereQuery;
import org.hibernate.Session;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import javax.persistence.metamodel.SingularAttribute;
/**
* venceslau.gama
* 09/10/2020
*/
public class IGRPQuery extends IGRPSelectQuery {
public IGRPQuery(Session session, Class clazz, CriteriaQuery criteriaQuery, Root root) {
super(session, clazz, criteriaQuery, root);
}
public IGRPWhereQuery where() {
return new IGRPWhereQuery<>(this);
}
public IGRPGroupByQuery groupBy(String column) {
return new IGRPGroupByQuery<>(this, column);
}
public IGRPGroupByQuery groupBy(SingularAttribute attribute) {
return new IGRPGroupByQuery<>(this, attribute);
}
public IGRPGroupByQuery groupBy(String... columns) {
return new IGRPGroupByQuery<>(this, columns);
}
public IGRPOrderByQuery orderBy(IGRPOrderByQuery.Order order, String column) {
return new IGRPOrderByQuery<>(this, order, column);
}
public IGRPOrderByQuery orderBy(IGRPOrderByQuery.Order order, String... columns) {
return new IGRPOrderByQuery<>(this, order, columns);
}
}