KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectstyle > cayenne > pref > _Domain


1 package org.objectstyle.cayenne.pref;
2
3 import java.util.List JavaDoc;
4
5 /** Class _Domain was generated by Cayenne.
6   * It is probably a good idea to avoid changing this class manually,
7   * since it may be overwritten next time code is regenerated.
8   * If you need to make any customizations, please use subclass.
9   */

10 public class _Domain extends org.objectstyle.cayenne.CayenneDataObject {
11
12     public static final String JavaDoc DESCRIPTION_PROPERTY = "description";
13     public static final String JavaDoc LEVEL_PROPERTY = "level";
14     public static final String JavaDoc NAME_PROPERTY = "name";
15     public static final String JavaDoc PARENT_DOMAIN_PROPERTY = "parentDomain";
16     public static final String JavaDoc PREFERENCES_PROPERTY = "preferences";
17     public static final String JavaDoc SUBDOMAINS_PROPERTY = "subdomains";
18
19     public static final String JavaDoc ID_PK_COLUMN = "id";
20
21     public void setDescription(String JavaDoc description) {
22         writeProperty("description", description);
23     }
24     public String JavaDoc getDescription() {
25         return (String JavaDoc)readProperty("description");
26     }
27     
28     
29     public void setLevel(Integer JavaDoc level) {
30         writeProperty("level", level);
31     }
32     public Integer JavaDoc getLevel() {
33         return (Integer JavaDoc)readProperty("level");
34     }
35     
36     
37     public void setName(String JavaDoc name) {
38         writeProperty("name", name);
39     }
40     public String JavaDoc getName() {
41         return (String JavaDoc)readProperty("name");
42     }
43     
44     
45     public void setParentDomain(Domain parentDomain) {
46         setToOneTarget("parentDomain", parentDomain, true);
47     }
48
49     public Domain getParentDomain() {
50         return (Domain)readProperty("parentDomain");
51     }
52     
53     
54     public void addToPreferences(DomainPreference obj) {
55         addToManyTarget("preferences", obj, true);
56     }
57     public void removeFromPreferences(DomainPreference obj) {
58         removeToManyTarget("preferences", obj, true);
59     }
60     public List JavaDoc getPreferences() {
61         return (List JavaDoc)readProperty("preferences");
62     }
63     
64     
65     public void addToSubdomains(Domain obj) {
66         addToManyTarget("subdomains", obj, true);
67     }
68     public void removeFromSubdomains(Domain obj) {
69         removeToManyTarget("subdomains", obj, true);
70     }
71     public List JavaDoc getSubdomains() {
72         return (List JavaDoc)readProperty("subdomains");
73     }
74     
75     
76 }
77
Popular Tags