Package de.iritgo.aktera.scheduler.entity

Examples of de.iritgo.aktera.scheduler.entity.Holiday


      holidayReader.open(new InputStreamReader(this.getClass().getResourceAsStream("holidays_de.csv")));

      while (holidayReader.hasNext())
      {
        Holiday holiday = holidayReader.next();

        update("INSERT INTO holiday (id,name,country,province,day,month,year) values (?,?,?,?,?,?,?)",
                new Object[]
                {
                        createKeelId("Holiday"), holiday.getName(), holiday.getCountry(),
                        holiday.getProvince(), holiday.getDay(), holiday.getMonth(),
                        holiday.getYear()
                });
      }

      currentVersion.setVersion("2.1.3");
    }
View Full Code Here


    holidayReader.open(new InputStreamReader(this.getClass().getResourceAsStream("holidays_de.csv")));

    while (holidayReader.hasNext())
    {
      Holiday holiday = holidayReader.next();

      if (holiday.getYear() != null)
      {
        update("INSERT INTO holiday (name, country, province, day, month, year) values (?, ?, ?, ?, ?, ?)",
                new Object[]
                {
                        holiday.getName(), holiday.getCountry(), holiday.getProvince(),
                        holiday.getDay(), holiday.getMonth(), holiday.getYear()
                });
      }
      else
      {
        update("INSERT INTO holiday (name, country, province, day, month) values (?, ?, ?, ?, ?)", new Object[]
        {
                holiday.getName(), holiday.getCountry(), holiday.getProvince(), holiday.getDay(),
                holiday.getMonth()
        });
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.scheduler.entity.Holiday

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.