Package org.jinq.jpa.transform

Examples of org.jinq.jpa.transform.AggregateTransform


   @Override
   public <V extends Number & Comparable<V>> Number sum(
         Object aggregate, Class<V> collectClass)
   {
      JPAQueryComposer<V> result = applyTransformWithLambda(new AggregateTransform(getConfig(), AggregateTransform.AggregateType.SUM), aggregate);
      if (result != null)
         return result.executeAndGetSingleResult();
      translationFail();
      return null;
   }
View Full Code Here


   }

   @Override
   public <V extends Comparable<V>> V max(Object aggregate)
   {
      JPAQueryComposer<V> result = applyTransformWithLambda(new AggregateTransform(getConfig(), AggregateTransform.AggregateType.MAX), aggregate);
      if (result != null)
         return result.executeAndGetSingleResult();
      translationFail();
      return null;
   }
View Full Code Here

   }

   @Override
   public <V extends Comparable<V>> V min(Object aggregate)
   {
      JPAQueryComposer<V> result = applyTransformWithLambda(new AggregateTransform(getConfig(), AggregateTransform.AggregateType.MIN), aggregate);
      if (result != null)
         return result.executeAndGetSingleResult();
      translationFail();
      return null;
   }
View Full Code Here

   @Override
   public <V extends Number & Comparable<V>> Double avg(
         Object aggregate)
   {
      JPAQueryComposer<Double> result = applyTransformWithLambda(new AggregateTransform(getConfig(), AggregateTransform.AggregateType.AVG), aggregate);
      if (result != null)
         return result.executeAndGetSingleResult();
      translationFail();
      return null;
   }
View Full Code Here

TOP

Related Classes of org.jinq.jpa.transform.AggregateTransform

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.