001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Validator;
020 import com.liferay.portal.model.ModelWrapper;
021
022 import java.util.HashMap;
023 import java.util.Map;
024
025
034 @ProviderType
035 public class DLSyncEventWrapper implements DLSyncEvent,
036 ModelWrapper<DLSyncEvent> {
037 public DLSyncEventWrapper(DLSyncEvent dlSyncEvent) {
038 _dlSyncEvent = dlSyncEvent;
039 }
040
041 @Override
042 public Class<?> getModelClass() {
043 return DLSyncEvent.class;
044 }
045
046 @Override
047 public String getModelClassName() {
048 return DLSyncEvent.class.getName();
049 }
050
051 @Override
052 public Map<String, Object> getModelAttributes() {
053 Map<String, Object> attributes = new HashMap<String, Object>();
054
055 attributes.put("syncEventId", getSyncEventId());
056 attributes.put("modifiedTime", getModifiedTime());
057 attributes.put("event", getEvent());
058 attributes.put("type", getType());
059 attributes.put("typePK", getTypePK());
060
061 return attributes;
062 }
063
064 @Override
065 public void setModelAttributes(Map<String, Object> attributes) {
066 Long syncEventId = (Long)attributes.get("syncEventId");
067
068 if (syncEventId != null) {
069 setSyncEventId(syncEventId);
070 }
071
072 Long modifiedTime = (Long)attributes.get("modifiedTime");
073
074 if (modifiedTime != null) {
075 setModifiedTime(modifiedTime);
076 }
077
078 String event = (String)attributes.get("event");
079
080 if (event != null) {
081 setEvent(event);
082 }
083
084 String type = (String)attributes.get("type");
085
086 if (type != null) {
087 setType(type);
088 }
089
090 Long typePK = (Long)attributes.get("typePK");
091
092 if (typePK != null) {
093 setTypePK(typePK);
094 }
095 }
096
097
102 @Override
103 public long getPrimaryKey() {
104 return _dlSyncEvent.getPrimaryKey();
105 }
106
107
112 @Override
113 public void setPrimaryKey(long primaryKey) {
114 _dlSyncEvent.setPrimaryKey(primaryKey);
115 }
116
117
122 @Override
123 public long getSyncEventId() {
124 return _dlSyncEvent.getSyncEventId();
125 }
126
127
132 @Override
133 public void setSyncEventId(long syncEventId) {
134 _dlSyncEvent.setSyncEventId(syncEventId);
135 }
136
137
142 @Override
143 public long getModifiedTime() {
144 return _dlSyncEvent.getModifiedTime();
145 }
146
147
152 @Override
153 public void setModifiedTime(long modifiedTime) {
154 _dlSyncEvent.setModifiedTime(modifiedTime);
155 }
156
157
162 @Override
163 public java.lang.String getEvent() {
164 return _dlSyncEvent.getEvent();
165 }
166
167
172 @Override
173 public void setEvent(java.lang.String event) {
174 _dlSyncEvent.setEvent(event);
175 }
176
177
182 @Override
183 public java.lang.String getType() {
184 return _dlSyncEvent.getType();
185 }
186
187
192 @Override
193 public void setType(java.lang.String type) {
194 _dlSyncEvent.setType(type);
195 }
196
197
202 @Override
203 public long getTypePK() {
204 return _dlSyncEvent.getTypePK();
205 }
206
207
212 @Override
213 public void setTypePK(long typePK) {
214 _dlSyncEvent.setTypePK(typePK);
215 }
216
217 @Override
218 public boolean isNew() {
219 return _dlSyncEvent.isNew();
220 }
221
222 @Override
223 public void setNew(boolean n) {
224 _dlSyncEvent.setNew(n);
225 }
226
227 @Override
228 public boolean isCachedModel() {
229 return _dlSyncEvent.isCachedModel();
230 }
231
232 @Override
233 public void setCachedModel(boolean cachedModel) {
234 _dlSyncEvent.setCachedModel(cachedModel);
235 }
236
237 @Override
238 public boolean isEscapedModel() {
239 return _dlSyncEvent.isEscapedModel();
240 }
241
242 @Override
243 public java.io.Serializable getPrimaryKeyObj() {
244 return _dlSyncEvent.getPrimaryKeyObj();
245 }
246
247 @Override
248 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
249 _dlSyncEvent.setPrimaryKeyObj(primaryKeyObj);
250 }
251
252 @Override
253 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
254 return _dlSyncEvent.getExpandoBridge();
255 }
256
257 @Override
258 public void setExpandoBridgeAttributes(
259 com.liferay.portal.model.BaseModel<?> baseModel) {
260 _dlSyncEvent.setExpandoBridgeAttributes(baseModel);
261 }
262
263 @Override
264 public void setExpandoBridgeAttributes(
265 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
266 _dlSyncEvent.setExpandoBridgeAttributes(expandoBridge);
267 }
268
269 @Override
270 public void setExpandoBridgeAttributes(
271 com.liferay.portal.service.ServiceContext serviceContext) {
272 _dlSyncEvent.setExpandoBridgeAttributes(serviceContext);
273 }
274
275 @Override
276 public java.lang.Object clone() {
277 return new DLSyncEventWrapper((DLSyncEvent)_dlSyncEvent.clone());
278 }
279
280 @Override
281 public int compareTo(
282 com.liferay.portlet.documentlibrary.model.DLSyncEvent dlSyncEvent) {
283 return _dlSyncEvent.compareTo(dlSyncEvent);
284 }
285
286 @Override
287 public int hashCode() {
288 return _dlSyncEvent.hashCode();
289 }
290
291 @Override
292 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLSyncEvent> toCacheModel() {
293 return _dlSyncEvent.toCacheModel();
294 }
295
296 @Override
297 public com.liferay.portlet.documentlibrary.model.DLSyncEvent toEscapedModel() {
298 return new DLSyncEventWrapper(_dlSyncEvent.toEscapedModel());
299 }
300
301 @Override
302 public com.liferay.portlet.documentlibrary.model.DLSyncEvent toUnescapedModel() {
303 return new DLSyncEventWrapper(_dlSyncEvent.toUnescapedModel());
304 }
305
306 @Override
307 public java.lang.String toString() {
308 return _dlSyncEvent.toString();
309 }
310
311 @Override
312 public java.lang.String toXmlString() {
313 return _dlSyncEvent.toXmlString();
314 }
315
316 @Override
317 public void persist()
318 throws com.liferay.portal.kernel.exception.SystemException {
319 _dlSyncEvent.persist();
320 }
321
322 @Override
323 public boolean equals(Object obj) {
324 if (this == obj) {
325 return true;
326 }
327
328 if (!(obj instanceof DLSyncEventWrapper)) {
329 return false;
330 }
331
332 DLSyncEventWrapper dlSyncEventWrapper = (DLSyncEventWrapper)obj;
333
334 if (Validator.equals(_dlSyncEvent, dlSyncEventWrapper._dlSyncEvent)) {
335 return true;
336 }
337
338 return false;
339 }
340
341
344 public DLSyncEvent getWrappedDLSyncEvent() {
345 return _dlSyncEvent;
346 }
347
348 @Override
349 public DLSyncEvent getWrappedModel() {
350 return _dlSyncEvent;
351 }
352
353 @Override
354 public void resetOriginalValues() {
355 _dlSyncEvent.resetOriginalValues();
356 }
357
358 private DLSyncEvent _dlSyncEvent;
359 }