001
014
015 package com.liferay.portal.model.impl;
016
017 import com.liferay.portal.LocaleException;
018 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
019 import com.liferay.portal.kernel.json.JSON;
020 import com.liferay.portal.kernel.util.GetterUtil;
021 import com.liferay.portal.kernel.util.LocaleUtil;
022 import com.liferay.portal.kernel.util.LocalizationUtil;
023 import com.liferay.portal.kernel.util.ProxyUtil;
024 import com.liferay.portal.kernel.util.StringBundler;
025 import com.liferay.portal.kernel.util.StringPool;
026 import com.liferay.portal.kernel.util.Validator;
027 import com.liferay.portal.model.CacheModel;
028 import com.liferay.portal.model.Role;
029 import com.liferay.portal.model.RoleModel;
030 import com.liferay.portal.model.RoleSoap;
031 import com.liferay.portal.service.ServiceContext;
032 import com.liferay.portal.util.PortalUtil;
033
034 import com.liferay.portlet.expando.model.ExpandoBridge;
035 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
036
037 import java.io.Serializable;
038
039 import java.sql.Types;
040
041 import java.util.ArrayList;
042 import java.util.HashMap;
043 import java.util.List;
044 import java.util.Locale;
045 import java.util.Map;
046
047
060 @JSON(strict = true)
061 public class RoleModelImpl extends BaseModelImpl<Role> implements RoleModel {
062
067 public static final String TABLE_NAME = "Role_";
068 public static final Object[][] TABLE_COLUMNS = {
069 { "roleId", Types.BIGINT },
070 { "companyId", Types.BIGINT },
071 { "classNameId", Types.BIGINT },
072 { "classPK", Types.BIGINT },
073 { "name", Types.VARCHAR },
074 { "title", Types.VARCHAR },
075 { "description", Types.VARCHAR },
076 { "type_", Types.INTEGER },
077 { "subtype", Types.VARCHAR }
078 };
079 public static final String TABLE_SQL_CREATE = "create table Role_ (roleId LONG not null primary key,companyId LONG,classNameId LONG,classPK LONG,name VARCHAR(75) null,title STRING null,description STRING null,type_ INTEGER,subtype VARCHAR(75) null)";
080 public static final String TABLE_SQL_DROP = "drop table Role_";
081 public static final String ORDER_BY_JPQL = " ORDER BY role.name ASC";
082 public static final String ORDER_BY_SQL = " ORDER BY Role_.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.Role"),
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.Role"),
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.Role"),
094 true);
095 public static long CLASSNAMEID_COLUMN_BITMASK = 1L;
096 public static long CLASSPK_COLUMN_BITMASK = 2L;
097 public static long COMPANYID_COLUMN_BITMASK = 4L;
098 public static long NAME_COLUMN_BITMASK = 8L;
099 public static long SUBTYPE_COLUMN_BITMASK = 16L;
100 public static long TYPE_COLUMN_BITMASK = 32L;
101
102
108 public static Role toModel(RoleSoap soapModel) {
109 if (soapModel == null) {
110 return null;
111 }
112
113 Role model = new RoleImpl();
114
115 model.setRoleId(soapModel.getRoleId());
116 model.setCompanyId(soapModel.getCompanyId());
117 model.setClassNameId(soapModel.getClassNameId());
118 model.setClassPK(soapModel.getClassPK());
119 model.setName(soapModel.getName());
120 model.setTitle(soapModel.getTitle());
121 model.setDescription(soapModel.getDescription());
122 model.setType(soapModel.getType());
123 model.setSubtype(soapModel.getSubtype());
124
125 return model;
126 }
127
128
134 public static List<Role> toModels(RoleSoap[] soapModels) {
135 if (soapModels == null) {
136 return null;
137 }
138
139 List<Role> models = new ArrayList<Role>(soapModels.length);
140
141 for (RoleSoap soapModel : soapModels) {
142 models.add(toModel(soapModel));
143 }
144
145 return models;
146 }
147
148 public static final String MAPPING_TABLE_GROUPS_ROLES_NAME = "Groups_Roles";
149 public static final Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS = {
150 { "groupId", Types.BIGINT },
151 { "roleId", Types.BIGINT }
152 };
153 public static final String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE = "create table Groups_Roles (groupId LONG not null,roleId LONG not null,primary key (groupId, roleId))";
154 public static final boolean FINDER_CACHE_ENABLED_GROUPS_ROLES = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
155 "value.object.finder.cache.enabled.Groups_Roles"), true);
156 public static final String MAPPING_TABLE_USERS_ROLES_NAME = "Users_Roles";
157 public static final Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS = {
158 { "userId", Types.BIGINT },
159 { "roleId", Types.BIGINT }
160 };
161 public static final String MAPPING_TABLE_USERS_ROLES_SQL_CREATE = "create table Users_Roles (userId LONG not null,roleId LONG not null,primary key (userId, roleId))";
162 public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
163 "value.object.finder.cache.enabled.Users_Roles"), true);
164 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
165 "lock.expiration.time.com.liferay.portal.model.Role"));
166
167 public RoleModelImpl() {
168 }
169
170 public long getPrimaryKey() {
171 return _roleId;
172 }
173
174 public void setPrimaryKey(long primaryKey) {
175 setRoleId(primaryKey);
176 }
177
178 public Serializable getPrimaryKeyObj() {
179 return new Long(_roleId);
180 }
181
182 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
183 setPrimaryKey(((Long)primaryKeyObj).longValue());
184 }
185
186 public Class<?> getModelClass() {
187 return Role.class;
188 }
189
190 public String getModelClassName() {
191 return Role.class.getName();
192 }
193
194 @Override
195 public Map<String, Object> getModelAttributes() {
196 Map<String, Object> attributes = new HashMap<String, Object>();
197
198 attributes.put("roleId", getRoleId());
199 attributes.put("companyId", getCompanyId());
200 attributes.put("classNameId", getClassNameId());
201 attributes.put("classPK", getClassPK());
202 attributes.put("name", getName());
203 attributes.put("title", getTitle());
204 attributes.put("description", getDescription());
205 attributes.put("type", getType());
206 attributes.put("subtype", getSubtype());
207
208 return attributes;
209 }
210
211 @Override
212 public void setModelAttributes(Map<String, Object> attributes) {
213 Long roleId = (Long)attributes.get("roleId");
214
215 if (roleId != null) {
216 setRoleId(roleId);
217 }
218
219 Long companyId = (Long)attributes.get("companyId");
220
221 if (companyId != null) {
222 setCompanyId(companyId);
223 }
224
225 Long classNameId = (Long)attributes.get("classNameId");
226
227 if (classNameId != null) {
228 setClassNameId(classNameId);
229 }
230
231 Long classPK = (Long)attributes.get("classPK");
232
233 if (classPK != null) {
234 setClassPK(classPK);
235 }
236
237 String name = (String)attributes.get("name");
238
239 if (name != null) {
240 setName(name);
241 }
242
243 String title = (String)attributes.get("title");
244
245 if (title != null) {
246 setTitle(title);
247 }
248
249 String description = (String)attributes.get("description");
250
251 if (description != null) {
252 setDescription(description);
253 }
254
255 Integer type = (Integer)attributes.get("type");
256
257 if (type != null) {
258 setType(type);
259 }
260
261 String subtype = (String)attributes.get("subtype");
262
263 if (subtype != null) {
264 setSubtype(subtype);
265 }
266 }
267
268 @JSON
269 public long getRoleId() {
270 return _roleId;
271 }
272
273 public void setRoleId(long roleId) {
274 _roleId = roleId;
275 }
276
277 @JSON
278 public long getCompanyId() {
279 return _companyId;
280 }
281
282 public void setCompanyId(long companyId) {
283 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
284
285 if (!_setOriginalCompanyId) {
286 _setOriginalCompanyId = true;
287
288 _originalCompanyId = _companyId;
289 }
290
291 _companyId = companyId;
292 }
293
294 public long getOriginalCompanyId() {
295 return _originalCompanyId;
296 }
297
298 public String getClassName() {
299 if (getClassNameId() <= 0) {
300 return StringPool.BLANK;
301 }
302
303 return PortalUtil.getClassName(getClassNameId());
304 }
305
306 public void setClassName(String className) {
307 long classNameId = 0;
308
309 if (Validator.isNotNull(className)) {
310 classNameId = PortalUtil.getClassNameId(className);
311 }
312
313 setClassNameId(classNameId);
314 }
315
316 @JSON
317 public long getClassNameId() {
318 return _classNameId;
319 }
320
321 public void setClassNameId(long classNameId) {
322 _columnBitmask |= CLASSNAMEID_COLUMN_BITMASK;
323
324 if (!_setOriginalClassNameId) {
325 _setOriginalClassNameId = true;
326
327 _originalClassNameId = _classNameId;
328 }
329
330 _classNameId = classNameId;
331 }
332
333 public long getOriginalClassNameId() {
334 return _originalClassNameId;
335 }
336
337 @JSON
338 public long getClassPK() {
339 return _classPK;
340 }
341
342 public void setClassPK(long classPK) {
343 _columnBitmask |= CLASSPK_COLUMN_BITMASK;
344
345 if (!_setOriginalClassPK) {
346 _setOriginalClassPK = true;
347
348 _originalClassPK = _classPK;
349 }
350
351 _classPK = classPK;
352 }
353
354 public long getOriginalClassPK() {
355 return _originalClassPK;
356 }
357
358 @JSON
359 public String getName() {
360 if (_name == null) {
361 return StringPool.BLANK;
362 }
363 else {
364 return _name;
365 }
366 }
367
368 public void setName(String name) {
369 _columnBitmask = -1L;
370
371 if (_originalName == null) {
372 _originalName = _name;
373 }
374
375 _name = name;
376 }
377
378 public String getOriginalName() {
379 return GetterUtil.getString(_originalName);
380 }
381
382 @JSON
383 public String getTitle() {
384 if (_title == null) {
385 return StringPool.BLANK;
386 }
387 else {
388 return _title;
389 }
390 }
391
392 public String getTitle(Locale locale) {
393 String languageId = LocaleUtil.toLanguageId(locale);
394
395 return getTitle(languageId);
396 }
397
398 public String getTitle(Locale locale, boolean useDefault) {
399 String languageId = LocaleUtil.toLanguageId(locale);
400
401 return getTitle(languageId, useDefault);
402 }
403
404 public String getTitle(String languageId) {
405 return LocalizationUtil.getLocalization(getTitle(), languageId);
406 }
407
408 public String getTitle(String languageId, boolean useDefault) {
409 return LocalizationUtil.getLocalization(getTitle(), languageId,
410 useDefault);
411 }
412
413 public String getTitleCurrentLanguageId() {
414 return _titleCurrentLanguageId;
415 }
416
417 @JSON
418 public String getTitleCurrentValue() {
419 Locale locale = getLocale(_titleCurrentLanguageId);
420
421 return getTitle(locale);
422 }
423
424 public Map<Locale, String> getTitleMap() {
425 return LocalizationUtil.getLocalizationMap(getTitle());
426 }
427
428 public void setTitle(String title) {
429 _title = title;
430 }
431
432 public void setTitle(String title, Locale locale) {
433 setTitle(title, locale, LocaleUtil.getDefault());
434 }
435
436 public void setTitle(String title, Locale locale, Locale defaultLocale) {
437 String languageId = LocaleUtil.toLanguageId(locale);
438 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
439
440 if (Validator.isNotNull(title)) {
441 setTitle(LocalizationUtil.updateLocalization(getTitle(), "Title",
442 title, languageId, defaultLanguageId));
443 }
444 else {
445 setTitle(LocalizationUtil.removeLocalization(getTitle(), "Title",
446 languageId));
447 }
448 }
449
450 public void setTitleCurrentLanguageId(String languageId) {
451 _titleCurrentLanguageId = languageId;
452 }
453
454 public void setTitleMap(Map<Locale, String> titleMap) {
455 setTitleMap(titleMap, LocaleUtil.getDefault());
456 }
457
458 public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale) {
459 if (titleMap == null) {
460 return;
461 }
462
463 setTitle(LocalizationUtil.updateLocalization(titleMap, getTitle(),
464 "Title", LocaleUtil.toLanguageId(defaultLocale)));
465 }
466
467 @JSON
468 public String getDescription() {
469 if (_description == null) {
470 return StringPool.BLANK;
471 }
472 else {
473 return _description;
474 }
475 }
476
477 public String getDescription(Locale locale) {
478 String languageId = LocaleUtil.toLanguageId(locale);
479
480 return getDescription(languageId);
481 }
482
483 public String getDescription(Locale locale, boolean useDefault) {
484 String languageId = LocaleUtil.toLanguageId(locale);
485
486 return getDescription(languageId, useDefault);
487 }
488
489 public String getDescription(String languageId) {
490 return LocalizationUtil.getLocalization(getDescription(), languageId);
491 }
492
493 public String getDescription(String languageId, boolean useDefault) {
494 return LocalizationUtil.getLocalization(getDescription(), languageId,
495 useDefault);
496 }
497
498 public String getDescriptionCurrentLanguageId() {
499 return _descriptionCurrentLanguageId;
500 }
501
502 @JSON
503 public String getDescriptionCurrentValue() {
504 Locale locale = getLocale(_descriptionCurrentLanguageId);
505
506 return getDescription(locale);
507 }
508
509 public Map<Locale, String> getDescriptionMap() {
510 return LocalizationUtil.getLocalizationMap(getDescription());
511 }
512
513 public void setDescription(String description) {
514 _description = description;
515 }
516
517 public void setDescription(String description, Locale locale) {
518 setDescription(description, locale, LocaleUtil.getDefault());
519 }
520
521 public void setDescription(String description, Locale locale,
522 Locale defaultLocale) {
523 String languageId = LocaleUtil.toLanguageId(locale);
524 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
525
526 if (Validator.isNotNull(description)) {
527 setDescription(LocalizationUtil.updateLocalization(
528 getDescription(), "Description", description, languageId,
529 defaultLanguageId));
530 }
531 else {
532 setDescription(LocalizationUtil.removeLocalization(
533 getDescription(), "Description", languageId));
534 }
535 }
536
537 public void setDescriptionCurrentLanguageId(String languageId) {
538 _descriptionCurrentLanguageId = languageId;
539 }
540
541 public void setDescriptionMap(Map<Locale, String> descriptionMap) {
542 setDescriptionMap(descriptionMap, LocaleUtil.getDefault());
543 }
544
545 public void setDescriptionMap(Map<Locale, String> descriptionMap,
546 Locale defaultLocale) {
547 if (descriptionMap == null) {
548 return;
549 }
550
551 setDescription(LocalizationUtil.updateLocalization(descriptionMap,
552 getDescription(), "Description",
553 LocaleUtil.toLanguageId(defaultLocale)));
554 }
555
556 @JSON
557 public int getType() {
558 return _type;
559 }
560
561 public void setType(int type) {
562 _columnBitmask |= TYPE_COLUMN_BITMASK;
563
564 if (!_setOriginalType) {
565 _setOriginalType = true;
566
567 _originalType = _type;
568 }
569
570 _type = type;
571 }
572
573 public int getOriginalType() {
574 return _originalType;
575 }
576
577 @JSON
578 public String getSubtype() {
579 if (_subtype == null) {
580 return StringPool.BLANK;
581 }
582 else {
583 return _subtype;
584 }
585 }
586
587 public void setSubtype(String subtype) {
588 _columnBitmask |= SUBTYPE_COLUMN_BITMASK;
589
590 if (_originalSubtype == null) {
591 _originalSubtype = _subtype;
592 }
593
594 _subtype = subtype;
595 }
596
597 public String getOriginalSubtype() {
598 return GetterUtil.getString(_originalSubtype);
599 }
600
601 public long getColumnBitmask() {
602 return _columnBitmask;
603 }
604
605 @Override
606 public ExpandoBridge getExpandoBridge() {
607 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
608 Role.class.getName(), getPrimaryKey());
609 }
610
611 @Override
612 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
613 ExpandoBridge expandoBridge = getExpandoBridge();
614
615 expandoBridge.setAttributes(serviceContext);
616 }
617
618 @SuppressWarnings("unused")
619 public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
620 throws LocaleException {
621 setTitle(getTitle(defaultImportLocale), defaultImportLocale,
622 defaultImportLocale);
623 setDescription(getDescription(defaultImportLocale),
624 defaultImportLocale, defaultImportLocale);
625 }
626
627 @Override
628 public Role toEscapedModel() {
629 if (_escapedModelProxy == null) {
630 _escapedModelProxy = (Role)ProxyUtil.newProxyInstance(_classLoader,
631 _escapedModelProxyInterfaces,
632 new AutoEscapeBeanHandler(this));
633 }
634
635 return _escapedModelProxy;
636 }
637
638 @Override
639 public Object clone() {
640 RoleImpl roleImpl = new RoleImpl();
641
642 roleImpl.setRoleId(getRoleId());
643 roleImpl.setCompanyId(getCompanyId());
644 roleImpl.setClassNameId(getClassNameId());
645 roleImpl.setClassPK(getClassPK());
646 roleImpl.setName(getName());
647 roleImpl.setTitle(getTitle());
648 roleImpl.setDescription(getDescription());
649 roleImpl.setType(getType());
650 roleImpl.setSubtype(getSubtype());
651
652 roleImpl.resetOriginalValues();
653
654 return roleImpl;
655 }
656
657 public int compareTo(Role role) {
658 int value = 0;
659
660 value = getName().compareTo(role.getName());
661
662 if (value != 0) {
663 return value;
664 }
665
666 return 0;
667 }
668
669 @Override
670 public boolean equals(Object obj) {
671 if (obj == null) {
672 return false;
673 }
674
675 Role role = null;
676
677 try {
678 role = (Role)obj;
679 }
680 catch (ClassCastException cce) {
681 return false;
682 }
683
684 long primaryKey = role.getPrimaryKey();
685
686 if (getPrimaryKey() == primaryKey) {
687 return true;
688 }
689 else {
690 return false;
691 }
692 }
693
694 @Override
695 public int hashCode() {
696 return (int)getPrimaryKey();
697 }
698
699 @Override
700 public void resetOriginalValues() {
701 RoleModelImpl roleModelImpl = this;
702
703 roleModelImpl._originalCompanyId = roleModelImpl._companyId;
704
705 roleModelImpl._setOriginalCompanyId = false;
706
707 roleModelImpl._originalClassNameId = roleModelImpl._classNameId;
708
709 roleModelImpl._setOriginalClassNameId = false;
710
711 roleModelImpl._originalClassPK = roleModelImpl._classPK;
712
713 roleModelImpl._setOriginalClassPK = false;
714
715 roleModelImpl._originalName = roleModelImpl._name;
716
717 roleModelImpl._originalType = roleModelImpl._type;
718
719 roleModelImpl._setOriginalType = false;
720
721 roleModelImpl._originalSubtype = roleModelImpl._subtype;
722
723 roleModelImpl._columnBitmask = 0;
724 }
725
726 @Override
727 public CacheModel<Role> toCacheModel() {
728 RoleCacheModel roleCacheModel = new RoleCacheModel();
729
730 roleCacheModel.roleId = getRoleId();
731
732 roleCacheModel.companyId = getCompanyId();
733
734 roleCacheModel.classNameId = getClassNameId();
735
736 roleCacheModel.classPK = getClassPK();
737
738 roleCacheModel.name = getName();
739
740 String name = roleCacheModel.name;
741
742 if ((name != null) && (name.length() == 0)) {
743 roleCacheModel.name = null;
744 }
745
746 roleCacheModel.title = getTitle();
747
748 String title = roleCacheModel.title;
749
750 if ((title != null) && (title.length() == 0)) {
751 roleCacheModel.title = null;
752 }
753
754 roleCacheModel.description = getDescription();
755
756 String description = roleCacheModel.description;
757
758 if ((description != null) && (description.length() == 0)) {
759 roleCacheModel.description = null;
760 }
761
762 roleCacheModel.type = getType();
763
764 roleCacheModel.subtype = getSubtype();
765
766 String subtype = roleCacheModel.subtype;
767
768 if ((subtype != null) && (subtype.length() == 0)) {
769 roleCacheModel.subtype = null;
770 }
771
772 return roleCacheModel;
773 }
774
775 @Override
776 public String toString() {
777 StringBundler sb = new StringBundler(19);
778
779 sb.append("{roleId=");
780 sb.append(getRoleId());
781 sb.append(", companyId=");
782 sb.append(getCompanyId());
783 sb.append(", classNameId=");
784 sb.append(getClassNameId());
785 sb.append(", classPK=");
786 sb.append(getClassPK());
787 sb.append(", name=");
788 sb.append(getName());
789 sb.append(", title=");
790 sb.append(getTitle());
791 sb.append(", description=");
792 sb.append(getDescription());
793 sb.append(", type=");
794 sb.append(getType());
795 sb.append(", subtype=");
796 sb.append(getSubtype());
797 sb.append("}");
798
799 return sb.toString();
800 }
801
802 public String toXmlString() {
803 StringBundler sb = new StringBundler(31);
804
805 sb.append("<model><model-name>");
806 sb.append("com.liferay.portal.model.Role");
807 sb.append("</model-name>");
808
809 sb.append(
810 "<column><column-name>roleId</column-name><column-value><![CDATA[");
811 sb.append(getRoleId());
812 sb.append("]]></column-value></column>");
813 sb.append(
814 "<column><column-name>companyId</column-name><column-value><![CDATA[");
815 sb.append(getCompanyId());
816 sb.append("]]></column-value></column>");
817 sb.append(
818 "<column><column-name>classNameId</column-name><column-value><![CDATA[");
819 sb.append(getClassNameId());
820 sb.append("]]></column-value></column>");
821 sb.append(
822 "<column><column-name>classPK</column-name><column-value><![CDATA[");
823 sb.append(getClassPK());
824 sb.append("]]></column-value></column>");
825 sb.append(
826 "<column><column-name>name</column-name><column-value><![CDATA[");
827 sb.append(getName());
828 sb.append("]]></column-value></column>");
829 sb.append(
830 "<column><column-name>title</column-name><column-value><![CDATA[");
831 sb.append(getTitle());
832 sb.append("]]></column-value></column>");
833 sb.append(
834 "<column><column-name>description</column-name><column-value><![CDATA[");
835 sb.append(getDescription());
836 sb.append("]]></column-value></column>");
837 sb.append(
838 "<column><column-name>type</column-name><column-value><![CDATA[");
839 sb.append(getType());
840 sb.append("]]></column-value></column>");
841 sb.append(
842 "<column><column-name>subtype</column-name><column-value><![CDATA[");
843 sb.append(getSubtype());
844 sb.append("]]></column-value></column>");
845
846 sb.append("</model>");
847
848 return sb.toString();
849 }
850
851 private static ClassLoader _classLoader = Role.class.getClassLoader();
852 private static Class<?>[] _escapedModelProxyInterfaces = new Class[] {
853 Role.class
854 };
855 private long _roleId;
856 private long _companyId;
857 private long _originalCompanyId;
858 private boolean _setOriginalCompanyId;
859 private long _classNameId;
860 private long _originalClassNameId;
861 private boolean _setOriginalClassNameId;
862 private long _classPK;
863 private long _originalClassPK;
864 private boolean _setOriginalClassPK;
865 private String _name;
866 private String _originalName;
867 private String _title;
868 private String _titleCurrentLanguageId;
869 private String _description;
870 private String _descriptionCurrentLanguageId;
871 private int _type;
872 private int _originalType;
873 private boolean _setOriginalType;
874 private String _subtype;
875 private String _originalSubtype;
876 private long _columnBitmask;
877 private Role _escapedModelProxy;
878 }