Package com.projity.pm.assignment.functor

Examples of com.projity.pm.assignment.functor.PrintValueFunctor


  public void calcDataBetween(Object type, long start, long end) {
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end); // automatically also adds a generator to limit range
    AssignmentFieldFunctor dataFunctor = getDataSelect(type,clause,false);

    RangeIntervalGenerator dailyInRange = RangeIntervalGenerator.getInstance(start, end, 1000*60*60*24);
    PrintValueFunctor print = PrintValueFunctor.getInstance(dataFunctor);
    Query.getInstance().selectFrom(clause)
    .groupBy(dailyInRange)
    .action(print)
    .execute();
  }
View Full Code Here

TOP

Related Classes of com.projity.pm.assignment.functor.PrintValueFunctor

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.