1 package org.objectstyle.cayenne.pref; 2 3 import java.util.List ; 4 5 10 public class _Domain extends org.objectstyle.cayenne.CayenneDataObject { 11 12 public static final String DESCRIPTION_PROPERTY = "description"; 13 public static final String LEVEL_PROPERTY = "level"; 14 public static final String NAME_PROPERTY = "name"; 15 public static final String PARENT_DOMAIN_PROPERTY = "parentDomain"; 16 public static final String PREFERENCES_PROPERTY = "preferences"; 17 public static final String SUBDOMAINS_PROPERTY = "subdomains"; 18 19 public static final String ID_PK_COLUMN = "id"; 20 21 public void setDescription(String description) { 22 writeProperty("description", description); 23 } 24 public String getDescription() { 25 return (String )readProperty("description"); 26 } 27 28 29 public void setLevel(Integer level) { 30 writeProperty("level", level); 31 } 32 public Integer getLevel() { 33 return (Integer )readProperty("level"); 34 } 35 36 37 public void setName(String name) { 38 writeProperty("name", name); 39 } 40 public String getName() { 41 return (String )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 getPreferences() { 61 return (List )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 getSubdomains() { 72 return (List )readProperty("subdomains"); 73 } 74 75 76 } 77 | Popular Tags |