00001 package org.andromda.cartridges.arc; 00002 00003 import java.util.Collection; 00004 import java.util.Iterator; 00005 00009 public class DBSchemaTreatment extends Treatment { 00010 public DBSchemaTreatment(Responsibility resp) { 00011 super("DBSchema", "Persistence", resp); 00012 } 00013 public String getDescription() { 00014 String desc=""; 00015 if(resp instanceof KeyResponsibility) { 00016 desc="The database schema could have 'Primary Keys' and 'Unique' constraints to ensure the key responsibility."; 00017 } 00018 else if(resp instanceof CardinalityResponsibility) { 00019 desc="The database schema could have 'Checks' to ensure the cardinality responsibility."; 00020 } 00021 return desc; 00022 } 00023 }
1.4.7