001
014
015 package com.liferay.portlet.journal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class JournalArticleImageWrapper implements JournalArticleImage,
033 ModelWrapper<JournalArticleImage> {
034 public JournalArticleImageWrapper(JournalArticleImage journalArticleImage) {
035 _journalArticleImage = journalArticleImage;
036 }
037
038 public Class<?> getModelClass() {
039 return JournalArticleImage.class;
040 }
041
042 public String getModelClassName() {
043 return JournalArticleImage.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("articleImageId", getArticleImageId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("articleId", getArticleId());
052 attributes.put("version", getVersion());
053 attributes.put("elInstanceId", getElInstanceId());
054 attributes.put("elName", getElName());
055 attributes.put("languageId", getLanguageId());
056 attributes.put("tempImage", getTempImage());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long articleImageId = (Long)attributes.get("articleImageId");
063
064 if (articleImageId != null) {
065 setArticleImageId(articleImageId);
066 }
067
068 Long groupId = (Long)attributes.get("groupId");
069
070 if (groupId != null) {
071 setGroupId(groupId);
072 }
073
074 String articleId = (String)attributes.get("articleId");
075
076 if (articleId != null) {
077 setArticleId(articleId);
078 }
079
080 Double version = (Double)attributes.get("version");
081
082 if (version != null) {
083 setVersion(version);
084 }
085
086 String elInstanceId = (String)attributes.get("elInstanceId");
087
088 if (elInstanceId != null) {
089 setElInstanceId(elInstanceId);
090 }
091
092 String elName = (String)attributes.get("elName");
093
094 if (elName != null) {
095 setElName(elName);
096 }
097
098 String languageId = (String)attributes.get("languageId");
099
100 if (languageId != null) {
101 setLanguageId(languageId);
102 }
103
104 Boolean tempImage = (Boolean)attributes.get("tempImage");
105
106 if (tempImage != null) {
107 setTempImage(tempImage);
108 }
109 }
110
111
116 public long getPrimaryKey() {
117 return _journalArticleImage.getPrimaryKey();
118 }
119
120
125 public void setPrimaryKey(long primaryKey) {
126 _journalArticleImage.setPrimaryKey(primaryKey);
127 }
128
129
134 public long getArticleImageId() {
135 return _journalArticleImage.getArticleImageId();
136 }
137
138
143 public void setArticleImageId(long articleImageId) {
144 _journalArticleImage.setArticleImageId(articleImageId);
145 }
146
147
152 public long getGroupId() {
153 return _journalArticleImage.getGroupId();
154 }
155
156
161 public void setGroupId(long groupId) {
162 _journalArticleImage.setGroupId(groupId);
163 }
164
165
170 public java.lang.String getArticleId() {
171 return _journalArticleImage.getArticleId();
172 }
173
174
179 public void setArticleId(java.lang.String articleId) {
180 _journalArticleImage.setArticleId(articleId);
181 }
182
183
188 public double getVersion() {
189 return _journalArticleImage.getVersion();
190 }
191
192
197 public void setVersion(double version) {
198 _journalArticleImage.setVersion(version);
199 }
200
201
206 public java.lang.String getElInstanceId() {
207 return _journalArticleImage.getElInstanceId();
208 }
209
210
215 public void setElInstanceId(java.lang.String elInstanceId) {
216 _journalArticleImage.setElInstanceId(elInstanceId);
217 }
218
219
224 public java.lang.String getElName() {
225 return _journalArticleImage.getElName();
226 }
227
228
233 public void setElName(java.lang.String elName) {
234 _journalArticleImage.setElName(elName);
235 }
236
237
242 public java.lang.String getLanguageId() {
243 return _journalArticleImage.getLanguageId();
244 }
245
246
251 public void setLanguageId(java.lang.String languageId) {
252 _journalArticleImage.setLanguageId(languageId);
253 }
254
255
260 public boolean getTempImage() {
261 return _journalArticleImage.getTempImage();
262 }
263
264
269 public boolean isTempImage() {
270 return _journalArticleImage.isTempImage();
271 }
272
273
278 public void setTempImage(boolean tempImage) {
279 _journalArticleImage.setTempImage(tempImage);
280 }
281
282 public boolean isNew() {
283 return _journalArticleImage.isNew();
284 }
285
286 public void setNew(boolean n) {
287 _journalArticleImage.setNew(n);
288 }
289
290 public boolean isCachedModel() {
291 return _journalArticleImage.isCachedModel();
292 }
293
294 public void setCachedModel(boolean cachedModel) {
295 _journalArticleImage.setCachedModel(cachedModel);
296 }
297
298 public boolean isEscapedModel() {
299 return _journalArticleImage.isEscapedModel();
300 }
301
302 public java.io.Serializable getPrimaryKeyObj() {
303 return _journalArticleImage.getPrimaryKeyObj();
304 }
305
306 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
307 _journalArticleImage.setPrimaryKeyObj(primaryKeyObj);
308 }
309
310 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
311 return _journalArticleImage.getExpandoBridge();
312 }
313
314 public void setExpandoBridgeAttributes(
315 com.liferay.portal.service.ServiceContext serviceContext) {
316 _journalArticleImage.setExpandoBridgeAttributes(serviceContext);
317 }
318
319 @Override
320 public java.lang.Object clone() {
321 return new JournalArticleImageWrapper((JournalArticleImage)_journalArticleImage.clone());
322 }
323
324 public int compareTo(
325 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
326 return _journalArticleImage.compareTo(journalArticleImage);
327 }
328
329 @Override
330 public int hashCode() {
331 return _journalArticleImage.hashCode();
332 }
333
334 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalArticleImage> toCacheModel() {
335 return _journalArticleImage.toCacheModel();
336 }
337
338 public com.liferay.portlet.journal.model.JournalArticleImage toEscapedModel() {
339 return new JournalArticleImageWrapper(_journalArticleImage.toEscapedModel());
340 }
341
342 public com.liferay.portlet.journal.model.JournalArticleImage toUnescapedModel() {
343 return new JournalArticleImageWrapper(_journalArticleImage.toUnescapedModel());
344 }
345
346 @Override
347 public java.lang.String toString() {
348 return _journalArticleImage.toString();
349 }
350
351 public java.lang.String toXmlString() {
352 return _journalArticleImage.toXmlString();
353 }
354
355 public void persist()
356 throws com.liferay.portal.kernel.exception.SystemException {
357 _journalArticleImage.persist();
358 }
359
360 @Override
361 public boolean equals(Object obj) {
362 if (this == obj) {
363 return true;
364 }
365
366 if (!(obj instanceof JournalArticleImageWrapper)) {
367 return false;
368 }
369
370 JournalArticleImageWrapper journalArticleImageWrapper = (JournalArticleImageWrapper)obj;
371
372 if (Validator.equals(_journalArticleImage,
373 journalArticleImageWrapper._journalArticleImage)) {
374 return true;
375 }
376
377 return false;
378 }
379
380
383 public JournalArticleImage getWrappedJournalArticleImage() {
384 return _journalArticleImage;
385 }
386
387 public JournalArticleImage getWrappedModel() {
388 return _journalArticleImage;
389 }
390
391 public void resetOriginalValues() {
392 _journalArticleImage.resetOriginalValues();
393 }
394
395 private JournalArticleImage _journalArticleImage;
396 }