class ManterObtOutraCausaON extends BaseBusiness {

	public void removerObtOutraCausa(MpmAltaSumario altaSumario) throws ApplicationBusinessException {
		if (altaSumario!=null) {
			List<MpmObtOutraCausa> listaObtOutraCausa = this.getMpmObtOutraCausaDAO().obterMpmObtOutraCausa(
					altaSumario.getId().getApaAtdSeq(), 
					altaSumario.getId().getApaSeq(), 
					altaSumario.getId().getSeqp(),
					false
			);
			
			for (MpmObtOutraCausa obtOutraCausa : listaObtOutraCausa) {
				this.getManterObtOutraCausaRN().removerObtOutraCausa(obtOutraCausa);
			}
		}
	}

}