001    package net.codescore.dbo.auto;
002    
003    import java.util.List;
004    
005    import net.codescore.dbo.CDO;
006    import net.codescore.dbo.Comment;
007    import net.codescore.dbo.Competition;
008    import net.codescore.dbo.JudgeSolution;
009    import net.codescore.dbo.ProbFigure;
010    import net.codescore.dbo.Tag;
011    import net.codescore.dbo.TeamSubmission;
012    import net.codescore.dbo.TestCase;
013    
014    /**
015     * Class _Problem was generated by Cayenne.
016     * It is probably a good idea to avoid changing this class manually,
017     * since it may be overwritten next time code is regenerated.
018     * If you need to make any customizations, please use subclass.
019     */
020    public abstract class _Problem extends CDO {
021    
022        public static final String ACTIVE_PROPERTY = "active";
023        public static final String DESCRIPTION_PROPERTY = "description";
024        public static final String DIFFICULTY_PROPERTY = "difficulty";
025        public static final String NAME_PROPERTY = "name";
026        public static final String SAMPLE_INPUT_PROPERTY = "sampleInput";
027        public static final String SAMPLE_OUTPUT_PROPERTY = "sampleOutput";
028        public static final String UNIX_NAME_PROPERTY = "unixName";
029        public static final String COMMENTS_PROPERTY = "comments";
030        public static final String COMPETITIONS_PROPERTY = "competitions";
031        public static final String FIGURES_PROPERTY = "figures";
032        public static final String SOLUTIONS_PROPERTY = "solutions";
033        public static final String SUBMISSIONS_PROPERTY = "submissions";
034        public static final String TAGS_PROPERTY = "tags";
035        public static final String TEST_CASES_PROPERTY = "testCases";
036    
037        public static final String PROBLEMID_PK_COLUMN = "problemid";
038    
039        public void setActive(Boolean active) {
040            writeProperty("active", active);
041        }
042        public Boolean getActive() {
043            return (Boolean)readProperty("active");
044        }
045    
046        public void setDescription(String description) {
047            writeProperty("description", description);
048        }
049        public String getDescription() {
050            return (String)readProperty("description");
051        }
052    
053        public void setDifficulty(Short difficulty) {
054            writeProperty("difficulty", difficulty);
055        }
056        public Short getDifficulty() {
057            return (Short)readProperty("difficulty");
058        }
059    
060        public void setName(String name) {
061            writeProperty("name", name);
062        }
063        public String getName() {
064            return (String)readProperty("name");
065        }
066    
067        public void setSampleInput(String sampleInput) {
068            writeProperty("sampleInput", sampleInput);
069        }
070        public String getSampleInput() {
071            return (String)readProperty("sampleInput");
072        }
073    
074        public void setSampleOutput(String sampleOutput) {
075            writeProperty("sampleOutput", sampleOutput);
076        }
077        public String getSampleOutput() {
078            return (String)readProperty("sampleOutput");
079        }
080    
081        public void setUnixName(String unixName) {
082            writeProperty("unixName", unixName);
083        }
084        public String getUnixName() {
085            return (String)readProperty("unixName");
086        }
087    
088        public void addToComments(Comment obj) {
089            addToManyTarget("comments", obj, true);
090        }
091        public void removeFromComments(Comment obj) {
092            removeToManyTarget("comments", obj, true);
093        }
094        @SuppressWarnings("unchecked")
095        public List<Comment> getComments() {
096            return (List<Comment>)readProperty("comments");
097        }
098    
099    
100        public void addToCompetitions(Competition obj) {
101            addToManyTarget("competitions", obj, true);
102        }
103        public void removeFromCompetitions(Competition obj) {
104            removeToManyTarget("competitions", obj, true);
105        }
106        @SuppressWarnings("unchecked")
107        public List<Competition> getCompetitions() {
108            return (List<Competition>)readProperty("competitions");
109        }
110    
111    
112        public void addToFigures(ProbFigure obj) {
113            addToManyTarget("figures", obj, true);
114        }
115        public void removeFromFigures(ProbFigure obj) {
116            removeToManyTarget("figures", obj, true);
117        }
118        @SuppressWarnings("unchecked")
119        public List<ProbFigure> getFigures() {
120            return (List<ProbFigure>)readProperty("figures");
121        }
122    
123    
124        public void addToSolutions(JudgeSolution obj) {
125            addToManyTarget("solutions", obj, true);
126        }
127        public void removeFromSolutions(JudgeSolution obj) {
128            removeToManyTarget("solutions", obj, true);
129        }
130        @SuppressWarnings("unchecked")
131        public List<JudgeSolution> getSolutions() {
132            return (List<JudgeSolution>)readProperty("solutions");
133        }
134    
135    
136        public void addToSubmissions(TeamSubmission obj) {
137            addToManyTarget("submissions", obj, true);
138        }
139        public void removeFromSubmissions(TeamSubmission obj) {
140            removeToManyTarget("submissions", obj, true);
141        }
142        @SuppressWarnings("unchecked")
143        public List<TeamSubmission> getSubmissions() {
144            return (List<TeamSubmission>)readProperty("submissions");
145        }
146    
147    
148        public void addToTags(Tag obj) {
149            addToManyTarget("tags", obj, true);
150        }
151        public void removeFromTags(Tag obj) {
152            removeToManyTarget("tags", obj, true);
153        }
154        @SuppressWarnings("unchecked")
155        public List<Tag> getTags() {
156            return (List<Tag>)readProperty("tags");
157        }
158    
159    
160        public void addToTestCases(TestCase obj) {
161            addToManyTarget("testCases", obj, true);
162        }
163        public void removeFromTestCases(TestCase obj) {
164            removeToManyTarget("testCases", obj, true);
165        }
166        @SuppressWarnings("unchecked")
167        public List<TestCase> getTestCases() {
168            return (List<TestCase>)readProperty("testCases");
169        }
170    
171    
172    }