Examples of ChoreProcess


Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

   * @return the number of rows changed. It is 1, if successful, 0 otherwise.
   * @exception Exception.
   */
  public static int changeChoreStatus(Connection connection, String choreName, int newStatus)
  throws Exception {
    return new ChoreProcess(connection).changeChoreStatus(choreName, newStatus);
  }
View Full Code Here

Examples of com.acelet.s.chore.ChoreProcess

   */
  public static int deleteChore(long id) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new ChoreProcess(connection).deleteChore(id);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

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

Examples of com.acelet.s.chore.ChoreProcess

   * automatically.
   * @param choreName the name of the chore.
   * @exception Exception.
   */
  public static int insertCandidateChore(Connection connection, String choreName) throws Exception {
    return new ChoreProcess(connection).insertCandidateChore(choreName);
  }
View Full Code Here

Examples of com.acelet.s.chore.ChoreProcess

   */
  public static int insertChore(Chore chore) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new ChoreProcess(connection).insertChore(chore);
    } 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.