1 64 package com.jcorporate.expresso.kernel.metadata; 65 66 import java.util.ArrayList ; 67 import java.util.Collections ; 68 import java.util.List ; 69 70 78 79 public class SchemaData { 80 81 84 List dbobjects; 85 86 89 List reports; 90 91 94 List controllers; 95 96 99 List jobs; 100 101 104 public SchemaData() { 105 106 } 107 108 113 public void addDataObject(DBObjectData newObj) { 114 if (dbobjects == null) { 115 dbobjects = new ArrayList (); 116 } 117 dbobjects.add(newObj); 118 } 119 120 125 public void addReportObject(ReportData newObj) { 126 if (reports == null) { 127 reports = new ArrayList (); 128 } 129 reports.add(newObj); 130 } 131 132 137 public void addController(ControllerData newObj) { 138 if (controllers == null) { 139 controllers = new ArrayList (); 140 } 141 controllers.add(newObj); 142 } 143 144 149 public void addJob(JobData newObj) { 150 if (jobs == null) { 151 jobs = new ArrayList (); 152 } 153 jobs.add(newObj); 154 } 155 156 161 public List getControllers() { 162 return Collections.unmodifiableList(controllers); 163 } 164 165 170 public List getDataObjects() { 171 return Collections.unmodifiableList(dbobjects); 172 } 173 174 179 public List getJobs() { 180 return Collections.unmodifiableList(jobs); 181 } 182 183 188 public List getReports() { 189 return Collections.unmodifiableList(reports); 190 } 191 } | Popular Tags |