package beaform;

import java.util.concurrent.Callable;

import javax.transaction.NotSupportedException;
import javax.transaction.SystemException;

import beaform.entities.Formula;
import beaform.entities.FormulaDAO;

public final class SearchFormulaTask implements Callable<Formula> {

	/**
	 * The name of the formula to search for
	 */
	private final transient String name;

	public SearchFormulaTask(final String searchForName) {
		this.name = searchForName;
	}

	@Override
	public Formula call() throws NotSupportedException, SystemException {

		final FormulaDAO formulaDAO = new FormulaDAO();

		Formula result = formulaDAO.findFormulaByName(this.name);


		return result;

	}
}
@@ -211,16 +211,88 @@
 laDAO;%0A%0A
+/**%0A * A search task to find formulas.%0A *%0A * @author Steven Post%0A *%0A */%0A
 public f
@@ -448,95 +448,298 @@
 ;%0A%0A%09
-public SearchFormulaTask(final String searchForName) %7B%0A%09%09this.name = searchForName;%0A%09%7D%0A
+/**%0A%09 * Constructor.%0A%09 *%0A%09 * @param searchForName the name of the formula to search for%0A%09 */%0A%09public SearchFormulaTask(final String searchForName) %7B%0A%09%09this.name = searchForName;%0A%09%7D%0A%0A%09/**%0A%09 * Called when the task is executed.%0A%09 *%0A%09 * @return the found formula, or null if none was found%0A%09 */
 %0A%09@O

Add more JavaDoc