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