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