Examples of DateAtValueFunctor


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

   */
  public long getDateAtValue(Object type, double value) {
    SelectFrom clause = SelectFrom.getInstance();
    AssignmentFieldFunctor dataFunctor = (type==COST) ? cost(clause, true) : work(clause);

    DateAtValueFunctor dateAtValue = DateAtValueFunctor.getInstance(value, AssignmentFieldClosureCollection.getInstance(dataFunctor));
    clause.select(dateAtValue); // override existing select

    Query.getInstance().selectFrom(clause)
    .execute();
    return dateAtValue.getDate();
  }
View Full Code Here

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

   * @see com.projity.algorithm.DoubleValue#getValue()
   */
  public long getDate() {
    root.buildReverseQuery(this);
    Query query = Query.getInstance();
    DateAtValueFunctor dateAtValue = DateAtValueFunctor.getInstance(valueToFind, AssignmentFieldClosureCollection.getInstance(fieldSet))
   
    IntervalGenerator interval = null;
    if (!groupBySet.isEmpty())
      interval = IntervalGeneratorSet.getInstance(groupBySet);
    query.selectFrom(selectFromSet)
       .groupBy(interval)
       .action(dateAtValue)
       .execute();
    return dateAtValue.getDate();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.