org/andromda/cartridges/arc/DBSchemaTreatment.java

Go to the documentation of this file.
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 }

Generated on Tue Jan 9 16:10:05 2007 for AndroMDA ARC by  doxygen 1.4.7