Package de.peacei.gae.foodsupplier.data

Examples of de.peacei.gae.foodsupplier.data.TaskName


        TaskOptions taskOpt = TaskOptions.Builder.withUrl("/automatedupdate");
        taskOpt.param("mensa", id);
        taskOpt.method(Method.GET);
        taskOpt.taskName(name);
        queue.add(taskOpt);
        TaskName taskName = new TaskName();
        taskName.setIdentifier(id);
        taskName.setTaskName(name);
        taskNameDAO.saveTaskName(taskName);
       
        logger.info("Task added: "+id);
        respBuilder.append("Task added: "+id+"<br>");
      }
View Full Code Here


public class TaskNameDAO {
 
  public TaskNameDAO() { }
 
  public TaskName getTaskName(String id) {
    TaskName taskName = null;
   
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      taskName = pm.getObjectById(TaskName.class, id);
    } catch(Exception e) { }
View Full Code Here

  }
 
  public void deleteTaskName(String id) {
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      TaskName taskName = pm.getObjectById(TaskName.class, id);
      pm.deletePersistent(taskName);
      pm.flush();
    } catch(Exception e) { }
    finally
      pm.close();
View Full Code Here

TOP

Related Classes of de.peacei.gae.foodsupplier.data.TaskName

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.