001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.model.impl;
016    
017    import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018    import com.liferay.portal.kernel.json.JSON;
019    import com.liferay.portal.kernel.util.GetterUtil;
020    import com.liferay.portal.kernel.util.ProxyUtil;
021    import com.liferay.portal.kernel.util.StringBundler;
022    import com.liferay.portal.kernel.util.StringPool;
023    import com.liferay.portal.model.CacheModel;
024    import com.liferay.portal.model.impl.BaseModelImpl;
025    import com.liferay.portal.service.ServiceContext;
026    
027    import com.liferay.portlet.documentlibrary.model.DLSync;
028    import com.liferay.portlet.documentlibrary.model.DLSyncModel;
029    import com.liferay.portlet.documentlibrary.model.DLSyncSoap;
030    import com.liferay.portlet.expando.model.ExpandoBridge;
031    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
032    
033    import java.io.Serializable;
034    
035    import java.sql.Types;
036    
037    import java.util.ArrayList;
038    import java.util.HashMap;
039    import java.util.List;
040    import java.util.Map;
041    
042    /**
043     * The base model implementation for the DLSync service. Represents a row in the "DLSync" database table, with each column mapped to a property of this class.
044     *
045     * <p>
046     * This implementation and its corresponding interface {@link com.liferay.portlet.documentlibrary.model.DLSyncModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link DLSyncImpl}.
047     * </p>
048     *
049     * @author Brian Wing Shun Chan
050     * @see DLSyncImpl
051     * @see com.liferay.portlet.documentlibrary.model.DLSync
052     * @see com.liferay.portlet.documentlibrary.model.DLSyncModel
053     * @generated
054     */
055    @JSON(strict = true)
056    public class DLSyncModelImpl extends BaseModelImpl<DLSync>
057            implements DLSyncModel {
058            /*
059             * NOTE FOR DEVELOPERS:
060             *
061             * Never modify or reference this class directly. All methods that expect a d l sync model instance should use the {@link com.liferay.portlet.documentlibrary.model.DLSync} interface instead.
062             */
063            public static final String TABLE_NAME = "DLSync";
064            public static final Object[][] TABLE_COLUMNS = {
065                            { "syncId", Types.BIGINT },
066                            { "companyId", Types.BIGINT },
067                            { "createDate", Types.BIGINT },
068                            { "modifiedDate", Types.BIGINT },
069                            { "fileId", Types.BIGINT },
070                            { "fileUuid", Types.VARCHAR },
071                            { "repositoryId", Types.BIGINT },
072                            { "parentFolderId", Types.BIGINT },
073                            { "name", Types.VARCHAR },
074                            { "description", Types.VARCHAR },
075                            { "event", Types.VARCHAR },
076                            { "type_", Types.VARCHAR },
077                            { "version", Types.VARCHAR }
078                    };
079            public static final String TABLE_SQL_CREATE = "create table DLSync (syncId LONG not null primary key,companyId LONG,createDate LONG,modifiedDate LONG,fileId LONG,fileUuid VARCHAR(75) null,repositoryId LONG,parentFolderId LONG,name VARCHAR(255) null,description STRING null,event VARCHAR(75) null,type_ VARCHAR(75) null,version VARCHAR(75) null)";
080            public static final String TABLE_SQL_DROP = "drop table DLSync";
081            public static final String ORDER_BY_JPQL = " ORDER BY dlSync.companyId ASC, dlSync.repositoryId ASC, dlSync.modifiedDate ASC";
082            public static final String ORDER_BY_SQL = " ORDER BY DLSync.companyId ASC, DLSync.repositoryId ASC, DLSync.modifiedDate ASC";
083            public static final String DATA_SOURCE = "liferayDataSource";
084            public static final String SESSION_FACTORY = "liferaySessionFactory";
085            public static final String TX_MANAGER = "liferayTransactionManager";
086            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
087                                    "value.object.entity.cache.enabled.com.liferay.portlet.documentlibrary.model.DLSync"),
088                            true);
089            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
090                                    "value.object.finder.cache.enabled.com.liferay.portlet.documentlibrary.model.DLSync"),
091                            true);
092            public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
093                                    "value.object.column.bitmask.enabled.com.liferay.portlet.documentlibrary.model.DLSync"),
094                            true);
095            public static long COMPANYID_COLUMN_BITMASK = 1L;
096            public static long FILEID_COLUMN_BITMASK = 2L;
097            public static long MODIFIEDDATE_COLUMN_BITMASK = 4L;
098            public static long REPOSITORYID_COLUMN_BITMASK = 8L;
099    
100            /**
101             * Converts the soap model instance into a normal model instance.
102             *
103             * @param soapModel the soap model instance to convert
104             * @return the normal model instance
105             */
106            public static DLSync toModel(DLSyncSoap soapModel) {
107                    if (soapModel == null) {
108                            return null;
109                    }
110    
111                    DLSync model = new DLSyncImpl();
112    
113                    model.setSyncId(soapModel.getSyncId());
114                    model.setCompanyId(soapModel.getCompanyId());
115                    model.setCreateDate(soapModel.getCreateDate());
116                    model.setModifiedDate(soapModel.getModifiedDate());
117                    model.setFileId(soapModel.getFileId());
118                    model.setFileUuid(soapModel.getFileUuid());
119                    model.setRepositoryId(soapModel.getRepositoryId());
120                    model.setParentFolderId(soapModel.getParentFolderId());
121                    model.setName(soapModel.getName());
122                    model.setDescription(soapModel.getDescription());
123                    model.setEvent(soapModel.getEvent());
124                    model.setType(soapModel.getType());
125                    model.setVersion(soapModel.getVersion());
126    
127                    return model;
128            }
129    
130            /**
131             * Converts the soap model instances into normal model instances.
132             *
133             * @param soapModels the soap model instances to convert
134             * @return the normal model instances
135             */
136            public static List<DLSync> toModels(DLSyncSoap[] soapModels) {
137                    if (soapModels == null) {
138                            return null;
139                    }
140    
141                    List<DLSync> models = new ArrayList<DLSync>(soapModels.length);
142    
143                    for (DLSyncSoap soapModel : soapModels) {
144                            models.add(toModel(soapModel));
145                    }
146    
147                    return models;
148            }
149    
150            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
151                                    "lock.expiration.time.com.liferay.portlet.documentlibrary.model.DLSync"));
152    
153            public DLSyncModelImpl() {
154            }
155    
156            public long getPrimaryKey() {
157                    return _syncId;
158            }
159    
160            public void setPrimaryKey(long primaryKey) {
161                    setSyncId(primaryKey);
162            }
163    
164            public Serializable getPrimaryKeyObj() {
165                    return _syncId;
166            }
167    
168            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
169                    setPrimaryKey(((Long)primaryKeyObj).longValue());
170            }
171    
172            public Class<?> getModelClass() {
173                    return DLSync.class;
174            }
175    
176            public String getModelClassName() {
177                    return DLSync.class.getName();
178            }
179    
180            @Override
181            public Map<String, Object> getModelAttributes() {
182                    Map<String, Object> attributes = new HashMap<String, Object>();
183    
184                    attributes.put("syncId", getSyncId());
185                    attributes.put("companyId", getCompanyId());
186                    attributes.put("createDate", getCreateDate());
187                    attributes.put("modifiedDate", getModifiedDate());
188                    attributes.put("fileId", getFileId());
189                    attributes.put("fileUuid", getFileUuid());
190                    attributes.put("repositoryId", getRepositoryId());
191                    attributes.put("parentFolderId", getParentFolderId());
192                    attributes.put("name", getName());
193                    attributes.put("description", getDescription());
194                    attributes.put("event", getEvent());
195                    attributes.put("type", getType());
196                    attributes.put("version", getVersion());
197    
198                    return attributes;
199            }
200    
201            @Override
202            public void setModelAttributes(Map<String, Object> attributes) {
203                    Long syncId = (Long)attributes.get("syncId");
204    
205                    if (syncId != null) {
206                            setSyncId(syncId);
207                    }
208    
209                    Long companyId = (Long)attributes.get("companyId");
210    
211                    if (companyId != null) {
212                            setCompanyId(companyId);
213                    }
214    
215                    Long createDate = (Long)attributes.get("createDate");
216    
217                    if (createDate != null) {
218                            setCreateDate(createDate);
219                    }
220    
221                    Long modifiedDate = (Long)attributes.get("modifiedDate");
222    
223                    if (modifiedDate != null) {
224                            setModifiedDate(modifiedDate);
225                    }
226    
227                    Long fileId = (Long)attributes.get("fileId");
228    
229                    if (fileId != null) {
230                            setFileId(fileId);
231                    }
232    
233                    String fileUuid = (String)attributes.get("fileUuid");
234    
235                    if (fileUuid != null) {
236                            setFileUuid(fileUuid);
237                    }
238    
239                    Long repositoryId = (Long)attributes.get("repositoryId");
240    
241                    if (repositoryId != null) {
242                            setRepositoryId(repositoryId);
243                    }
244    
245                    Long parentFolderId = (Long)attributes.get("parentFolderId");
246    
247                    if (parentFolderId != null) {
248                            setParentFolderId(parentFolderId);
249                    }
250    
251                    String name = (String)attributes.get("name");
252    
253                    if (name != null) {
254                            setName(name);
255                    }
256    
257                    String description = (String)attributes.get("description");
258    
259                    if (description != null) {
260                            setDescription(description);
261                    }
262    
263                    String event = (String)attributes.get("event");
264    
265                    if (event != null) {
266                            setEvent(event);
267                    }
268    
269                    String type = (String)attributes.get("type");
270    
271                    if (type != null) {
272                            setType(type);
273                    }
274    
275                    String version = (String)attributes.get("version");
276    
277                    if (version != null) {
278                            setVersion(version);
279                    }
280            }
281    
282            @JSON
283            public long getSyncId() {
284                    return _syncId;
285            }
286    
287            public void setSyncId(long syncId) {
288                    _syncId = syncId;
289            }
290    
291            @JSON
292            public long getCompanyId() {
293                    return _companyId;
294            }
295    
296            public void setCompanyId(long companyId) {
297                    _columnBitmask = -1L;
298    
299                    if (!_setOriginalCompanyId) {
300                            _setOriginalCompanyId = true;
301    
302                            _originalCompanyId = _companyId;
303                    }
304    
305                    _companyId = companyId;
306            }
307    
308            public long getOriginalCompanyId() {
309                    return _originalCompanyId;
310            }
311    
312            @JSON
313            public long getCreateDate() {
314                    return _createDate;
315            }
316    
317            public void setCreateDate(long createDate) {
318                    _createDate = createDate;
319            }
320    
321            @JSON
322            public long getModifiedDate() {
323                    return _modifiedDate;
324            }
325    
326            public void setModifiedDate(long modifiedDate) {
327                    _columnBitmask = -1L;
328    
329                    if (!_setOriginalModifiedDate) {
330                            _setOriginalModifiedDate = true;
331    
332                            _originalModifiedDate = _modifiedDate;
333                    }
334    
335                    _modifiedDate = modifiedDate;
336            }
337    
338            public long getOriginalModifiedDate() {
339                    return _originalModifiedDate;
340            }
341    
342            @JSON
343            public long getFileId() {
344                    return _fileId;
345            }
346    
347            public void setFileId(long fileId) {
348                    _columnBitmask |= FILEID_COLUMN_BITMASK;
349    
350                    if (!_setOriginalFileId) {
351                            _setOriginalFileId = true;
352    
353                            _originalFileId = _fileId;
354                    }
355    
356                    _fileId = fileId;
357            }
358    
359            public long getOriginalFileId() {
360                    return _originalFileId;
361            }
362    
363            @JSON
364            public String getFileUuid() {
365                    if (_fileUuid == null) {
366                            return StringPool.BLANK;
367                    }
368                    else {
369                            return _fileUuid;
370                    }
371            }
372    
373            public void setFileUuid(String fileUuid) {
374                    _fileUuid = fileUuid;
375            }
376    
377            @JSON
378            public long getRepositoryId() {
379                    return _repositoryId;
380            }
381    
382            public void setRepositoryId(long repositoryId) {
383                    _columnBitmask = -1L;
384    
385                    if (!_setOriginalRepositoryId) {
386                            _setOriginalRepositoryId = true;
387    
388                            _originalRepositoryId = _repositoryId;
389                    }
390    
391                    _repositoryId = repositoryId;
392            }
393    
394            public long getOriginalRepositoryId() {
395                    return _originalRepositoryId;
396            }
397    
398            @JSON
399            public long getParentFolderId() {
400                    return _parentFolderId;
401            }
402    
403            public void setParentFolderId(long parentFolderId) {
404                    _parentFolderId = parentFolderId;
405            }
406    
407            @JSON
408            public String getName() {
409                    if (_name == null) {
410                            return StringPool.BLANK;
411                    }
412                    else {
413                            return _name;
414                    }
415            }
416    
417            public void setName(String name) {
418                    _name = name;
419            }
420    
421            @JSON
422            public String getDescription() {
423                    if (_description == null) {
424                            return StringPool.BLANK;
425                    }
426                    else {
427                            return _description;
428                    }
429            }
430    
431            public void setDescription(String description) {
432                    _description = description;
433            }
434    
435            @JSON
436            public String getEvent() {
437                    if (_event == null) {
438                            return StringPool.BLANK;
439                    }
440                    else {
441                            return _event;
442                    }
443            }
444    
445            public void setEvent(String event) {
446                    _event = event;
447            }
448    
449            @JSON
450            public String getType() {
451                    if (_type == null) {
452                            return StringPool.BLANK;
453                    }
454                    else {
455                            return _type;
456                    }
457            }
458    
459            public void setType(String type) {
460                    _type = type;
461            }
462    
463            @JSON
464            public String getVersion() {
465                    if (_version == null) {
466                            return StringPool.BLANK;
467                    }
468                    else {
469                            return _version;
470                    }
471            }
472    
473            public void setVersion(String version) {
474                    _version = version;
475            }
476    
477            public long getColumnBitmask() {
478                    return _columnBitmask;
479            }
480    
481            @Override
482            public ExpandoBridge getExpandoBridge() {
483                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
484                            DLSync.class.getName(), getPrimaryKey());
485            }
486    
487            @Override
488            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
489                    ExpandoBridge expandoBridge = getExpandoBridge();
490    
491                    expandoBridge.setAttributes(serviceContext);
492            }
493    
494            @Override
495            public DLSync toEscapedModel() {
496                    if (_escapedModel == null) {
497                            _escapedModel = (DLSync)ProxyUtil.newProxyInstance(_classLoader,
498                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
499                    }
500    
501                    return _escapedModel;
502            }
503    
504            @Override
505            public Object clone() {
506                    DLSyncImpl dlSyncImpl = new DLSyncImpl();
507    
508                    dlSyncImpl.setSyncId(getSyncId());
509                    dlSyncImpl.setCompanyId(getCompanyId());
510                    dlSyncImpl.setCreateDate(getCreateDate());
511                    dlSyncImpl.setModifiedDate(getModifiedDate());
512                    dlSyncImpl.setFileId(getFileId());
513                    dlSyncImpl.setFileUuid(getFileUuid());
514                    dlSyncImpl.setRepositoryId(getRepositoryId());
515                    dlSyncImpl.setParentFolderId(getParentFolderId());
516                    dlSyncImpl.setName(getName());
517                    dlSyncImpl.setDescription(getDescription());
518                    dlSyncImpl.setEvent(getEvent());
519                    dlSyncImpl.setType(getType());
520                    dlSyncImpl.setVersion(getVersion());
521    
522                    dlSyncImpl.resetOriginalValues();
523    
524                    return dlSyncImpl;
525            }
526    
527            public int compareTo(DLSync dlSync) {
528                    int value = 0;
529    
530                    if (getCompanyId() < dlSync.getCompanyId()) {
531                            value = -1;
532                    }
533                    else if (getCompanyId() > dlSync.getCompanyId()) {
534                            value = 1;
535                    }
536                    else {
537                            value = 0;
538                    }
539    
540                    if (value != 0) {
541                            return value;
542                    }
543    
544                    if (getRepositoryId() < dlSync.getRepositoryId()) {
545                            value = -1;
546                    }
547                    else if (getRepositoryId() > dlSync.getRepositoryId()) {
548                            value = 1;
549                    }
550                    else {
551                            value = 0;
552                    }
553    
554                    if (value != 0) {
555                            return value;
556                    }
557    
558                    if (getModifiedDate() < dlSync.getModifiedDate()) {
559                            value = -1;
560                    }
561                    else if (getModifiedDate() > dlSync.getModifiedDate()) {
562                            value = 1;
563                    }
564                    else {
565                            value = 0;
566                    }
567    
568                    if (value != 0) {
569                            return value;
570                    }
571    
572                    return 0;
573            }
574    
575            @Override
576            public boolean equals(Object obj) {
577                    if (obj == null) {
578                            return false;
579                    }
580    
581                    DLSync dlSync = null;
582    
583                    try {
584                            dlSync = (DLSync)obj;
585                    }
586                    catch (ClassCastException cce) {
587                            return false;
588                    }
589    
590                    long primaryKey = dlSync.getPrimaryKey();
591    
592                    if (getPrimaryKey() == primaryKey) {
593                            return true;
594                    }
595                    else {
596                            return false;
597                    }
598            }
599    
600            @Override
601            public int hashCode() {
602                    return (int)getPrimaryKey();
603            }
604    
605            @Override
606            public void resetOriginalValues() {
607                    DLSyncModelImpl dlSyncModelImpl = this;
608    
609                    dlSyncModelImpl._originalCompanyId = dlSyncModelImpl._companyId;
610    
611                    dlSyncModelImpl._setOriginalCompanyId = false;
612    
613                    dlSyncModelImpl._originalModifiedDate = dlSyncModelImpl._modifiedDate;
614    
615                    dlSyncModelImpl._setOriginalModifiedDate = false;
616    
617                    dlSyncModelImpl._originalFileId = dlSyncModelImpl._fileId;
618    
619                    dlSyncModelImpl._setOriginalFileId = false;
620    
621                    dlSyncModelImpl._originalRepositoryId = dlSyncModelImpl._repositoryId;
622    
623                    dlSyncModelImpl._setOriginalRepositoryId = false;
624    
625                    dlSyncModelImpl._columnBitmask = 0;
626            }
627    
628            @Override
629            public CacheModel<DLSync> toCacheModel() {
630                    DLSyncCacheModel dlSyncCacheModel = new DLSyncCacheModel();
631    
632                    dlSyncCacheModel.syncId = getSyncId();
633    
634                    dlSyncCacheModel.companyId = getCompanyId();
635    
636                    dlSyncCacheModel.createDate = getCreateDate();
637    
638                    dlSyncCacheModel.modifiedDate = getModifiedDate();
639    
640                    dlSyncCacheModel.fileId = getFileId();
641    
642                    dlSyncCacheModel.fileUuid = getFileUuid();
643    
644                    String fileUuid = dlSyncCacheModel.fileUuid;
645    
646                    if ((fileUuid != null) && (fileUuid.length() == 0)) {
647                            dlSyncCacheModel.fileUuid = null;
648                    }
649    
650                    dlSyncCacheModel.repositoryId = getRepositoryId();
651    
652                    dlSyncCacheModel.parentFolderId = getParentFolderId();
653    
654                    dlSyncCacheModel.name = getName();
655    
656                    String name = dlSyncCacheModel.name;
657    
658                    if ((name != null) && (name.length() == 0)) {
659                            dlSyncCacheModel.name = null;
660                    }
661    
662                    dlSyncCacheModel.description = getDescription();
663    
664                    String description = dlSyncCacheModel.description;
665    
666                    if ((description != null) && (description.length() == 0)) {
667                            dlSyncCacheModel.description = null;
668                    }
669    
670                    dlSyncCacheModel.event = getEvent();
671    
672                    String event = dlSyncCacheModel.event;
673    
674                    if ((event != null) && (event.length() == 0)) {
675                            dlSyncCacheModel.event = null;
676                    }
677    
678                    dlSyncCacheModel.type = getType();
679    
680                    String type = dlSyncCacheModel.type;
681    
682                    if ((type != null) && (type.length() == 0)) {
683                            dlSyncCacheModel.type = null;
684                    }
685    
686                    dlSyncCacheModel.version = getVersion();
687    
688                    String version = dlSyncCacheModel.version;
689    
690                    if ((version != null) && (version.length() == 0)) {
691                            dlSyncCacheModel.version = null;
692                    }
693    
694                    return dlSyncCacheModel;
695            }
696    
697            @Override
698            public String toString() {
699                    StringBundler sb = new StringBundler(27);
700    
701                    sb.append("{syncId=");
702                    sb.append(getSyncId());
703                    sb.append(", companyId=");
704                    sb.append(getCompanyId());
705                    sb.append(", createDate=");
706                    sb.append(getCreateDate());
707                    sb.append(", modifiedDate=");
708                    sb.append(getModifiedDate());
709                    sb.append(", fileId=");
710                    sb.append(getFileId());
711                    sb.append(", fileUuid=");
712                    sb.append(getFileUuid());
713                    sb.append(", repositoryId=");
714                    sb.append(getRepositoryId());
715                    sb.append(", parentFolderId=");
716                    sb.append(getParentFolderId());
717                    sb.append(", name=");
718                    sb.append(getName());
719                    sb.append(", description=");
720                    sb.append(getDescription());
721                    sb.append(", event=");
722                    sb.append(getEvent());
723                    sb.append(", type=");
724                    sb.append(getType());
725                    sb.append(", version=");
726                    sb.append(getVersion());
727                    sb.append("}");
728    
729                    return sb.toString();
730            }
731    
732            public String toXmlString() {
733                    StringBundler sb = new StringBundler(43);
734    
735                    sb.append("<model><model-name>");
736                    sb.append("com.liferay.portlet.documentlibrary.model.DLSync");
737                    sb.append("</model-name>");
738    
739                    sb.append(
740                            "<column><column-name>syncId</column-name><column-value><![CDATA[");
741                    sb.append(getSyncId());
742                    sb.append("]]></column-value></column>");
743                    sb.append(
744                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
745                    sb.append(getCompanyId());
746                    sb.append("]]></column-value></column>");
747                    sb.append(
748                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
749                    sb.append(getCreateDate());
750                    sb.append("]]></column-value></column>");
751                    sb.append(
752                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
753                    sb.append(getModifiedDate());
754                    sb.append("]]></column-value></column>");
755                    sb.append(
756                            "<column><column-name>fileId</column-name><column-value><![CDATA[");
757                    sb.append(getFileId());
758                    sb.append("]]></column-value></column>");
759                    sb.append(
760                            "<column><column-name>fileUuid</column-name><column-value><![CDATA[");
761                    sb.append(getFileUuid());
762                    sb.append("]]></column-value></column>");
763                    sb.append(
764                            "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
765                    sb.append(getRepositoryId());
766                    sb.append("]]></column-value></column>");
767                    sb.append(
768                            "<column><column-name>parentFolderId</column-name><column-value><![CDATA[");
769                    sb.append(getParentFolderId());
770                    sb.append("]]></column-value></column>");
771                    sb.append(
772                            "<column><column-name>name</column-name><column-value><![CDATA[");
773                    sb.append(getName());
774                    sb.append("]]></column-value></column>");
775                    sb.append(
776                            "<column><column-name>description</column-name><column-value><![CDATA[");
777                    sb.append(getDescription());
778                    sb.append("]]></column-value></column>");
779                    sb.append(
780                            "<column><column-name>event</column-name><column-value><![CDATA[");
781                    sb.append(getEvent());
782                    sb.append("]]></column-value></column>");
783                    sb.append(
784                            "<column><column-name>type</column-name><column-value><![CDATA[");
785                    sb.append(getType());
786                    sb.append("]]></column-value></column>");
787                    sb.append(
788                            "<column><column-name>version</column-name><column-value><![CDATA[");
789                    sb.append(getVersion());
790                    sb.append("]]></column-value></column>");
791    
792                    sb.append("</model>");
793    
794                    return sb.toString();
795            }
796    
797            private static ClassLoader _classLoader = DLSync.class.getClassLoader();
798            private static Class<?>[] _escapedModelInterfaces = new Class[] { DLSync.class };
799            private long _syncId;
800            private long _companyId;
801            private long _originalCompanyId;
802            private boolean _setOriginalCompanyId;
803            private long _createDate;
804            private long _modifiedDate;
805            private long _originalModifiedDate;
806            private boolean _setOriginalModifiedDate;
807            private long _fileId;
808            private long _originalFileId;
809            private boolean _setOriginalFileId;
810            private String _fileUuid;
811            private long _repositoryId;
812            private long _originalRepositoryId;
813            private boolean _setOriginalRepositoryId;
814            private long _parentFolderId;
815            private String _name;
816            private String _description;
817            private String _event;
818            private String _type;
819            private String _version;
820            private long _columnBitmask;
821            private DLSync _escapedModel;
822    }