KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > cloneable > CloneableGroup


1 /*
2  * (C) 2003 ppi Media
3  * User: om
4  */

5
6 package org.apache.ojb.broker.cloneable;
7
8 /**
9  * implements Cloneable so that it can be used in a two-level cache
10  *
11  * @author <a HREF="mailto:om@ppi.de">Oliver Matz</a>
12  * @version $Id: CloneableGroup.java,v 1.1.4.1 2005/01/23 03:03:19 arminw Exp $
13  */

14 public class CloneableGroup implements Cloneable JavaDoc
15 {
16   private Integer JavaDoc id;
17   private String JavaDoc groupName;
18
19   /**
20    * called by reflection in {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl}.
21    * @return
22    * @throws CloneNotSupportedException
23    */

24   public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc
25   {
26     return super.clone();
27   }
28
29   /**
30    * mapped to column KategorieName
31    */

32   public final String JavaDoc getName()
33   {
34     return groupName;
35   }
36
37   public final void setName(String JavaDoc name)
38   {
39     this.groupName = name;
40   }
41
42   public String JavaDoc toString()
43   {
44     return "CloneableGroup#" + System.identityHashCode(this) + " - " + id + ": " + groupName;
45   }
46 }
47
Popular Tags