org.jinq.jpa.transform.CountTransform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinq-jpa Show documentation
Show all versions of jinq-jpa Show documentation
Jinq functional-style queries for JPA
package org.jinq.jpa.transform;
import org.jinq.jpa.jpqlquery.JPQLQuery;
public class CountTransform extends JPQLNoLambdaQueryTransform
{
AggregateTransform transform;
public CountTransform(JPQLQueryTransformConfiguration config)
{
super(config);
transform = new AggregateTransform(config, AggregateTransform.AggregateType.COUNT);
}
@Override
public JPQLQuery apply(JPQLQuery query, SymbExArgumentHandler parentArgumentScope) throws QueryTransformException
{
return transform.apply(query, null, parentArgumentScope);
}
@Override
public String getTransformationTypeCachingTag()
{
return CountTransform.class.getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy