001
014
015 package com.liferay.portlet.bookmarks.model.impl;
016
017 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.json.JSON;
020 import com.liferay.portal.kernel.util.GetterUtil;
021 import com.liferay.portal.kernel.util.ProxyUtil;
022 import com.liferay.portal.kernel.util.StringBundler;
023 import com.liferay.portal.kernel.util.StringPool;
024 import com.liferay.portal.model.CacheModel;
025 import com.liferay.portal.model.impl.BaseModelImpl;
026 import com.liferay.portal.service.ServiceContext;
027 import com.liferay.portal.util.PortalUtil;
028
029 import com.liferay.portlet.bookmarks.model.BookmarksEntry;
030 import com.liferay.portlet.bookmarks.model.BookmarksEntryModel;
031 import com.liferay.portlet.bookmarks.model.BookmarksEntrySoap;
032 import com.liferay.portlet.expando.model.ExpandoBridge;
033 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
034
035 import java.io.Serializable;
036
037 import java.sql.Types;
038
039 import java.util.ArrayList;
040 import java.util.Date;
041 import java.util.HashMap;
042 import java.util.List;
043 import java.util.Map;
044
045
058 @JSON(strict = true)
059 public class BookmarksEntryModelImpl extends BaseModelImpl<BookmarksEntry>
060 implements BookmarksEntryModel {
061
066 public static final String TABLE_NAME = "BookmarksEntry";
067 public static final Object[][] TABLE_COLUMNS = {
068 { "uuid_", Types.VARCHAR },
069 { "entryId", Types.BIGINT },
070 { "groupId", Types.BIGINT },
071 { "companyId", Types.BIGINT },
072 { "userId", Types.BIGINT },
073 { "userName", Types.VARCHAR },
074 { "createDate", Types.TIMESTAMP },
075 { "modifiedDate", Types.TIMESTAMP },
076 { "resourceBlockId", Types.BIGINT },
077 { "folderId", Types.BIGINT },
078 { "name", Types.VARCHAR },
079 { "url", Types.VARCHAR },
080 { "description", Types.VARCHAR },
081 { "visits", Types.INTEGER },
082 { "priority", Types.INTEGER }
083 };
084 public static final String TABLE_SQL_CREATE = "create table BookmarksEntry (uuid_ VARCHAR(75) null,entryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,resourceBlockId LONG,folderId LONG,name VARCHAR(255) null,url STRING null,description STRING null,visits INTEGER,priority INTEGER)";
085 public static final String TABLE_SQL_DROP = "drop table BookmarksEntry";
086 public static final String ORDER_BY_JPQL = " ORDER BY bookmarksEntry.folderId ASC, bookmarksEntry.name ASC";
087 public static final String ORDER_BY_SQL = " ORDER BY BookmarksEntry.folderId ASC, BookmarksEntry.name ASC";
088 public static final String DATA_SOURCE = "liferayDataSource";
089 public static final String SESSION_FACTORY = "liferaySessionFactory";
090 public static final String TX_MANAGER = "liferayTransactionManager";
091 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
092 "value.object.entity.cache.enabled.com.liferay.portlet.bookmarks.model.BookmarksEntry"),
093 true);
094 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
095 "value.object.finder.cache.enabled.com.liferay.portlet.bookmarks.model.BookmarksEntry"),
096 true);
097 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
098 "value.object.column.bitmask.enabled.com.liferay.portlet.bookmarks.model.BookmarksEntry"),
099 true);
100 public static long FOLDERID_COLUMN_BITMASK = 1L;
101 public static long GROUPID_COLUMN_BITMASK = 2L;
102 public static long RESOURCEBLOCKID_COLUMN_BITMASK = 4L;
103 public static long USERID_COLUMN_BITMASK = 8L;
104 public static long UUID_COLUMN_BITMASK = 16L;
105
106
112 public static BookmarksEntry toModel(BookmarksEntrySoap soapModel) {
113 if (soapModel == null) {
114 return null;
115 }
116
117 BookmarksEntry model = new BookmarksEntryImpl();
118
119 model.setUuid(soapModel.getUuid());
120 model.setEntryId(soapModel.getEntryId());
121 model.setGroupId(soapModel.getGroupId());
122 model.setCompanyId(soapModel.getCompanyId());
123 model.setUserId(soapModel.getUserId());
124 model.setUserName(soapModel.getUserName());
125 model.setCreateDate(soapModel.getCreateDate());
126 model.setModifiedDate(soapModel.getModifiedDate());
127 model.setResourceBlockId(soapModel.getResourceBlockId());
128 model.setFolderId(soapModel.getFolderId());
129 model.setName(soapModel.getName());
130 model.setUrl(soapModel.getUrl());
131 model.setDescription(soapModel.getDescription());
132 model.setVisits(soapModel.getVisits());
133 model.setPriority(soapModel.getPriority());
134
135 return model;
136 }
137
138
144 public static List<BookmarksEntry> toModels(BookmarksEntrySoap[] soapModels) {
145 if (soapModels == null) {
146 return null;
147 }
148
149 List<BookmarksEntry> models = new ArrayList<BookmarksEntry>(soapModels.length);
150
151 for (BookmarksEntrySoap soapModel : soapModels) {
152 models.add(toModel(soapModel));
153 }
154
155 return models;
156 }
157
158 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
159 "lock.expiration.time.com.liferay.portlet.bookmarks.model.BookmarksEntry"));
160
161 public BookmarksEntryModelImpl() {
162 }
163
164 public long getPrimaryKey() {
165 return _entryId;
166 }
167
168 public void setPrimaryKey(long primaryKey) {
169 setEntryId(primaryKey);
170 }
171
172 public Serializable getPrimaryKeyObj() {
173 return new Long(_entryId);
174 }
175
176 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
177 setPrimaryKey(((Long)primaryKeyObj).longValue());
178 }
179
180 public Class<?> getModelClass() {
181 return BookmarksEntry.class;
182 }
183
184 public String getModelClassName() {
185 return BookmarksEntry.class.getName();
186 }
187
188 @Override
189 public Map<String, Object> getModelAttributes() {
190 Map<String, Object> attributes = new HashMap<String, Object>();
191
192 attributes.put("uuid", getUuid());
193 attributes.put("entryId", getEntryId());
194 attributes.put("groupId", getGroupId());
195 attributes.put("companyId", getCompanyId());
196 attributes.put("userId", getUserId());
197 attributes.put("userName", getUserName());
198 attributes.put("createDate", getCreateDate());
199 attributes.put("modifiedDate", getModifiedDate());
200 attributes.put("resourceBlockId", getResourceBlockId());
201 attributes.put("folderId", getFolderId());
202 attributes.put("name", getName());
203 attributes.put("url", getUrl());
204 attributes.put("description", getDescription());
205 attributes.put("visits", getVisits());
206 attributes.put("priority", getPriority());
207
208 return attributes;
209 }
210
211 @Override
212 public void setModelAttributes(Map<String, Object> attributes) {
213 String uuid = (String)attributes.get("uuid");
214
215 if (uuid != null) {
216 setUuid(uuid);
217 }
218
219 Long entryId = (Long)attributes.get("entryId");
220
221 if (entryId != null) {
222 setEntryId(entryId);
223 }
224
225 Long groupId = (Long)attributes.get("groupId");
226
227 if (groupId != null) {
228 setGroupId(groupId);
229 }
230
231 Long companyId = (Long)attributes.get("companyId");
232
233 if (companyId != null) {
234 setCompanyId(companyId);
235 }
236
237 Long userId = (Long)attributes.get("userId");
238
239 if (userId != null) {
240 setUserId(userId);
241 }
242
243 String userName = (String)attributes.get("userName");
244
245 if (userName != null) {
246 setUserName(userName);
247 }
248
249 Date createDate = (Date)attributes.get("createDate");
250
251 if (createDate != null) {
252 setCreateDate(createDate);
253 }
254
255 Date modifiedDate = (Date)attributes.get("modifiedDate");
256
257 if (modifiedDate != null) {
258 setModifiedDate(modifiedDate);
259 }
260
261 Long resourceBlockId = (Long)attributes.get("resourceBlockId");
262
263 if (resourceBlockId != null) {
264 setResourceBlockId(resourceBlockId);
265 }
266
267 Long folderId = (Long)attributes.get("folderId");
268
269 if (folderId != null) {
270 setFolderId(folderId);
271 }
272
273 String name = (String)attributes.get("name");
274
275 if (name != null) {
276 setName(name);
277 }
278
279 String url = (String)attributes.get("url");
280
281 if (url != null) {
282 setUrl(url);
283 }
284
285 String description = (String)attributes.get("description");
286
287 if (description != null) {
288 setDescription(description);
289 }
290
291 Integer visits = (Integer)attributes.get("visits");
292
293 if (visits != null) {
294 setVisits(visits);
295 }
296
297 Integer priority = (Integer)attributes.get("priority");
298
299 if (priority != null) {
300 setPriority(priority);
301 }
302 }
303
304 @JSON
305 public String getUuid() {
306 if (_uuid == null) {
307 return StringPool.BLANK;
308 }
309 else {
310 return _uuid;
311 }
312 }
313
314 public void setUuid(String uuid) {
315 if (_originalUuid == null) {
316 _originalUuid = _uuid;
317 }
318
319 _uuid = uuid;
320 }
321
322 public String getOriginalUuid() {
323 return GetterUtil.getString(_originalUuid);
324 }
325
326 @JSON
327 public long getEntryId() {
328 return _entryId;
329 }
330
331 public void setEntryId(long entryId) {
332 _entryId = entryId;
333 }
334
335 @JSON
336 public long getGroupId() {
337 return _groupId;
338 }
339
340 public void setGroupId(long groupId) {
341 _columnBitmask |= GROUPID_COLUMN_BITMASK;
342
343 if (!_setOriginalGroupId) {
344 _setOriginalGroupId = true;
345
346 _originalGroupId = _groupId;
347 }
348
349 _groupId = groupId;
350 }
351
352 public long getOriginalGroupId() {
353 return _originalGroupId;
354 }
355
356 @JSON
357 public long getCompanyId() {
358 return _companyId;
359 }
360
361 public void setCompanyId(long companyId) {
362 _companyId = companyId;
363 }
364
365 @JSON
366 public long getUserId() {
367 return _userId;
368 }
369
370 public void setUserId(long userId) {
371 _columnBitmask |= USERID_COLUMN_BITMASK;
372
373 if (!_setOriginalUserId) {
374 _setOriginalUserId = true;
375
376 _originalUserId = _userId;
377 }
378
379 _userId = userId;
380 }
381
382 public String getUserUuid() throws SystemException {
383 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
384 }
385
386 public void setUserUuid(String userUuid) {
387 _userUuid = userUuid;
388 }
389
390 public long getOriginalUserId() {
391 return _originalUserId;
392 }
393
394 @JSON
395 public String getUserName() {
396 if (_userName == null) {
397 return StringPool.BLANK;
398 }
399 else {
400 return _userName;
401 }
402 }
403
404 public void setUserName(String userName) {
405 _userName = userName;
406 }
407
408 @JSON
409 public Date getCreateDate() {
410 return _createDate;
411 }
412
413 public void setCreateDate(Date createDate) {
414 _createDate = createDate;
415 }
416
417 @JSON
418 public Date getModifiedDate() {
419 return _modifiedDate;
420 }
421
422 public void setModifiedDate(Date modifiedDate) {
423 _modifiedDate = modifiedDate;
424 }
425
426 @JSON
427 public long getResourceBlockId() {
428 return _resourceBlockId;
429 }
430
431 public void setResourceBlockId(long resourceBlockId) {
432 _columnBitmask |= RESOURCEBLOCKID_COLUMN_BITMASK;
433
434 if (!_setOriginalResourceBlockId) {
435 _setOriginalResourceBlockId = true;
436
437 _originalResourceBlockId = _resourceBlockId;
438 }
439
440 _resourceBlockId = resourceBlockId;
441 }
442
443 public long getOriginalResourceBlockId() {
444 return _originalResourceBlockId;
445 }
446
447 @JSON
448 public long getFolderId() {
449 return _folderId;
450 }
451
452 public void setFolderId(long folderId) {
453 _columnBitmask = -1L;
454
455 if (!_setOriginalFolderId) {
456 _setOriginalFolderId = true;
457
458 _originalFolderId = _folderId;
459 }
460
461 _folderId = folderId;
462 }
463
464 public long getOriginalFolderId() {
465 return _originalFolderId;
466 }
467
468 @JSON
469 public String getName() {
470 if (_name == null) {
471 return StringPool.BLANK;
472 }
473 else {
474 return _name;
475 }
476 }
477
478 public void setName(String name) {
479 _columnBitmask = -1L;
480
481 _name = name;
482 }
483
484 @JSON
485 public String getUrl() {
486 if (_url == null) {
487 return StringPool.BLANK;
488 }
489 else {
490 return _url;
491 }
492 }
493
494 public void setUrl(String url) {
495 _url = url;
496 }
497
498 @JSON
499 public String getDescription() {
500 if (_description == null) {
501 return StringPool.BLANK;
502 }
503 else {
504 return _description;
505 }
506 }
507
508 public void setDescription(String description) {
509 _description = description;
510 }
511
512 @JSON
513 public int getVisits() {
514 return _visits;
515 }
516
517 public void setVisits(int visits) {
518 _visits = visits;
519 }
520
521 @JSON
522 public int getPriority() {
523 return _priority;
524 }
525
526 public void setPriority(int priority) {
527 _priority = priority;
528 }
529
530 public long getColumnBitmask() {
531 return _columnBitmask;
532 }
533
534 @Override
535 public ExpandoBridge getExpandoBridge() {
536 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
537 BookmarksEntry.class.getName(), getPrimaryKey());
538 }
539
540 @Override
541 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
542 ExpandoBridge expandoBridge = getExpandoBridge();
543
544 expandoBridge.setAttributes(serviceContext);
545 }
546
547 @Override
548 public BookmarksEntry toEscapedModel() {
549 if (_escapedModel == null) {
550 _escapedModel = (BookmarksEntry)ProxyUtil.newProxyInstance(_classLoader,
551 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
552 }
553
554 return _escapedModel;
555 }
556
557 public BookmarksEntry toUnescapedModel() {
558 return (BookmarksEntry)this;
559 }
560
561 @Override
562 public Object clone() {
563 BookmarksEntryImpl bookmarksEntryImpl = new BookmarksEntryImpl();
564
565 bookmarksEntryImpl.setUuid(getUuid());
566 bookmarksEntryImpl.setEntryId(getEntryId());
567 bookmarksEntryImpl.setGroupId(getGroupId());
568 bookmarksEntryImpl.setCompanyId(getCompanyId());
569 bookmarksEntryImpl.setUserId(getUserId());
570 bookmarksEntryImpl.setUserName(getUserName());
571 bookmarksEntryImpl.setCreateDate(getCreateDate());
572 bookmarksEntryImpl.setModifiedDate(getModifiedDate());
573 bookmarksEntryImpl.setResourceBlockId(getResourceBlockId());
574 bookmarksEntryImpl.setFolderId(getFolderId());
575 bookmarksEntryImpl.setName(getName());
576 bookmarksEntryImpl.setUrl(getUrl());
577 bookmarksEntryImpl.setDescription(getDescription());
578 bookmarksEntryImpl.setVisits(getVisits());
579 bookmarksEntryImpl.setPriority(getPriority());
580
581 bookmarksEntryImpl.resetOriginalValues();
582
583 return bookmarksEntryImpl;
584 }
585
586 public int compareTo(BookmarksEntry bookmarksEntry) {
587 int value = 0;
588
589 if (getFolderId() < bookmarksEntry.getFolderId()) {
590 value = -1;
591 }
592 else if (getFolderId() > bookmarksEntry.getFolderId()) {
593 value = 1;
594 }
595 else {
596 value = 0;
597 }
598
599 if (value != 0) {
600 return value;
601 }
602
603 value = getName().toLowerCase()
604 .compareTo(bookmarksEntry.getName().toLowerCase());
605
606 if (value != 0) {
607 return value;
608 }
609
610 return 0;
611 }
612
613 @Override
614 public boolean equals(Object obj) {
615 if (this == obj) {
616 return true;
617 }
618
619 if (!(obj instanceof BookmarksEntry)) {
620 return false;
621 }
622
623 BookmarksEntry bookmarksEntry = (BookmarksEntry)obj;
624
625 long primaryKey = bookmarksEntry.getPrimaryKey();
626
627 if (getPrimaryKey() == primaryKey) {
628 return true;
629 }
630 else {
631 return false;
632 }
633 }
634
635 @Override
636 public int hashCode() {
637 return (int)getPrimaryKey();
638 }
639
640 @Override
641 public void resetOriginalValues() {
642 BookmarksEntryModelImpl bookmarksEntryModelImpl = this;
643
644 bookmarksEntryModelImpl._originalUuid = bookmarksEntryModelImpl._uuid;
645
646 bookmarksEntryModelImpl._originalGroupId = bookmarksEntryModelImpl._groupId;
647
648 bookmarksEntryModelImpl._setOriginalGroupId = false;
649
650 bookmarksEntryModelImpl._originalUserId = bookmarksEntryModelImpl._userId;
651
652 bookmarksEntryModelImpl._setOriginalUserId = false;
653
654 bookmarksEntryModelImpl._originalResourceBlockId = bookmarksEntryModelImpl._resourceBlockId;
655
656 bookmarksEntryModelImpl._setOriginalResourceBlockId = false;
657
658 bookmarksEntryModelImpl._originalFolderId = bookmarksEntryModelImpl._folderId;
659
660 bookmarksEntryModelImpl._setOriginalFolderId = false;
661
662 bookmarksEntryModelImpl._columnBitmask = 0;
663 }
664
665 @Override
666 public CacheModel<BookmarksEntry> toCacheModel() {
667 BookmarksEntryCacheModel bookmarksEntryCacheModel = new BookmarksEntryCacheModel();
668
669 bookmarksEntryCacheModel.uuid = getUuid();
670
671 String uuid = bookmarksEntryCacheModel.uuid;
672
673 if ((uuid != null) && (uuid.length() == 0)) {
674 bookmarksEntryCacheModel.uuid = null;
675 }
676
677 bookmarksEntryCacheModel.entryId = getEntryId();
678
679 bookmarksEntryCacheModel.groupId = getGroupId();
680
681 bookmarksEntryCacheModel.companyId = getCompanyId();
682
683 bookmarksEntryCacheModel.userId = getUserId();
684
685 bookmarksEntryCacheModel.userName = getUserName();
686
687 String userName = bookmarksEntryCacheModel.userName;
688
689 if ((userName != null) && (userName.length() == 0)) {
690 bookmarksEntryCacheModel.userName = null;
691 }
692
693 Date createDate = getCreateDate();
694
695 if (createDate != null) {
696 bookmarksEntryCacheModel.createDate = createDate.getTime();
697 }
698 else {
699 bookmarksEntryCacheModel.createDate = Long.MIN_VALUE;
700 }
701
702 Date modifiedDate = getModifiedDate();
703
704 if (modifiedDate != null) {
705 bookmarksEntryCacheModel.modifiedDate = modifiedDate.getTime();
706 }
707 else {
708 bookmarksEntryCacheModel.modifiedDate = Long.MIN_VALUE;
709 }
710
711 bookmarksEntryCacheModel.resourceBlockId = getResourceBlockId();
712
713 bookmarksEntryCacheModel.folderId = getFolderId();
714
715 bookmarksEntryCacheModel.name = getName();
716
717 String name = bookmarksEntryCacheModel.name;
718
719 if ((name != null) && (name.length() == 0)) {
720 bookmarksEntryCacheModel.name = null;
721 }
722
723 bookmarksEntryCacheModel.url = getUrl();
724
725 String url = bookmarksEntryCacheModel.url;
726
727 if ((url != null) && (url.length() == 0)) {
728 bookmarksEntryCacheModel.url = null;
729 }
730
731 bookmarksEntryCacheModel.description = getDescription();
732
733 String description = bookmarksEntryCacheModel.description;
734
735 if ((description != null) && (description.length() == 0)) {
736 bookmarksEntryCacheModel.description = null;
737 }
738
739 bookmarksEntryCacheModel.visits = getVisits();
740
741 bookmarksEntryCacheModel.priority = getPriority();
742
743 return bookmarksEntryCacheModel;
744 }
745
746 @Override
747 public String toString() {
748 StringBundler sb = new StringBundler(31);
749
750 sb.append("{uuid=");
751 sb.append(getUuid());
752 sb.append(", entryId=");
753 sb.append(getEntryId());
754 sb.append(", groupId=");
755 sb.append(getGroupId());
756 sb.append(", companyId=");
757 sb.append(getCompanyId());
758 sb.append(", userId=");
759 sb.append(getUserId());
760 sb.append(", userName=");
761 sb.append(getUserName());
762 sb.append(", createDate=");
763 sb.append(getCreateDate());
764 sb.append(", modifiedDate=");
765 sb.append(getModifiedDate());
766 sb.append(", resourceBlockId=");
767 sb.append(getResourceBlockId());
768 sb.append(", folderId=");
769 sb.append(getFolderId());
770 sb.append(", name=");
771 sb.append(getName());
772 sb.append(", url=");
773 sb.append(getUrl());
774 sb.append(", description=");
775 sb.append(getDescription());
776 sb.append(", visits=");
777 sb.append(getVisits());
778 sb.append(", priority=");
779 sb.append(getPriority());
780 sb.append("}");
781
782 return sb.toString();
783 }
784
785 public String toXmlString() {
786 StringBundler sb = new StringBundler(49);
787
788 sb.append("<model><model-name>");
789 sb.append("com.liferay.portlet.bookmarks.model.BookmarksEntry");
790 sb.append("</model-name>");
791
792 sb.append(
793 "<column><column-name>uuid</column-name><column-value><![CDATA[");
794 sb.append(getUuid());
795 sb.append("]]></column-value></column>");
796 sb.append(
797 "<column><column-name>entryId</column-name><column-value><![CDATA[");
798 sb.append(getEntryId());
799 sb.append("]]></column-value></column>");
800 sb.append(
801 "<column><column-name>groupId</column-name><column-value><![CDATA[");
802 sb.append(getGroupId());
803 sb.append("]]></column-value></column>");
804 sb.append(
805 "<column><column-name>companyId</column-name><column-value><![CDATA[");
806 sb.append(getCompanyId());
807 sb.append("]]></column-value></column>");
808 sb.append(
809 "<column><column-name>userId</column-name><column-value><![CDATA[");
810 sb.append(getUserId());
811 sb.append("]]></column-value></column>");
812 sb.append(
813 "<column><column-name>userName</column-name><column-value><![CDATA[");
814 sb.append(getUserName());
815 sb.append("]]></column-value></column>");
816 sb.append(
817 "<column><column-name>createDate</column-name><column-value><![CDATA[");
818 sb.append(getCreateDate());
819 sb.append("]]></column-value></column>");
820 sb.append(
821 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
822 sb.append(getModifiedDate());
823 sb.append("]]></column-value></column>");
824 sb.append(
825 "<column><column-name>resourceBlockId</column-name><column-value><![CDATA[");
826 sb.append(getResourceBlockId());
827 sb.append("]]></column-value></column>");
828 sb.append(
829 "<column><column-name>folderId</column-name><column-value><![CDATA[");
830 sb.append(getFolderId());
831 sb.append("]]></column-value></column>");
832 sb.append(
833 "<column><column-name>name</column-name><column-value><![CDATA[");
834 sb.append(getName());
835 sb.append("]]></column-value></column>");
836 sb.append(
837 "<column><column-name>url</column-name><column-value><![CDATA[");
838 sb.append(getUrl());
839 sb.append("]]></column-value></column>");
840 sb.append(
841 "<column><column-name>description</column-name><column-value><![CDATA[");
842 sb.append(getDescription());
843 sb.append("]]></column-value></column>");
844 sb.append(
845 "<column><column-name>visits</column-name><column-value><![CDATA[");
846 sb.append(getVisits());
847 sb.append("]]></column-value></column>");
848 sb.append(
849 "<column><column-name>priority</column-name><column-value><![CDATA[");
850 sb.append(getPriority());
851 sb.append("]]></column-value></column>");
852
853 sb.append("</model>");
854
855 return sb.toString();
856 }
857
858 private static ClassLoader _classLoader = BookmarksEntry.class.getClassLoader();
859 private static Class<?>[] _escapedModelInterfaces = new Class[] {
860 BookmarksEntry.class
861 };
862 private String _uuid;
863 private String _originalUuid;
864 private long _entryId;
865 private long _groupId;
866 private long _originalGroupId;
867 private boolean _setOriginalGroupId;
868 private long _companyId;
869 private long _userId;
870 private String _userUuid;
871 private long _originalUserId;
872 private boolean _setOriginalUserId;
873 private String _userName;
874 private Date _createDate;
875 private Date _modifiedDate;
876 private long _resourceBlockId;
877 private long _originalResourceBlockId;
878 private boolean _setOriginalResourceBlockId;
879 private long _folderId;
880 private long _originalFolderId;
881 private boolean _setOriginalFolderId;
882 private String _name;
883 private String _url;
884 private String _description;
885 private int _visits;
886 private int _priority;
887 private long _columnBitmask;
888 private BookmarksEntry _escapedModel;
889 }