Examples of TaskProcess


Examples of com.acelet.s.task.TaskProcess

   * @param id the ID for the task.
   * @return the number of rows deleted. It is 1, if successful, 0 otherwise.
   * @exception Exception.
   */
  public static int deleteTask(Connection connection, long id) throws Exception {
    return new TaskProcess(connection).deleteTask(id);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

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

Examples of com.acelet.s.task.TaskProcess

   * @param name the name of the Task.
   * @return the number of rows deleted. It is 1, if successful, 0 otherwise.
   * @exception Exception.
   */
  public static int deleteTask(Connection connection, String name) throws Exception {
    return new TaskProcess(connection).deleteTask(name);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

  public static void init() throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      new TaskProcess(connection).setLogAgent();
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

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

Examples of com.acelet.s.task.TaskProcess

   * automatically.
   * @param taskName the name of the task.
   * @exception Exception.
   */
  public static int insertCandidateTask(Connection connection, String taskName) throws Exception {
    return new TaskProcess(connection).insertCandidateTask(taskName);
  }
View Full Code Here

Examples of com.acelet.s.task.TaskProcess

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

Examples of com.acelet.s.task.TaskProcess

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

Examples of com.acelet.s.task.TaskProcess

   */
  public static int insertHolidayRule(HolidayRule holidayRule) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).insertHolidayRule(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 insertHolidayRule(Connection connection, HolidayRule holidayRule)
  throws Exception {
    return new TaskProcess(connection).insertHolidayRule(holidayRule);
  }
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.