~codescore-dev/codescore/version-1.0

« back to all changes in this revision

Viewing changes to src/net/codescore/dbo/auto/_School.java

  • Committer: Adam Cornett
  • Date: 2008-05-16 02:53:17 UTC
  • mfrom: (65.1.52 codescore)
  • Revision ID: adam.cornett@gmail.com-20080516025317-douek1kxjabvb3wu
Merged changes from my branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
public abstract class _School extends CDO {
17
17
 
18
18
    public static final String NAME_PROPERTY = "name";
 
19
    public static final String WEBPAGE_PROPERTY = "webpage";
19
20
    public static final String COACHES_PROPERTY = "coaches";
 
21
    public static final String COMPETITIONS_PROPERTY = "competitions";
20
22
    public static final String PEOPLE_PROPERTY = "people";
21
 
    public static final String RUNTIME_RELATIONSHIP0_PROPERTY = "runtimeRelationship0";
22
23
    public static final String TEAMS_PROPERTY = "teams";
23
24
 
24
 
    public static final String SCHOOL_ID_PK_COLUMN = "SchoolID";
 
25
    public static final String SCHOOLID_PK_COLUMN = "schoolid";
25
26
 
26
27
    public void setName(String name) {
27
28
        writeProperty("name", name);
30
31
        return (String)readProperty("name");
31
32
    }
32
33
 
 
34
    public void setWebpage(String webpage) {
 
35
        writeProperty("webpage", webpage);
 
36
    }
 
37
    public String getWebpage() {
 
38
        return (String)readProperty("webpage");
 
39
    }
 
40
 
33
41
    public void addToCoaches(Person obj) {
34
42
        addToManyTarget("coaches", obj, true);
35
43
    }
42
50
    }
43
51
 
44
52
 
45
 
    public void addToPeople(Person obj) {
46
 
        addToManyTarget("people", obj, true);
47
 
    }
48
 
    public void removeFromPeople(Person obj) {
49
 
        removeToManyTarget("people", obj, true);
50
 
    }
 
53
    @SuppressWarnings("unchecked")
 
54
    public List<Competition> getCompetitions() {
 
55
        return (List<Competition>)readProperty("competitions");
 
56
    }
 
57
 
 
58
 
51
59
    @SuppressWarnings("unchecked")
52
60
    public List<Person> getPeople() {
53
61
        return (List<Person>)readProperty("people");
54
62
    }
55
63
 
56
64
 
57
 
    @SuppressWarnings("unchecked")
58
 
    public List<Competition> getRuntimeRelationship0() {
59
 
        return (List<Competition>)readProperty("runtimeRelationship0");
60
 
    }
61
 
 
62
 
 
63
65
    public void addToTeams(Team obj) {
64
66
        addToManyTarget("teams", obj, true);
65
67
    }