/*
 * <p>Title: SpecimenArrayTypeBizLogic Class </p>
 * <p>Description:This class performs business level logic for Specimen Array Type </p>
 * Copyright: Copyright (c) year 2006
 * Company: Washington University, School of Medicine, St. Louis.
 * @version 1.1
 * Created on Aug 24,2006
 */
package edu.wustl.catissuecore.bizlogic;

import edu.wustl.catissuecore.domain.SpecimenArrayType;
import edu.wustl.common.beans.SessionDataBean;
import edu.wustl.common.bizlogic.DefaultBizLogic;
import edu.wustl.common.dao.DAO;
import edu.wustl.common.security.exceptions.UserNotAuthorizedException;
import edu.wustl.common.util.dbManager.DAOException;


/**
 * <p>This class initializes the fields of SpecimenArrayTypeBizLogic.java</p>
 * @author Ashwin Gupta
 * @version 1.1
 */
public class SpecimenArrayTypeBizLogic extends DefaultBizLogic {
	
	/* (non-Javadoc)
	 * @see edu.wustl.common.bizlogic.AbstractBizLogic#insert(java.lang.Object, edu.wustl.common.dao.DAO, edu.wustl.common.beans.SessionDataBean)
	 */
	protected void insert(Object obj, DAO dao, SessionDataBean sessionDataBean) throws DAOException, UserNotAuthorizedException {
		SpecimenArrayType arrayType = (SpecimenArrayType) obj;
		dao.insert(arrayType.getCapacity(),sessionDataBean, true, true);
		dao.insert(arrayType,sessionDataBean, true, true);
	}
}

@@ -1338,11 +1338,804 @@
 );%0D%0A%09%7D%0D%0A
+%09%0D%0A%09/**%0D%0A     * Updates the persistent object in the database.%0D%0A%09 * @param obj The object to be updated.%0D%0A%09 * @param session The session in which the object is saved.%0D%0A%09 * @throws DAOException %0D%0A     */%0D%0A%09protected void update(Object obj,Object oldObj, DAO dao, SessionDataBean sessionDataBean) throws DAOException, UserNotAuthorizedException %0D%0A    %7B%0D%0A%09%09SpecimenArrayType arrayType = (SpecimenArrayType) obj;%0D%0A%09%09dao.update(arrayType.getCapacity(),sessionDataBean, true, true,false);%0D%0A%09%09dao.update(arrayType,sessionDataBean, true, true,false);%0D%0A%09%09%0D%0A%09    //Audit of update.%0D%0A%09%09SpecimenArrayType oldArrayType = (SpecimenArrayType) oldObj;%0D%0A%09    dao.audit(arrayType.getCapacity(), oldArrayType.getCapacity(), sessionDataBean, true);%0D%0A%09    dao.audit(obj, oldObj, sessionDataBean, true);%0D%0A    %7D%0D%0A%09%0D%0A
 %7D%0D%0A

add method for update