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.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 _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            @Override
470            public Object clone() {
471                    WorkflowDefinitionLinkImpl workflowDefinitionLinkImpl = new WorkflowDefinitionLinkImpl();
472    
473                    workflowDefinitionLinkImpl.setWorkflowDefinitionLinkId(getWorkflowDefinitionLinkId());
474                    workflowDefinitionLinkImpl.setGroupId(getGroupId());
475                    workflowDefinitionLinkImpl.setCompanyId(getCompanyId());
476                    workflowDefinitionLinkImpl.setUserId(getUserId());
477                    workflowDefinitionLinkImpl.setUserName(getUserName());
478                    workflowDefinitionLinkImpl.setCreateDate(getCreateDate());
479                    workflowDefinitionLinkImpl.setModifiedDate(getModifiedDate());
480                    workflowDefinitionLinkImpl.setClassNameId(getClassNameId());
481                    workflowDefinitionLinkImpl.setClassPK(getClassPK());
482                    workflowDefinitionLinkImpl.setTypePK(getTypePK());
483                    workflowDefinitionLinkImpl.setWorkflowDefinitionName(getWorkflowDefinitionName());
484                    workflowDefinitionLinkImpl.setWorkflowDefinitionVersion(getWorkflowDefinitionVersion());
485    
486                    workflowDefinitionLinkImpl.resetOriginalValues();
487    
488                    return workflowDefinitionLinkImpl;
489            }
490    
491            public int compareTo(WorkflowDefinitionLink workflowDefinitionLink) {
492                    int value = 0;
493    
494                    value = getWorkflowDefinitionName()
495                                            .compareTo(workflowDefinitionLink.getWorkflowDefinitionName());
496    
497                    if (value != 0) {
498                            return value;
499                    }
500    
501                    return 0;
502            }
503    
504            @Override
505            public boolean equals(Object obj) {
506                    if (obj == null) {
507                            return false;
508                    }
509    
510                    WorkflowDefinitionLink workflowDefinitionLink = null;
511    
512                    try {
513                            workflowDefinitionLink = (WorkflowDefinitionLink)obj;
514                    }
515                    catch (ClassCastException cce) {
516                            return false;
517                    }
518    
519                    long primaryKey = workflowDefinitionLink.getPrimaryKey();
520    
521                    if (getPrimaryKey() == primaryKey) {
522                            return true;
523                    }
524                    else {
525                            return false;
526                    }
527            }
528    
529            @Override
530            public int hashCode() {
531                    return (int)getPrimaryKey();
532            }
533    
534            @Override
535            public void resetOriginalValues() {
536                    WorkflowDefinitionLinkModelImpl workflowDefinitionLinkModelImpl = this;
537    
538                    workflowDefinitionLinkModelImpl._originalGroupId = workflowDefinitionLinkModelImpl._groupId;
539    
540                    workflowDefinitionLinkModelImpl._setOriginalGroupId = false;
541    
542                    workflowDefinitionLinkModelImpl._originalCompanyId = workflowDefinitionLinkModelImpl._companyId;
543    
544                    workflowDefinitionLinkModelImpl._setOriginalCompanyId = false;
545    
546                    workflowDefinitionLinkModelImpl._originalClassNameId = workflowDefinitionLinkModelImpl._classNameId;
547    
548                    workflowDefinitionLinkModelImpl._setOriginalClassNameId = false;
549    
550                    workflowDefinitionLinkModelImpl._originalClassPK = workflowDefinitionLinkModelImpl._classPK;
551    
552                    workflowDefinitionLinkModelImpl._setOriginalClassPK = false;
553    
554                    workflowDefinitionLinkModelImpl._originalTypePK = workflowDefinitionLinkModelImpl._typePK;
555    
556                    workflowDefinitionLinkModelImpl._setOriginalTypePK = false;
557    
558                    workflowDefinitionLinkModelImpl._originalWorkflowDefinitionName = workflowDefinitionLinkModelImpl._workflowDefinitionName;
559    
560                    workflowDefinitionLinkModelImpl._originalWorkflowDefinitionVersion = workflowDefinitionLinkModelImpl._workflowDefinitionVersion;
561    
562                    workflowDefinitionLinkModelImpl._setOriginalWorkflowDefinitionVersion = false;
563    
564                    workflowDefinitionLinkModelImpl._columnBitmask = 0;
565            }
566    
567            @Override
568            public CacheModel<WorkflowDefinitionLink> toCacheModel() {
569                    WorkflowDefinitionLinkCacheModel workflowDefinitionLinkCacheModel = new WorkflowDefinitionLinkCacheModel();
570    
571                    workflowDefinitionLinkCacheModel.workflowDefinitionLinkId = getWorkflowDefinitionLinkId();
572    
573                    workflowDefinitionLinkCacheModel.groupId = getGroupId();
574    
575                    workflowDefinitionLinkCacheModel.companyId = getCompanyId();
576    
577                    workflowDefinitionLinkCacheModel.userId = getUserId();
578    
579                    workflowDefinitionLinkCacheModel.userName = getUserName();
580    
581                    String userName = workflowDefinitionLinkCacheModel.userName;
582    
583                    if ((userName != null) && (userName.length() == 0)) {
584                            workflowDefinitionLinkCacheModel.userName = null;
585                    }
586    
587                    Date createDate = getCreateDate();
588    
589                    if (createDate != null) {
590                            workflowDefinitionLinkCacheModel.createDate = createDate.getTime();
591                    }
592                    else {
593                            workflowDefinitionLinkCacheModel.createDate = Long.MIN_VALUE;
594                    }
595    
596                    Date modifiedDate = getModifiedDate();
597    
598                    if (modifiedDate != null) {
599                            workflowDefinitionLinkCacheModel.modifiedDate = modifiedDate.getTime();
600                    }
601                    else {
602                            workflowDefinitionLinkCacheModel.modifiedDate = Long.MIN_VALUE;
603                    }
604    
605                    workflowDefinitionLinkCacheModel.classNameId = getClassNameId();
606    
607                    workflowDefinitionLinkCacheModel.classPK = getClassPK();
608    
609                    workflowDefinitionLinkCacheModel.typePK = getTypePK();
610    
611                    workflowDefinitionLinkCacheModel.workflowDefinitionName = getWorkflowDefinitionName();
612    
613                    String workflowDefinitionName = workflowDefinitionLinkCacheModel.workflowDefinitionName;
614    
615                    if ((workflowDefinitionName != null) &&
616                                    (workflowDefinitionName.length() == 0)) {
617                            workflowDefinitionLinkCacheModel.workflowDefinitionName = null;
618                    }
619    
620                    workflowDefinitionLinkCacheModel.workflowDefinitionVersion = getWorkflowDefinitionVersion();
621    
622                    return workflowDefinitionLinkCacheModel;
623            }
624    
625            @Override
626            public String toString() {
627                    StringBundler sb = new StringBundler(25);
628    
629                    sb.append("{workflowDefinitionLinkId=");
630                    sb.append(getWorkflowDefinitionLinkId());
631                    sb.append(", groupId=");
632                    sb.append(getGroupId());
633                    sb.append(", companyId=");
634                    sb.append(getCompanyId());
635                    sb.append(", userId=");
636                    sb.append(getUserId());
637                    sb.append(", userName=");
638                    sb.append(getUserName());
639                    sb.append(", createDate=");
640                    sb.append(getCreateDate());
641                    sb.append(", modifiedDate=");
642                    sb.append(getModifiedDate());
643                    sb.append(", classNameId=");
644                    sb.append(getClassNameId());
645                    sb.append(", classPK=");
646                    sb.append(getClassPK());
647                    sb.append(", typePK=");
648                    sb.append(getTypePK());
649                    sb.append(", workflowDefinitionName=");
650                    sb.append(getWorkflowDefinitionName());
651                    sb.append(", workflowDefinitionVersion=");
652                    sb.append(getWorkflowDefinitionVersion());
653                    sb.append("}");
654    
655                    return sb.toString();
656            }
657    
658            public String toXmlString() {
659                    StringBundler sb = new StringBundler(40);
660    
661                    sb.append("<model><model-name>");
662                    sb.append("com.liferay.portal.model.WorkflowDefinitionLink");
663                    sb.append("</model-name>");
664    
665                    sb.append(
666                            "<column><column-name>workflowDefinitionLinkId</column-name><column-value><![CDATA[");
667                    sb.append(getWorkflowDefinitionLinkId());
668                    sb.append("]]></column-value></column>");
669                    sb.append(
670                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
671                    sb.append(getGroupId());
672                    sb.append("]]></column-value></column>");
673                    sb.append(
674                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
675                    sb.append(getCompanyId());
676                    sb.append("]]></column-value></column>");
677                    sb.append(
678                            "<column><column-name>userId</column-name><column-value><![CDATA[");
679                    sb.append(getUserId());
680                    sb.append("]]></column-value></column>");
681                    sb.append(
682                            "<column><column-name>userName</column-name><column-value><![CDATA[");
683                    sb.append(getUserName());
684                    sb.append("]]></column-value></column>");
685                    sb.append(
686                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
687                    sb.append(getCreateDate());
688                    sb.append("]]></column-value></column>");
689                    sb.append(
690                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
691                    sb.append(getModifiedDate());
692                    sb.append("]]></column-value></column>");
693                    sb.append(
694                            "<column><column-name>classNameId</column-name><column-value><![CDATA[");
695                    sb.append(getClassNameId());
696                    sb.append("]]></column-value></column>");
697                    sb.append(
698                            "<column><column-name>classPK</column-name><column-value><![CDATA[");
699                    sb.append(getClassPK());
700                    sb.append("]]></column-value></column>");
701                    sb.append(
702                            "<column><column-name>typePK</column-name><column-value><![CDATA[");
703                    sb.append(getTypePK());
704                    sb.append("]]></column-value></column>");
705                    sb.append(
706                            "<column><column-name>workflowDefinitionName</column-name><column-value><![CDATA[");
707                    sb.append(getWorkflowDefinitionName());
708                    sb.append("]]></column-value></column>");
709                    sb.append(
710                            "<column><column-name>workflowDefinitionVersion</column-name><column-value><![CDATA[");
711                    sb.append(getWorkflowDefinitionVersion());
712                    sb.append("]]></column-value></column>");
713    
714                    sb.append("</model>");
715    
716                    return sb.toString();
717            }
718    
719            private static ClassLoader _classLoader = WorkflowDefinitionLink.class.getClassLoader();
720            private static Class<?>[] _escapedModelInterfaces = new Class[] {
721                            WorkflowDefinitionLink.class
722                    };
723            private long _workflowDefinitionLinkId;
724            private long _groupId;
725            private long _originalGroupId;
726            private boolean _setOriginalGroupId;
727            private long _companyId;
728            private long _originalCompanyId;
729            private boolean _setOriginalCompanyId;
730            private long _userId;
731            private String _userUuid;
732            private String _userName;
733            private Date _createDate;
734            private Date _modifiedDate;
735            private long _classNameId;
736            private long _originalClassNameId;
737            private boolean _setOriginalClassNameId;
738            private long _classPK;
739            private long _originalClassPK;
740            private boolean _setOriginalClassPK;
741            private long _typePK;
742            private long _originalTypePK;
743            private boolean _setOriginalTypePK;
744            private String _workflowDefinitionName;
745            private String _originalWorkflowDefinitionName;
746            private int _workflowDefinitionVersion;
747            private int _originalWorkflowDefinitionVersion;
748            private boolean _setOriginalWorkflowDefinitionVersion;
749            private long _columnBitmask;
750            private WorkflowDefinitionLink _escapedModel;
751    }