Package com.projity.algorithm

Examples of com.projity.algorithm.SelectFrom.select()


  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

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.