00001 package org.andromda.cartridges.arc;
00002
00003 import java.util.Collection;
00004 import java.util.Iterator;
00005
00009 public class StoredProcedureTreatment extends Treatment {
00010 public StoredProcedureTreatment(Responsibility resp) {
00011 super("StoredProcedure", "Persistence", resp);
00012 }
00013 public String getDescription() {
00014 String desc="";
00015 if(resp instanceof ConstraintResponsibility) {
00016 if(((ConstraintResponsibility)resp).getConstraintName().equals("deleteElement")) {
00017 desc="The database can delete an element using stored procedures.";
00018 }
00019 if(((ConstraintResponsibility)resp).getConstraintName().equals("insertElement")) {
00020 desc="The database can insert an element using stored procedures.";
00021 }
00022 if(((ConstraintResponsibility)resp).getConstraintName().equals("listAll")) {
00023 desc="The database can list elements using stored procedures.";
00024 }
00025 }
00026 return desc;
00027 }
00028 }