org/andromda/cartridges/arc/HybernateTreatment.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 HybernateTreatment extends Treatment {
00010         public HybernateTreatment(Responsibility resp) {
00011                 super("Hybernate", "Persistence", resp);
00012         }
00013         public String getDescription() {
00014                 String desc="";
00015                 if(resp instanceof KeyResponsibility) {
00016                         desc="Hybernate can handle the responsibility of checking Keys.";
00017                 }
00018                 else if(resp instanceof CardinalityResponsibility) {
00019                         desc="Hybernate can be asked for the cardinality of some relation.";
00020                 }
00021                 else if(resp instanceof ConstraintResponsibility) {
00022                         desc="The constraint can be handled using a Hybernate in the persistence layer.";
00023                 }
00024                 return desc;
00025         }
00026 }

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