Package plan_runner.expressions

Examples of plan_runner.expressions.DateSum


   
    @Test
    public void testVisit_DateOp1() {
        LOG.info("visit(DateOp1):");
        Date END_DATE = _dtc.fromString("1998-12-31");
        Date orderDateEnd = new DateSum(new ValueSpecification(_dtc, END_DATE), Calendar.DATE, -151).eval(null);
       
        String dateExp = "1998-08-02";
        Expression exp = new DateValue(" " + dateExp + " ");
        exp.accept(_visitor);
        Date jsqlDate = (Date) _visitor.getResult();
View Full Code Here


   
    @Test
    public void testVisit_DateOp2() {
        LOG.info("visit(DateOp2):");
        Date END_DATE = _dtc.fromString("1998-12-31");
        Date orderDateEnd = new DateSum(new ValueSpecification(_dtc, END_DATE), Calendar.DATE, -30).eval(null);
       
        String dateExp = "1998-12-01";
        Expression exp = new DateValue(" " + dateExp + " ");
        exp.accept(_visitor);
        Date jsqlDate = (Date) _visitor.getResult();
View Full Code Here

   
    @Test
    public void testVisit_DateOp3() {
        LOG.info("visit(DateOp3):");
        Date END_DATE = _dtc.fromString("1998-12-31");
        Date orderDateEnd = new DateSum(new ValueSpecification(_dtc, END_DATE), Calendar.DATE, -61).eval(null);
       
        String dateExp = "1998-10-31";
        Expression exp = new DateValue(" " + dateExp + " ");
        exp.accept(_visitor);
        Date jsqlDate = (Date) _visitor.getResult();
View Full Code Here

   
    @Test
    public void testVisit_DateOp4() {
        LOG.info("visit(DateOp4):");
        Date END_DATE = _dtc.fromString("1998-12-31");
        Date orderDateEnd = new DateSum(new ValueSpecification(_dtc, END_DATE), Calendar.DATE, -121).eval(null);
       
        String dateExp = "1998-09-01";
        Expression exp = new DateValue(" " + dateExp + " ");
        exp.accept(_visitor);
        Date jsqlDate = (Date) _visitor.getResult();
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    // setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    // setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    // setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    //setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    //setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

    _date1 = _dc.fromString(date1Str);

    //setting _date2
    ValueExpression<Date> date1Ve, date2Ve;
    date1Ve = new ValueSpecification<Date>(_dc, _date1);
    date2Ve = new DateSum(date1Ve, unit, interval);
    _date2 = date2Ve.eval(null);
    // tuple is set to null since we are computing based on constants
  }
View Full Code Here

TOP

Related Classes of plan_runner.expressions.DateSum

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.