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.portal.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.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.kernel.util.Validator;
024    import com.liferay.portal.model.CacheModel;
025    import com.liferay.portal.model.WorkflowDefinitionLink;
026    import com.liferay.portal.model.WorkflowDefinitionLinkModel;
027    import com.liferay.portal.service.ServiceContext;
028    import com.liferay.portal.util.PortalUtil;
029    
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.Date;
038    import java.util.HashMap;
039    import java.util.Map;
040    
041    /**
042     * The base model implementation for the WorkflowDefinitionLink service. Represents a row in the "WorkflowDefinitionLink" database table, with each column mapped to a property of this class.
043     *
044     * <p>
045     * This implementation and its corresponding interface {@link com.liferay.portal.model.WorkflowDefinitionLinkModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link WorkflowDefinitionLinkImpl}.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see WorkflowDefinitionLinkImpl
050     * @see com.liferay.portal.model.WorkflowDefinitionLink
051     * @see com.liferay.portal.model.WorkflowDefinitionLinkModel
052     * @generated
053     */
054    public class WorkflowDefinitionLinkModelImpl extends BaseModelImpl<WorkflowDefinitionLink>
055            implements WorkflowDefinitionLinkModel {
056            /*
057             * NOTE FOR DEVELOPERS:
058             *
059             * Never modify or reference this class directly. All methods that expect a workflow definition link model instance should use the {@link com.liferay.portal.model.WorkflowDefinitionLink} interface instead.
060             */
061            public static final String TABLE_NAME = "WorkflowDefinitionLink";
062            public static final Object[][] TABLE_COLUMNS = {
063                            { "workflowDefinitionLinkId", Types.BIGINT },
064                            { "groupId", Types.BIGINT },
065                            { "companyId", Types.BIGINT },
066                            { "userId", Types.BIGINT },
067                            { "userName", Types.VARCHAR },
068                            { "createDate", Types.TIMESTAMP },
069                            { "modifiedDate", Types.TIMESTAMP },
070                            { "classNameId", Types.BIGINT },
071                            { "classPK", Types.BIGINT },
072                            { "typePK", Types.BIGINT },
073                            { "workflowDefinitionName", Types.VARCHAR },
074                            { "workflowDefinitionVersion", Types.INTEGER }
075                    };
076            public static final String TABLE_SQL_CREATE = "create table WorkflowDefinitionLink (workflowDefinitionLinkId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,typePK LONG,workflowDefinitionName VARCHAR(75) null,workflowDefinitionVersion INTEGER)";
077            public static final String TABLE_SQL_DROP = "drop table WorkflowDefinitionLink";
078            public static final String ORDER_BY_JPQL = " ORDER BY workflowDefinitionLink.workflowDefinitionName ASC";
079            public static final String ORDER_BY_SQL = " ORDER BY WorkflowDefinitionLink.workflowDefinitionName ASC";
080            public static final String DATA_SOURCE = "liferayDataSource";
081            public static final String SESSION_FACTORY = "liferaySessionFactory";
082            public static final String TX_MANAGER = "liferayTransactionManager";
083            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
084                                    "value.object.entity.cache.enabled.com.liferay.portal.model.WorkflowDefinitionLink"),
085                            true);
086            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
087                                    "value.object.finder.cache.enabled.com.liferay.portal.model.WorkflowDefinitionLink"),
088                            true);
089            public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
090                                    "value.object.column.bitmask.enabled.com.liferay.portal.model.WorkflowDefinitionLink"),
091                            true);
092            public static long CLASSNAMEID_COLUMN_BITMASK = 1L;
093            public static long CLASSPK_COLUMN_BITMASK = 2L;
094            public static long COMPANYID_COLUMN_BITMASK = 4L;
095            public static long GROUPID_COLUMN_BITMASK = 8L;
096            public static long TYPEPK_COLUMN_BITMASK = 16L;
097            public static long WORKFLOWDEFINITIONNAME_COLUMN_BITMASK = 32L;
098            public static long WORKFLOWDEFINITIONVERSION_COLUMN_BITMASK = 64L;
099            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
100                                    "lock.expiration.time.com.liferay.portal.model.WorkflowDefinitionLink"));
101    
102            public WorkflowDefinitionLinkModelImpl() {
103            }
104    
105            public long getPrimaryKey() {
106                    return _workflowDefinitionLinkId;
107            }
108    
109            public void setPrimaryKey(long primaryKey) {
110                    setWorkflowDefinitionLinkId(primaryKey);
111            }
112    
113            public Serializable getPrimaryKeyObj() {
114                    return new Long(_workflowDefinitionLinkId);
115            }
116    
117            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
118                    setPrimaryKey(((Long)primaryKeyObj).longValue());
119            }
120    
121            public Class<?> getModelClass() {
122                    return WorkflowDefinitionLink.class;
123            }
124    
125            public String getModelClassName() {
126                    return WorkflowDefinitionLink.class.getName();
127            }
128    
129            @Override
130            public Map<String, Object> getModelAttributes() {
131                    Map<String, Object> attributes = new HashMap<String, Object>();
132    
133                    attributes.put("workflowDefinitionLinkId", getWorkflowDefinitionLinkId());
134                    attributes.put("groupId", getGroupId());
135                    attributes.put("companyId", getCompanyId());
136                    attributes.put("userId", getUserId());
137                    attributes.put("userName", getUserName());
138                    attributes.put("createDate", getCreateDate());
139                    attributes.put("modifiedDate", getModifiedDate());
140                    attributes.put("classNameId", getClassNameId());
141                    attributes.put("classPK", getClassPK());
142                    attributes.put("typePK", getTypePK());
143                    attributes.put("workflowDefinitionName", getWorkflowDefinitionName());
144                    attributes.put("workflowDefinitionVersion",
145                            getWorkflowDefinitionVersion());
146    
147                    return attributes;
148            }
149    
150            @Override
151            public void setModelAttributes(Map<String, Object> attributes) {
152                    Long workflowDefinitionLinkId = (Long)attributes.get(
153                                    "workflowDefinitionLinkId");
154    
155                    if (workflowDefinitionLinkId != null) {
156                            setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
157                    }
158    
159                    Long groupId = (Long)attributes.get("groupId");
160    
161                    if (groupId != null) {
162                            setGroupId(groupId);
163                    }
164    
165                    Long companyId = (Long)attributes.get("companyId");
166    
167                    if (companyId != null) {
168                            setCompanyId(companyId);
169                    }
170    
171                    Long userId = (Long)attributes.get("userId");
172    
173                    if (userId != null) {
174                            setUserId(userId);
175                    }
176    
177                    String userName = (String)attributes.get("userName");
178    
179                    if (userName != null) {
180                            setUserName(userName);
181                    }
182    
183                    Date createDate = (Date)attributes.get("createDate");
184    
185                    if (createDate != null) {
186                            setCreateDate(createDate);
187                    }
188    
189                    Date modifiedDate = (Date)attributes.get("modifiedDate");
190    
191                    if (modifiedDate != null) {
192                            setModifiedDate(modifiedDate);
193                    }
194    
195                    Long classNameId = (Long)attributes.get("classNameId");
196    
197                    if (classNameId != null) {
198                            setClassNameId(classNameId);
199                    }
200    
201                    Long classPK = (Long)attributes.get("classPK");
202    
203                    if (classPK != null) {
204                            setClassPK(classPK);
205                    }
206    
207                    Long typePK = (Long)attributes.get("typePK");
208    
209                    if (typePK != null) {
210                            setTypePK(typePK);
211                    }
212    
213                    String workflowDefinitionName = (String)attributes.get(
214                                    "workflowDefinitionName");
215    
216                    if (workflowDefinitionName != null) {
217                            setWorkflowDefinitionName(workflowDefinitionName);
218                    }
219    
220                    Integer workflowDefinitionVersion = (Integer)attributes.get(
221                                    "workflowDefinitionVersion");
222    
223                    if (workflowDefinitionVersion != null) {
224                            setWorkflowDefinitionVersion(workflowDefinitionVersion);
225                    }
226            }
227    
228            public long getWorkflowDefinitionLinkId() {
229                    return _workflowDefinitionLinkId;
230            }
231    
232            public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
233                    _workflowDefinitionLinkId = workflowDefinitionLinkId;
234            }
235    
236            public long getGroupId() {
237                    return _groupId;
238            }
239    
240            public void setGroupId(long groupId) {
241                    _columnBitmask |= GROUPID_COLUMN_BITMASK;
242    
243                    if (!_setOriginalGroupId) {
244                            _setOriginalGroupId = true;
245    
246                            _originalGroupId = _groupId;
247                    }
248    
249                    _groupId = groupId;
250            }
251    
252            public long getOriginalGroupId() {
253                    return _originalGroupId;
254            }
255    
256            public long getCompanyId() {
257                    return _companyId;
258            }
259    
260            public void setCompanyId(long companyId) {
261                    _columnBitmask |= COMPANYID_COLUMN_BITMASK;
262    
263                    if (!_setOriginalCompanyId) {
264                            _setOriginalCompanyId = true;
265    
266                            _originalCompanyId = _companyId;
267                    }
268    
269                    _companyId = companyId;
270            }
271    
272            public long getOriginalCompanyId() {
273                    return _originalCompanyId;
274            }
275    
276            public long getUserId() {
277                    return _userId;
278            }
279    
280            public void setUserId(long userId) {
281                    _userId = userId;
282            }
283    
284            public String getUserUuid() throws SystemException {
285                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
286            }
287    
288            public void setUserUuid(String userUuid) {
289                    _userUuid = userUuid;
290            }
291    
292            public String getUserName() {
293                    if (_userName == null) {
294                            return StringPool.BLANK;
295                    }
296                    else {
297                            return _userName;
298                    }
299            }
300    
301            public void setUserName(String userName) {
302                    _userName = userName;
303            }
304    
305            public Date getCreateDate() {
306                    return _createDate;
307            }
308    
309            public void setCreateDate(Date createDate) {
310                    _createDate = createDate;
311            }
312    
313            public Date getModifiedDate() {
314                    return _modifiedDate;
315            }
316    
317            public void setModifiedDate(Date modifiedDate) {
318                    _modifiedDate = modifiedDate;
319            }
320    
321            public String getClassName() {
322                    if (getClassNameId() <= 0) {
323                            return StringPool.BLANK;
324                    }
325    
326                    return PortalUtil.getClassName(getClassNameId());
327            }
328    
329            public void setClassName(String className) {
330                    long classNameId = 0;
331    
332                    if (Validator.isNotNull(className)) {
333                            classNameId = PortalUtil.getClassNameId(className);
334                    }
335    
336                    setClassNameId(classNameId);
337            }
338    
339            public long getClassNameId() {
340                    return _classNameId;
341            }
342    
343            public void setClassNameId(long classNameId) {
344                    _columnBitmask |= CLASSNAMEID_COLUMN_BITMASK;
345    
346                    if (!_setOriginalClassNameId) {
347                            _setOriginalClassNameId = true;
348    
349                            _originalClassNameId = _classNameId;
350                    }
351    
352                    _classNameId = classNameId;
353            }
354    
355            public long getOriginalClassNameId() {
356                    return _originalClassNameId;
357            }
358    
359            public long getClassPK() {
360                    return _classPK;
361            }
362    
363            public void setClassPK(long classPK) {
364                    _columnBitmask |= CLASSPK_COLUMN_BITMASK;
365    
366                    if (!_setOriginalClassPK) {
367                            _setOriginalClassPK = true;
368    
369                            _originalClassPK = _classPK;
370                    }
371    
372                    _classPK = classPK;
373            }
374    
375            public long getOriginalClassPK() {
376                    return _originalClassPK;
377            }
378    
379            public long getTypePK() {
380                    return _typePK;
381            }
382    
383            public void setTypePK(long typePK) {
384                    _columnBitmask |= TYPEPK_COLUMN_BITMASK;
385    
386                    if (!_setOriginalTypePK) {
387                            _setOriginalTypePK = true;
388    
389                            _originalTypePK = _typePK;
390                    }
391    
392                    _typePK = typePK;
393            }
394    
395            public long getOriginalTypePK() {
396                    return _originalTypePK;
397            }
398    
399            public String getWorkflowDefinitionName() {
400                    if (_workflowDefinitionName == null) {
401                            return StringPool.BLANK;
402                    }
403                    else {
404                            return _workflowDefinitionName;
405                    }
406            }
407    
408            public void setWorkflowDefinitionName(String workflowDefinitionName) {
409                    _columnBitmask = -1L;
410    
411                    if (_originalWorkflowDefinitionName == null) {
412                            _originalWorkflowDefinitionName = _workflowDefinitionName;
413                    }
414    
415                    _workflowDefinitionName = workflowDefinitionName;
416            }
417    
418            public String getOriginalWorkflowDefinitionName() {
419                    return GetterUtil.getString(_originalWorkflowDefinitionName);
420            }
421    
422            public int getWorkflowDefinitionVersion() {
423                    return _workflowDefinitionVersion;
424            }
425    
426            public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
427                    _columnBitmask |= WORKFLOWDEFINITIONVERSION_COLUMN_BITMASK;
428    
429                    if (!_setOriginalWorkflowDefinitionVersion) {
430                            _setOriginalWorkflowDefinitionVersion = true;
431    
432                            _originalWorkflowDefinitionVersion = _workflowDefinitionVersion;
433                    }
434    
435                    _workflowDefinitionVersion = workflowDefinitionVersion;
436            }
437    
438            public int getOriginalWorkflowDefinitionVersion() {
439                    return _originalWorkflowDefinitionVersion;
440            }
441    
442            public long getColumnBitmask() {
443                    return _columnBitmask;
444            }
445    
446            @Override
447            public ExpandoBridge getExpandoBridge() {
448                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
449                            WorkflowDefinitionLink.class.getName(), getPrimaryKey());
450            }
451    
452            @Override
453            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
454                    ExpandoBridge expandoBridge = getExpandoBridge();
455    
456                    expandoBridge.setAttributes(serviceContext);
457            }
458    
459            @Override
460            public WorkflowDefinitionLink toEscapedModel() {
461                    if (_escapedModel == null) {
462                            _escapedModel = (WorkflowDefinitionLink)ProxyUtil.newProxyInstance(_classLoader,
463                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
464                    }
465    
466                    return _escapedModel;
467            }
468    
469            public WorkflowDefinitionLink toUnescapedModel() {
470                    return (WorkflowDefinitionLink)this;
471            }
472    
473            @Override
474            public Object clone() {
475                    WorkflowDefinitionLinkImpl workflowDefinitionLinkImpl = new WorkflowDefinitionLinkImpl();
476    
477                    workflowDefinitionLinkImpl.setWorkflowDefinitionLinkId(getWorkflowDefinitionLinkId());
478                    workflowDefinitionLinkImpl.setGroupId(getGroupId());
479                    workflowDefinitionLinkImpl.setCompanyId(getCompanyId());
480                    workflowDefinitionLinkImpl.setUserId(getUserId());
481                    workflowDefinitionLinkImpl.setUserName(getUserName());
482                    workflowDefinitionLinkImpl.setCreateDate(getCreateDate());
483                    workflowDefinitionLinkImpl.setModifiedDate(getModifiedDate());
484                    workflowDefinitionLinkImpl.setClassNameId(getClassNameId());
485                    workflowDefinitionLinkImpl.setClassPK(getClassPK());
486                    workflowDefinitionLinkImpl.setTypePK(getTypePK());
487                    workflowDefinitionLinkImpl.setWorkflowDefinitionName(getWorkflowDefinitionName());
488                    workflowDefinitionLinkImpl.setWorkflowDefinitionVersion(getWorkflowDefinitionVersion());
489    
490                    workflowDefinitionLinkImpl.resetOriginalValues();
491    
492                    return workflowDefinitionLinkImpl;
493            }
494    
495            public int compareTo(WorkflowDefinitionLink workflowDefinitionLink) {
496                    int value = 0;
497    
498                    value = getWorkflowDefinitionName()
499                                            .compareTo(workflowDefinitionLink.getWorkflowDefinitionName());
500    
501                    if (value != 0) {
502                            return value;
503                    }
504    
505                    return 0;
506            }
507    
508            @Override
509            public boolean equals(Object obj) {
510                    if (this == obj) {
511                            return true;
512                    }
513    
514                    if (!(obj instanceof WorkflowDefinitionLink)) {
515                            return false;
516                    }
517    
518                    WorkflowDefinitionLink workflowDefinitionLink = (WorkflowDefinitionLink)obj;
519    
520                    long primaryKey = workflowDefinitionLink.getPrimaryKey();
521    
522                    if (getPrimaryKey() == primaryKey) {
523                            return true;
524                    }
525                    else {
526                            return false;
527                    }
528            }
529    
530            @Override
531            public int hashCode() {
532                    return (int)getPrimaryKey();
533            }
534    
535            @Override
536            public void resetOriginalValues() {
537                    WorkflowDefinitionLinkModelImpl workflowDefinitionLinkModelImpl = this;
538    
539                    workflowDefinitionLinkModelImpl._originalGroupId = workflowDefinitionLinkModelImpl._groupId;
540    
541                    workflowDefinitionLinkModelImpl._setOriginalGroupId = false;
542    
543                    workflowDefinitionLinkModelImpl._originalCompanyId = workflowDefinitionLinkModelImpl._companyId;
544    
545                    workflowDefinitionLinkModelImpl._setOriginalCompanyId = false;
546    
547                    workflowDefinitionLinkModelImpl._originalClassNameId = workflowDefinitionLinkModelImpl._classNameId;
548    
549                    workflowDefinitionLinkModelImpl._setOriginalClassNameId = false;
550    
551                    workflowDefinitionLinkModelImpl._originalClassPK = workflowDefinitionLinkModelImpl._classPK;
552    
553                    workflowDefinitionLinkModelImpl._setOriginalClassPK = false;
554    
555                    workflowDefinitionLinkModelImpl._originalTypePK = workflowDefinitionLinkModelImpl._typePK;
556    
557                    workflowDefinitionLinkModelImpl._setOriginalTypePK = false;
558    
559                    workflowDefinitionLinkModelImpl._originalWorkflowDefinitionName = workflowDefinitionLinkModelImpl._workflowDefinitionName;
560    
561                    workflowDefinitionLinkModelImpl._originalWorkflowDefinitionVersion = workflowDefinitionLinkModelImpl._workflowDefinitionVersion;
562    
563                    workflowDefinitionLinkModelImpl._setOriginalWorkflowDefinitionVersion = false;
564    
565                    workflowDefinitionLinkModelImpl._columnBitmask = 0;
566            }
567    
568            @Override
569            public CacheModel<WorkflowDefinitionLink> toCacheModel() {
570                    WorkflowDefinitionLinkCacheModel workflowDefinitionLinkCacheModel = new WorkflowDefinitionLinkCacheModel();
571    
572                    workflowDefinitionLinkCacheModel.workflowDefinitionLinkId = getWorkflowDefinitionLinkId();
573    
574                    workflowDefinitionLinkCacheModel.groupId = getGroupId();
575    
576                    workflowDefinitionLinkCacheModel.companyId = getCompanyId();
577    
578                    workflowDefinitionLinkCacheModel.userId = getUserId();
579    
580                    workflowDefinitionLinkCacheModel.userName = getUserName();
581    
582                    String userName = workflowDefinitionLinkCacheModel.userName;
583    
584                    if ((userName != null) && (userName.length() == 0)) {
585                            workflowDefinitionLinkCacheModel.userName = null;
586                    }
587    
588                    Date createDate = getCreateDate();
589    
590                    if (createDate != null) {
591                            workflowDefinitionLinkCacheModel.createDate = createDate.getTime();
592                    }
593                    else {
594                            workflowDefinitionLinkCacheModel.createDate = Long.MIN_VALUE;
595                    }
596    
597                    Date modifiedDate = getModifiedDate();
598    
599                    if (modifiedDate != null) {
600                            workflowDefinitionLinkCacheModel.modifiedDate = modifiedDate.getTime();
601                    }
602                    else {
603                            workflowDefinitionLinkCacheModel.modifiedDate = Long.MIN_VALUE;
604                    }
605    
606                    workflowDefinitionLinkCacheModel.classNameId = getClassNameId();
607    
608                    workflowDefinitionLinkCacheModel.classPK = getClassPK();
609    
610                    workflowDefinitionLinkCacheModel.typePK = getTypePK();
611    
612                    workflowDefinitionLinkCacheModel.workflowDefinitionName = getWorkflowDefinitionName();
613    
614                    String workflowDefinitionName = workflowDefinitionLinkCacheModel.workflowDefinitionName;
615    
616                    if ((workflowDefinitionName != null) &&
617                                    (workflowDefinitionName.length() == 0)) {
618                            workflowDefinitionLinkCacheModel.workflowDefinitionName = null;
619                    }
620    
621                    workflowDefinitionLinkCacheModel.workflowDefinitionVersion = getWorkflowDefinitionVersion();
622    
623                    return workflowDefinitionLinkCacheModel;
624            }
625    
626            @Override
627            public String toString() {
628                    StringBundler sb = new StringBundler(25);
629    
630                    sb.append("{workflowDefinitionLinkId=");
631                    sb.append(getWorkflowDefinitionLinkId());
632                    sb.append(", groupId=");
633                    sb.append(getGroupId());
634                    sb.append(", companyId=");
635                    sb.append(getCompanyId());
636                    sb.append(", userId=");
637                    sb.append(getUserId());
638                    sb.append(", userName=");
639                    sb.append(getUserName());
640                    sb.append(", createDate=");
641                    sb.append(getCreateDate());
642                    sb.append(", modifiedDate=");
643                    sb.append(getModifiedDate());
644                    sb.append(", classNameId=");
645                    sb.append(getClassNameId());
646                    sb.append(", classPK=");
647                    sb.append(getClassPK());
648                    sb.append(", typePK=");
649                    sb.append(getTypePK());
650                    sb.append(", workflowDefinitionName=");
651                    sb.append(getWorkflowDefinitionName());
652                    sb.append(", workflowDefinitionVersion=");
653                    sb.append(getWorkflowDefinitionVersion());
654                    sb.append("}");
655    
656                    return sb.toString();
657            }
658    
659            public String toXmlString() {
660                    StringBundler sb = new StringBundler(40);
661    
662                    sb.append("<model><model-name>");
663                    sb.append("com.liferay.portal.model.WorkflowDefinitionLink");
664                    sb.append("</model-name>");
665    
666                    sb.append(
667                            "<column><column-name>workflowDefinitionLinkId</column-name><column-value><![CDATA[");
668                    sb.append(getWorkflowDefinitionLinkId());
669                    sb.append("]]></column-value></column>");
670                    sb.append(
671                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
672                    sb.append(getGroupId());
673                    sb.append("]]></column-value></column>");
674                    sb.append(
675                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
676                    sb.append(getCompanyId());
677                    sb.append("]]></column-value></column>");
678                    sb.append(
679                            "<column><column-name>userId</column-name><column-value><![CDATA[");
680                    sb.append(getUserId());
681                    sb.append("]]></column-value></column>");
682                    sb.append(
683                            "<column><column-name>userName</column-name><column-value><![CDATA[");
684                    sb.append(getUserName());
685                    sb.append("]]></column-value></column>");
686                    sb.append(
687                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
688                    sb.append(getCreateDate());
689                    sb.append("]]></column-value></column>");
690                    sb.append(
691                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
692                    sb.append(getModifiedDate());
693                    sb.append("]]></column-value></column>");
694                    sb.append(
695                            "<column><column-name>classNameId</column-name><column-value><![CDATA[");
696                    sb.append(getClassNameId());
697                    sb.append("]]></column-value></column>");
698                    sb.append(
699                            "<column><column-name>classPK</column-name><column-value><![CDATA[");
700                    sb.append(getClassPK());
701                    sb.append("]]></column-value></column>");
702                    sb.append(
703                            "<column><column-name>typePK</column-name><column-value><![CDATA[");
704                    sb.append(getTypePK());
705                    sb.append("]]></column-value></column>");
706                    sb.append(
707                            "<column><column-name>workflowDefinitionName</column-name><column-value><![CDATA[");
708                    sb.append(getWorkflowDefinitionName());
709                    sb.append("]]></column-value></column>");
710                    sb.append(
711                            "<column><column-name>workflowDefinitionVersion</column-name><column-value><![CDATA[");
712                    sb.append(getWorkflowDefinitionVersion());
713                    sb.append("]]></column-value></column>");
714    
715                    sb.append("</model>");
716    
717                    return sb.toString();
718            }
719    
720            private static ClassLoader _classLoader = WorkflowDefinitionLink.class.getClassLoader();
721            private static Class<?>[] _escapedModelInterfaces = new Class[] {
722                            WorkflowDefinitionLink.class
723                    };
724            private long _workflowDefinitionLinkId;
725            private long _groupId;
726            private long _originalGroupId;
727            private boolean _setOriginalGroupId;
728            private long _companyId;
729            private long _originalCompanyId;
730            private boolean _setOriginalCompanyId;
731            private long _userId;
732            private String _userUuid;
733            private String _userName;
734            private Date _createDate;
735            private Date _modifiedDate;
736            private long _classNameId;
737            private long _originalClassNameId;
738            private boolean _setOriginalClassNameId;
739            private long _classPK;
740            private long _originalClassPK;
741            private boolean _setOriginalClassPK;
742            private long _typePK;
743            private long _originalTypePK;
744            private boolean _setOriginalTypePK;
745            private String _workflowDefinitionName;
746            private String _originalWorkflowDefinitionName;
747            private int _workflowDefinitionVersion;
748            private int _originalWorkflowDefinitionVersion;
749            private boolean _setOriginalWorkflowDefinitionVersion;
750            private long _columnBitmask;
751            private WorkflowDefinitionLink _escapedModel;
752    }