Package org.jayasoft.woj.server.data

Examples of org.jayasoft.woj.server.data.BackupTimerDao


   (non-Javadoc)
   * @see org.jayasoft.woj.server.services.ContentService#mustPrepareUpdateZipFile()
   */
  public boolean mustPrepareBackupZipFile(long today) {
   
    BackupTimerDao uTimerDao = WOJServer.getInstance().getDataService().getBackupTimerDao();
    BackupTimer[] timers = uTimerDao.getAllTimers();
   
    for (int i = 0; i < timers.length; i++) {
      BackupTimer timer = timers[i];
      GregorianCalendar gc = new GregorianCalendar();
      gc.setTimeInMillis(timer.getLastDone());
View Full Code Here


   * @see org.jayasoft.woj.server.services.ContentService#getUpdateZipTimers(long)
   */
  public BackupTimer[] getBackupZipTimers(long today) {
    List result = new ArrayList();
   
    BackupTimerDao uTimerDao = WOJServer.getInstance().getDataService().getBackupTimerDao();
    BackupTimer[] timers = uTimerDao.getAllTimers();
   
    for (int i = 0; i < timers.length; i++) {
      BackupTimer timer = timers[i];
      GregorianCalendar gc = new GregorianCalendar(Locale.FRANCE);
      gc.setTimeInMillis(timer.getLastDone());
View Full Code Here

  /*
   *  (non-Javadoc)
   * @see org.jayasoft.woj.server.services.ContentService#updateTimers(org.jayasoft.woj.server.data.BackupTimer[])
   */
  public void updateBackupTimers(BackupTimer[] timers) {
    BackupTimerDao dao = WOJServer.getInstance().getDataService().getBackupTimerDao();
    for (int i = 0; i < timers.length; i++) {
      BackupTimer timer = timers[i];
      dao.update(timer);
    }
  }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.server.data.BackupTimerDao

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.