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

org.jinq.jpa.transform.CountTransform Maven / Gradle / Ivy

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