Examples of TaskProcess


Examples of com.acelet.s.task.TaskProcess

   */
  public static int updateHoliday(Holiday holiday) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).updateHoliday(holiday);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   * @param holiday the Holiday.
   * @return the number of rows changed. It is 1, if successful, 0 otherwise.
   * @see com.acelet.s.task.Holiday
   */
  public static int updateHoliday(Connection connection, Holiday holiday) throws Exception {
    return new TaskProcess(connection).updateHoliday(holiday);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   */
  public static int updateHolidayRule(HolidayRule holidayRule) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).updateHolidayRule(holidayRule);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   * @return the number of rows changed. It is 1, if successful, 0 otherwise.
   * @see com.acelet.s.task.HolidayRule
   */
  public static int updateHolidayRule(Connection connection, HolidayRule holidayRule)
  throws Exception {
    return new TaskProcess(connection).updateHolidayRule(holidayRule);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   * @return Task
   * @see com.acelet.s.task.Task
   */
  public static int updateTask(Connection connection, Task task, long newModifiedAt)
  throws Exception {
    return new TaskProcess(connection).updateTask(task, newModifiedAt);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   */
  public static int updateWorkingTask(WorkingTask workingTask) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).updateWorkingTask(workingTask);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   * @return the number of rows changed. It is 1, if successful, 0 otherwise.
   * @see com.acelet.s.task.WorkingTask
   */
  public static int updateWorkingTask(Connection connection, WorkingTask workingTask)
  throws Exception {
    return new TaskProcess(connection).updateWorkingTask(workingTask);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   */
  public static int changeTaskStatus(String taskName, int newStatus) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).changeTaskStatus(taskName, newStatus);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   * @exception Exception.
   * @see com.acelet.s.job.AbstractTaskConstants
   */
  public static int changeTaskStatus(Connection connection, String taskName, int newStatus)
  throws Exception {
    return new TaskProcess(connection).changeTaskStatus(taskName, newStatus);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

   */
  public static int deleteHoliday(long id) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).deleteHoliday(id);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
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.