Examples of DateAdd()


Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

          irmNextUrno += 1;
          isAllocated = false;
        }

        HpUfisCalendar ufisCal = new HpUfisCalendar(new Date());
        ufisCal.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC,
            EnumTimeInterval.Hours);
        utcCdat = ufisCal.getTime();

        EntDbIrmtab irmEntity = new EntDbIrmtab();
        // composite pkey
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

          irmNextUrno += 1;
          isAllocated = false;
        }

        HpUfisCalendar ufisCal = new HpUfisCalendar(new Date());
        ufisCal.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC,
            EnumTimeInterval.Hours);
        utcCdat = ufisCal.getTime();

        EntDbIrmtab irmEntity = new EntDbIrmtab();
        // composite pkey
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

          irmNextUrno += 1;
          isAllocated = false;
        }

        HpUfisCalendar ufisCal = new HpUfisCalendar(new Date());
        ufisCal.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
        utcCdat = ufisCal.getTime();

        EntDbIrmtab irmEntity = new EntDbIrmtab();
        // composite pkey
        irmEntity.setId(new EntDbIrmCompositeId(irmNextUrno, dtfl));
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

  public long getMinPaxUrno() {
    long urno = 0;
    try {
      // current date in UTC
      HpUfisCalendar ufisCalendar = new HpUfisCalendar();
      ufisCalendar.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
     
      // query
      StringBuilder sb = new StringBuilder();
      sb.append("SELECT MAX(e.id.urno) FROM EntDbIrmtab e ")
          .append(" WHERE e.id.dtfl = :dtfl ")
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

          irmNextUrno += 1;
          isAllocated = false;
        }

        HpUfisCalendar ufisCal = new HpUfisCalendar(new Date());
        ufisCal.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC,
            EnumTimeInterval.Hours);
        utcCdat = ufisCal.getTime();

        EntDbIrmtab irmEntity = new EntDbIrmtab();
       
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

          irmNextUrno += 1;
          isAllocated = false;
        }

        HpUfisCalendar ufisCal = new HpUfisCalendar(new Date());
        ufisCal.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
        utcCdat = ufisCal.getTime();

        EntDbIrmtab irmEntity = new EntDbIrmtab();
        // composite pkey
        irmEntity.setId(new EntDbIrmCompositeId(irmNextUrno, dtfl));
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

  public long getMinPaxUrno() {
    long urno = 0;
    try {
      // current date in UTC
      HpUfisCalendar ufisCalendar = new HpUfisCalendar();
      ufisCalendar.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
     
      // query
      StringBuilder sb = new StringBuilder();
      sb.append("SELECT MAX(e.id.urno) FROM EntDbIrmtab e ")
          .append(" WHERE e.id.dtfl = :dtfl ")
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

    // ftyp
    queryStr.append("a.ftyp = :ftyp");

    // tifa or tifd in range (range: -3 ~ +3, Local to UTC: -4)
    HpUfisCalendar ufisCalendarFrom = new HpUfisCalendar();
    ufisCalendarFrom.DateAdd(-7, EnumTimeInterval.Hours);

    HpUfisCalendar ufisCalendarTo = new HpUfisCalendar();
    ufisCalendarTo.DateAdd(-1, EnumTimeInterval.Hours);
    queryStr.append(" AND ");
    queryStr.append("((a.tifa between :fromDate and :endDate) or (a.tifd between :fromDate and :endDate))");
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

    // tifa or tifd in range (range: -3 ~ +3, Local to UTC: -4)
    HpUfisCalendar ufisCalendarFrom = new HpUfisCalendar();
    ufisCalendarFrom.DateAdd(-7, EnumTimeInterval.Hours);

    HpUfisCalendar ufisCalendarTo = new HpUfisCalendar();
    ufisCalendarTo.DateAdd(-1, EnumTimeInterval.Hours);
    queryStr.append(" AND ");
    queryStr.append("((a.tifa between :fromDate and :endDate) or (a.tifd between :fromDate and :endDate))");

    Query query = em.createQuery(queryStr.toString());
    if (HpUfisUtils.isNotEmptyStr(carrier) && carrier.length() == 2) {
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()

    startDate.setTimeZone(HpEKConstants.utcTz);
    endDate.setTimeZone(HpEKConstants.utcTz);

    startDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertFromOffset(),
        EnumTimeInterval.Hours);
    endDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertToOffset(),
        EnumTimeInterval.Hours);
    LOG.debug("TIFA FromOffset : <{}>  ToOffset : <{}>",
        startDate.getCedaString(), endDate.getCedaString());

    Query query = em
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.