001
014
015 package com.liferay.portlet.softwarecatalog.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class SCLicenseWrapper implements SCLicense, ModelWrapper<SCLicense> {
032 public SCLicenseWrapper(SCLicense scLicense) {
033 _scLicense = scLicense;
034 }
035
036 public Class<?> getModelClass() {
037 return SCLicense.class;
038 }
039
040 public String getModelClassName() {
041 return SCLicense.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("licenseId", getLicenseId());
048 attributes.put("name", getName());
049 attributes.put("url", getUrl());
050 attributes.put("openSource", getOpenSource());
051 attributes.put("active", getActive());
052 attributes.put("recommended", getRecommended());
053
054 return attributes;
055 }
056
057 public void setModelAttributes(Map<String, Object> attributes) {
058 Long licenseId = (Long)attributes.get("licenseId");
059
060 if (licenseId != null) {
061 setLicenseId(licenseId);
062 }
063
064 String name = (String)attributes.get("name");
065
066 if (name != null) {
067 setName(name);
068 }
069
070 String url = (String)attributes.get("url");
071
072 if (url != null) {
073 setUrl(url);
074 }
075
076 Boolean openSource = (Boolean)attributes.get("openSource");
077
078 if (openSource != null) {
079 setOpenSource(openSource);
080 }
081
082 Boolean active = (Boolean)attributes.get("active");
083
084 if (active != null) {
085 setActive(active);
086 }
087
088 Boolean recommended = (Boolean)attributes.get("recommended");
089
090 if (recommended != null) {
091 setRecommended(recommended);
092 }
093 }
094
095
100 public long getPrimaryKey() {
101 return _scLicense.getPrimaryKey();
102 }
103
104
109 public void setPrimaryKey(long primaryKey) {
110 _scLicense.setPrimaryKey(primaryKey);
111 }
112
113
118 public long getLicenseId() {
119 return _scLicense.getLicenseId();
120 }
121
122
127 public void setLicenseId(long licenseId) {
128 _scLicense.setLicenseId(licenseId);
129 }
130
131
136 public java.lang.String getName() {
137 return _scLicense.getName();
138 }
139
140
145 public void setName(java.lang.String name) {
146 _scLicense.setName(name);
147 }
148
149
154 public java.lang.String getUrl() {
155 return _scLicense.getUrl();
156 }
157
158
163 public void setUrl(java.lang.String url) {
164 _scLicense.setUrl(url);
165 }
166
167
172 public boolean getOpenSource() {
173 return _scLicense.getOpenSource();
174 }
175
176
181 public boolean isOpenSource() {
182 return _scLicense.isOpenSource();
183 }
184
185
190 public void setOpenSource(boolean openSource) {
191 _scLicense.setOpenSource(openSource);
192 }
193
194
199 public boolean getActive() {
200 return _scLicense.getActive();
201 }
202
203
208 public boolean isActive() {
209 return _scLicense.isActive();
210 }
211
212
217 public void setActive(boolean active) {
218 _scLicense.setActive(active);
219 }
220
221
226 public boolean getRecommended() {
227 return _scLicense.getRecommended();
228 }
229
230
235 public boolean isRecommended() {
236 return _scLicense.isRecommended();
237 }
238
239
244 public void setRecommended(boolean recommended) {
245 _scLicense.setRecommended(recommended);
246 }
247
248 public boolean isNew() {
249 return _scLicense.isNew();
250 }
251
252 public void setNew(boolean n) {
253 _scLicense.setNew(n);
254 }
255
256 public boolean isCachedModel() {
257 return _scLicense.isCachedModel();
258 }
259
260 public void setCachedModel(boolean cachedModel) {
261 _scLicense.setCachedModel(cachedModel);
262 }
263
264 public boolean isEscapedModel() {
265 return _scLicense.isEscapedModel();
266 }
267
268 public java.io.Serializable getPrimaryKeyObj() {
269 return _scLicense.getPrimaryKeyObj();
270 }
271
272 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
273 _scLicense.setPrimaryKeyObj(primaryKeyObj);
274 }
275
276 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
277 return _scLicense.getExpandoBridge();
278 }
279
280 public void setExpandoBridgeAttributes(
281 com.liferay.portal.service.ServiceContext serviceContext) {
282 _scLicense.setExpandoBridgeAttributes(serviceContext);
283 }
284
285 @Override
286 public java.lang.Object clone() {
287 return new SCLicenseWrapper((SCLicense)_scLicense.clone());
288 }
289
290 public int compareTo(
291 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
292 return _scLicense.compareTo(scLicense);
293 }
294
295 @Override
296 public int hashCode() {
297 return _scLicense.hashCode();
298 }
299
300 public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCLicense> toCacheModel() {
301 return _scLicense.toCacheModel();
302 }
303
304 public com.liferay.portlet.softwarecatalog.model.SCLicense toEscapedModel() {
305 return new SCLicenseWrapper(_scLicense.toEscapedModel());
306 }
307
308 @Override
309 public java.lang.String toString() {
310 return _scLicense.toString();
311 }
312
313 public java.lang.String toXmlString() {
314 return _scLicense.toXmlString();
315 }
316
317 public void persist()
318 throws com.liferay.portal.kernel.exception.SystemException {
319 _scLicense.persist();
320 }
321
322
325 public SCLicense getWrappedSCLicense() {
326 return _scLicense;
327 }
328
329 public SCLicense getWrappedModel() {
330 return _scLicense;
331 }
332
333 public void resetOriginalValues() {
334 _scLicense.resetOriginalValues();
335 }
336
337 private SCLicense _scLicense;
338 }