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 SCProductScreenshotWrapper implements SCProductScreenshot,
032 ModelWrapper<SCProductScreenshot> {
033 public SCProductScreenshotWrapper(SCProductScreenshot scProductScreenshot) {
034 _scProductScreenshot = scProductScreenshot;
035 }
036
037 public Class<?> getModelClass() {
038 return SCProductScreenshot.class;
039 }
040
041 public String getModelClassName() {
042 return SCProductScreenshot.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("productScreenshotId", getProductScreenshotId());
049 attributes.put("companyId", getCompanyId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("productEntryId", getProductEntryId());
052 attributes.put("thumbnailId", getThumbnailId());
053 attributes.put("fullImageId", getFullImageId());
054 attributes.put("priority", getPriority());
055
056 return attributes;
057 }
058
059 public void setModelAttributes(Map<String, Object> attributes) {
060 Long productScreenshotId = (Long)attributes.get("productScreenshotId");
061
062 if (productScreenshotId != null) {
063 setProductScreenshotId(productScreenshotId);
064 }
065
066 Long companyId = (Long)attributes.get("companyId");
067
068 if (companyId != null) {
069 setCompanyId(companyId);
070 }
071
072 Long groupId = (Long)attributes.get("groupId");
073
074 if (groupId != null) {
075 setGroupId(groupId);
076 }
077
078 Long productEntryId = (Long)attributes.get("productEntryId");
079
080 if (productEntryId != null) {
081 setProductEntryId(productEntryId);
082 }
083
084 Long thumbnailId = (Long)attributes.get("thumbnailId");
085
086 if (thumbnailId != null) {
087 setThumbnailId(thumbnailId);
088 }
089
090 Long fullImageId = (Long)attributes.get("fullImageId");
091
092 if (fullImageId != null) {
093 setFullImageId(fullImageId);
094 }
095
096 Integer priority = (Integer)attributes.get("priority");
097
098 if (priority != null) {
099 setPriority(priority);
100 }
101 }
102
103
108 public long getPrimaryKey() {
109 return _scProductScreenshot.getPrimaryKey();
110 }
111
112
117 public void setPrimaryKey(long primaryKey) {
118 _scProductScreenshot.setPrimaryKey(primaryKey);
119 }
120
121
126 public long getProductScreenshotId() {
127 return _scProductScreenshot.getProductScreenshotId();
128 }
129
130
135 public void setProductScreenshotId(long productScreenshotId) {
136 _scProductScreenshot.setProductScreenshotId(productScreenshotId);
137 }
138
139
144 public long getCompanyId() {
145 return _scProductScreenshot.getCompanyId();
146 }
147
148
153 public void setCompanyId(long companyId) {
154 _scProductScreenshot.setCompanyId(companyId);
155 }
156
157
162 public long getGroupId() {
163 return _scProductScreenshot.getGroupId();
164 }
165
166
171 public void setGroupId(long groupId) {
172 _scProductScreenshot.setGroupId(groupId);
173 }
174
175
180 public long getProductEntryId() {
181 return _scProductScreenshot.getProductEntryId();
182 }
183
184
189 public void setProductEntryId(long productEntryId) {
190 _scProductScreenshot.setProductEntryId(productEntryId);
191 }
192
193
198 public long getThumbnailId() {
199 return _scProductScreenshot.getThumbnailId();
200 }
201
202
207 public void setThumbnailId(long thumbnailId) {
208 _scProductScreenshot.setThumbnailId(thumbnailId);
209 }
210
211
216 public long getFullImageId() {
217 return _scProductScreenshot.getFullImageId();
218 }
219
220
225 public void setFullImageId(long fullImageId) {
226 _scProductScreenshot.setFullImageId(fullImageId);
227 }
228
229
234 public int getPriority() {
235 return _scProductScreenshot.getPriority();
236 }
237
238
243 public void setPriority(int priority) {
244 _scProductScreenshot.setPriority(priority);
245 }
246
247 public boolean isNew() {
248 return _scProductScreenshot.isNew();
249 }
250
251 public void setNew(boolean n) {
252 _scProductScreenshot.setNew(n);
253 }
254
255 public boolean isCachedModel() {
256 return _scProductScreenshot.isCachedModel();
257 }
258
259 public void setCachedModel(boolean cachedModel) {
260 _scProductScreenshot.setCachedModel(cachedModel);
261 }
262
263 public boolean isEscapedModel() {
264 return _scProductScreenshot.isEscapedModel();
265 }
266
267 public java.io.Serializable getPrimaryKeyObj() {
268 return _scProductScreenshot.getPrimaryKeyObj();
269 }
270
271 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
272 _scProductScreenshot.setPrimaryKeyObj(primaryKeyObj);
273 }
274
275 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
276 return _scProductScreenshot.getExpandoBridge();
277 }
278
279 public void setExpandoBridgeAttributes(
280 com.liferay.portal.model.BaseModel<?> baseModel) {
281 _scProductScreenshot.setExpandoBridgeAttributes(baseModel);
282 }
283
284 public void setExpandoBridgeAttributes(
285 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
286 _scProductScreenshot.setExpandoBridgeAttributes(expandoBridge);
287 }
288
289 public void setExpandoBridgeAttributes(
290 com.liferay.portal.service.ServiceContext serviceContext) {
291 _scProductScreenshot.setExpandoBridgeAttributes(serviceContext);
292 }
293
294 @Override
295 public java.lang.Object clone() {
296 return new SCProductScreenshotWrapper((SCProductScreenshot)_scProductScreenshot.clone());
297 }
298
299 public int compareTo(
300 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
301 return _scProductScreenshot.compareTo(scProductScreenshot);
302 }
303
304 @Override
305 public int hashCode() {
306 return _scProductScreenshot.hashCode();
307 }
308
309 public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> toCacheModel() {
310 return _scProductScreenshot.toCacheModel();
311 }
312
313 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toEscapedModel() {
314 return new SCProductScreenshotWrapper(_scProductScreenshot.toEscapedModel());
315 }
316
317 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toUnescapedModel() {
318 return new SCProductScreenshotWrapper(_scProductScreenshot.toUnescapedModel());
319 }
320
321 @Override
322 public java.lang.String toString() {
323 return _scProductScreenshot.toString();
324 }
325
326 public java.lang.String toXmlString() {
327 return _scProductScreenshot.toXmlString();
328 }
329
330 public void persist()
331 throws com.liferay.portal.kernel.exception.SystemException {
332 _scProductScreenshot.persist();
333 }
334
335
338 public SCProductScreenshot getWrappedSCProductScreenshot() {
339 return _scProductScreenshot;
340 }
341
342 public SCProductScreenshot getWrappedModel() {
343 return _scProductScreenshot;
344 }
345
346 public void resetOriginalValues() {
347 _scProductScreenshot.resetOriginalValues();
348 }
349
350 private SCProductScreenshot _scProductScreenshot;
351 }