01: /*
02: * (C) 2003 ppi Media
03: * User: om
04: */
05:
06: package org.apache.ojb.broker.cloneable;
07:
08: /**
09: * 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 {
15: private Integer id;
16: private String groupName;
17:
18: /**
19: * called by reflection in {@link org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl}.
20: * @return
21: * @throws CloneNotSupportedException
22: */
23: public Object clone() throws CloneNotSupportedException {
24: return super .clone();
25: }
26:
27: /**
28: * mapped to column KategorieName
29: */
30: public final String getName() {
31: return groupName;
32: }
33:
34: public final void setName(String name) {
35: this .groupName = name;
36: }
37:
38: public String toString() {
39: return "CloneableGroup#" + System.identityHashCode(this )
40: + " - " + id + ": " + groupName;
41: }
42: }
|