001
014
015 package com.liferay.portlet.documentlibrary.model.impl;
016
017 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018 import com.liferay.portal.kernel.exception.PortalException;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.json.JSON;
021 import com.liferay.portal.kernel.lar.StagedModelType;
022 import com.liferay.portal.kernel.trash.TrashHandler;
023 import com.liferay.portal.kernel.trash.TrashHandlerRegistryUtil;
024 import com.liferay.portal.kernel.util.GetterUtil;
025 import com.liferay.portal.kernel.util.ProxyUtil;
026 import com.liferay.portal.kernel.util.StringBundler;
027 import com.liferay.portal.kernel.util.StringPool;
028 import com.liferay.portal.kernel.util.Validator;
029 import com.liferay.portal.kernel.workflow.WorkflowConstants;
030 import com.liferay.portal.model.CacheModel;
031 import com.liferay.portal.model.ContainerModel;
032 import com.liferay.portal.model.TrashedModel;
033 import com.liferay.portal.model.impl.BaseModelImpl;
034 import com.liferay.portal.service.ServiceContext;
035 import com.liferay.portal.util.PortalUtil;
036
037 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
038 import com.liferay.portlet.documentlibrary.model.DLFileEntryModel;
039 import com.liferay.portlet.documentlibrary.model.DLFileEntrySoap;
040 import com.liferay.portlet.expando.model.ExpandoBridge;
041 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
042 import com.liferay.portlet.trash.model.TrashEntry;
043 import com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil;
044
045 import java.io.Serializable;
046
047 import java.sql.Types;
048
049 import java.util.ArrayList;
050 import java.util.Date;
051 import java.util.HashMap;
052 import java.util.List;
053 import java.util.Map;
054
055
068 @JSON(strict = true)
069 public class DLFileEntryModelImpl extends BaseModelImpl<DLFileEntry>
070 implements DLFileEntryModel {
071
076 public static final String TABLE_NAME = "DLFileEntry";
077 public static final Object[][] TABLE_COLUMNS = {
078 { "uuid_", Types.VARCHAR },
079 { "fileEntryId", Types.BIGINT },
080 { "groupId", Types.BIGINT },
081 { "companyId", Types.BIGINT },
082 { "userId", Types.BIGINT },
083 { "userName", Types.VARCHAR },
084 { "createDate", Types.TIMESTAMP },
085 { "modifiedDate", Types.TIMESTAMP },
086 { "classNameId", Types.BIGINT },
087 { "classPK", Types.BIGINT },
088 { "repositoryId", Types.BIGINT },
089 { "folderId", Types.BIGINT },
090 { "treePath", Types.VARCHAR },
091 { "name", Types.VARCHAR },
092 { "extension", Types.VARCHAR },
093 { "mimeType", Types.VARCHAR },
094 { "title", Types.VARCHAR },
095 { "description", Types.VARCHAR },
096 { "extraSettings", Types.CLOB },
097 { "fileEntryTypeId", Types.BIGINT },
098 { "version", Types.VARCHAR },
099 { "size_", Types.BIGINT },
100 { "readCount", Types.INTEGER },
101 { "smallImageId", Types.BIGINT },
102 { "largeImageId", Types.BIGINT },
103 { "custom1ImageId", Types.BIGINT },
104 { "custom2ImageId", Types.BIGINT },
105 { "manualCheckInRequired", Types.BOOLEAN }
106 };
107 public static final String TABLE_SQL_CREATE = "create table DLFileEntry (uuid_ VARCHAR(75) null,fileEntryId 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,repositoryId LONG,folderId LONG,treePath STRING null,name VARCHAR(255) null,extension VARCHAR(75) null,mimeType VARCHAR(75) null,title VARCHAR(255) null,description STRING null,extraSettings TEXT null,fileEntryTypeId LONG,version VARCHAR(75) null,size_ LONG,readCount INTEGER,smallImageId LONG,largeImageId LONG,custom1ImageId LONG,custom2ImageId LONG,manualCheckInRequired BOOLEAN)";
108 public static final String TABLE_SQL_DROP = "drop table DLFileEntry";
109 public static final String ORDER_BY_JPQL = " ORDER BY dlFileEntry.folderId ASC, dlFileEntry.name ASC";
110 public static final String ORDER_BY_SQL = " ORDER BY DLFileEntry.folderId ASC, DLFileEntry.name ASC";
111 public static final String DATA_SOURCE = "liferayDataSource";
112 public static final String SESSION_FACTORY = "liferaySessionFactory";
113 public static final String TX_MANAGER = "liferayTransactionManager";
114 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
115 "value.object.entity.cache.enabled.com.liferay.portlet.documentlibrary.model.DLFileEntry"),
116 true);
117 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
118 "value.object.finder.cache.enabled.com.liferay.portlet.documentlibrary.model.DLFileEntry"),
119 true);
120 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
121 "value.object.column.bitmask.enabled.com.liferay.portlet.documentlibrary.model.DLFileEntry"),
122 true);
123 public static long COMPANYID_COLUMN_BITMASK = 1L;
124 public static long CUSTOM1IMAGEID_COLUMN_BITMASK = 2L;
125 public static long CUSTOM2IMAGEID_COLUMN_BITMASK = 4L;
126 public static long FILEENTRYTYPEID_COLUMN_BITMASK = 8L;
127 public static long FOLDERID_COLUMN_BITMASK = 16L;
128 public static long GROUPID_COLUMN_BITMASK = 32L;
129 public static long LARGEIMAGEID_COLUMN_BITMASK = 64L;
130 public static long MIMETYPE_COLUMN_BITMASK = 128L;
131 public static long NAME_COLUMN_BITMASK = 256L;
132 public static long REPOSITORYID_COLUMN_BITMASK = 512L;
133 public static long SMALLIMAGEID_COLUMN_BITMASK = 1024L;
134 public static long TITLE_COLUMN_BITMASK = 2048L;
135 public static long USERID_COLUMN_BITMASK = 4096L;
136 public static long UUID_COLUMN_BITMASK = 8192L;
137
138
144 public static DLFileEntry toModel(DLFileEntrySoap soapModel) {
145 if (soapModel == null) {
146 return null;
147 }
148
149 DLFileEntry model = new DLFileEntryImpl();
150
151 model.setUuid(soapModel.getUuid());
152 model.setFileEntryId(soapModel.getFileEntryId());
153 model.setGroupId(soapModel.getGroupId());
154 model.setCompanyId(soapModel.getCompanyId());
155 model.setUserId(soapModel.getUserId());
156 model.setUserName(soapModel.getUserName());
157 model.setCreateDate(soapModel.getCreateDate());
158 model.setModifiedDate(soapModel.getModifiedDate());
159 model.setClassNameId(soapModel.getClassNameId());
160 model.setClassPK(soapModel.getClassPK());
161 model.setRepositoryId(soapModel.getRepositoryId());
162 model.setFolderId(soapModel.getFolderId());
163 model.setTreePath(soapModel.getTreePath());
164 model.setName(soapModel.getName());
165 model.setExtension(soapModel.getExtension());
166 model.setMimeType(soapModel.getMimeType());
167 model.setTitle(soapModel.getTitle());
168 model.setDescription(soapModel.getDescription());
169 model.setExtraSettings(soapModel.getExtraSettings());
170 model.setFileEntryTypeId(soapModel.getFileEntryTypeId());
171 model.setVersion(soapModel.getVersion());
172 model.setSize(soapModel.getSize());
173 model.setReadCount(soapModel.getReadCount());
174 model.setSmallImageId(soapModel.getSmallImageId());
175 model.setLargeImageId(soapModel.getLargeImageId());
176 model.setCustom1ImageId(soapModel.getCustom1ImageId());
177 model.setCustom2ImageId(soapModel.getCustom2ImageId());
178 model.setManualCheckInRequired(soapModel.getManualCheckInRequired());
179
180 return model;
181 }
182
183
189 public static List<DLFileEntry> toModels(DLFileEntrySoap[] soapModels) {
190 if (soapModels == null) {
191 return null;
192 }
193
194 List<DLFileEntry> models = new ArrayList<DLFileEntry>(soapModels.length);
195
196 for (DLFileEntrySoap soapModel : soapModels) {
197 models.add(toModel(soapModel));
198 }
199
200 return models;
201 }
202
203 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
204 "lock.expiration.time.com.liferay.portlet.documentlibrary.model.DLFileEntry"));
205
206 public DLFileEntryModelImpl() {
207 }
208
209 @Override
210 public long getPrimaryKey() {
211 return _fileEntryId;
212 }
213
214 @Override
215 public void setPrimaryKey(long primaryKey) {
216 setFileEntryId(primaryKey);
217 }
218
219 @Override
220 public Serializable getPrimaryKeyObj() {
221 return _fileEntryId;
222 }
223
224 @Override
225 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
226 setPrimaryKey(((Long)primaryKeyObj).longValue());
227 }
228
229 @Override
230 public Class<?> getModelClass() {
231 return DLFileEntry.class;
232 }
233
234 @Override
235 public String getModelClassName() {
236 return DLFileEntry.class.getName();
237 }
238
239 @Override
240 public Map<String, Object> getModelAttributes() {
241 Map<String, Object> attributes = new HashMap<String, Object>();
242
243 attributes.put("uuid", getUuid());
244 attributes.put("fileEntryId", getFileEntryId());
245 attributes.put("groupId", getGroupId());
246 attributes.put("companyId", getCompanyId());
247 attributes.put("userId", getUserId());
248 attributes.put("userName", getUserName());
249 attributes.put("createDate", getCreateDate());
250 attributes.put("modifiedDate", getModifiedDate());
251 attributes.put("classNameId", getClassNameId());
252 attributes.put("classPK", getClassPK());
253 attributes.put("repositoryId", getRepositoryId());
254 attributes.put("folderId", getFolderId());
255 attributes.put("treePath", getTreePath());
256 attributes.put("name", getName());
257 attributes.put("extension", getExtension());
258 attributes.put("mimeType", getMimeType());
259 attributes.put("title", getTitle());
260 attributes.put("description", getDescription());
261 attributes.put("extraSettings", getExtraSettings());
262 attributes.put("fileEntryTypeId", getFileEntryTypeId());
263 attributes.put("version", getVersion());
264 attributes.put("size", getSize());
265 attributes.put("readCount", getReadCount());
266 attributes.put("smallImageId", getSmallImageId());
267 attributes.put("largeImageId", getLargeImageId());
268 attributes.put("custom1ImageId", getCustom1ImageId());
269 attributes.put("custom2ImageId", getCustom2ImageId());
270 attributes.put("manualCheckInRequired", getManualCheckInRequired());
271
272 return attributes;
273 }
274
275 @Override
276 public void setModelAttributes(Map<String, Object> attributes) {
277 String uuid = (String)attributes.get("uuid");
278
279 if (uuid != null) {
280 setUuid(uuid);
281 }
282
283 Long fileEntryId = (Long)attributes.get("fileEntryId");
284
285 if (fileEntryId != null) {
286 setFileEntryId(fileEntryId);
287 }
288
289 Long groupId = (Long)attributes.get("groupId");
290
291 if (groupId != null) {
292 setGroupId(groupId);
293 }
294
295 Long companyId = (Long)attributes.get("companyId");
296
297 if (companyId != null) {
298 setCompanyId(companyId);
299 }
300
301 Long userId = (Long)attributes.get("userId");
302
303 if (userId != null) {
304 setUserId(userId);
305 }
306
307 String userName = (String)attributes.get("userName");
308
309 if (userName != null) {
310 setUserName(userName);
311 }
312
313 Date createDate = (Date)attributes.get("createDate");
314
315 if (createDate != null) {
316 setCreateDate(createDate);
317 }
318
319 Date modifiedDate = (Date)attributes.get("modifiedDate");
320
321 if (modifiedDate != null) {
322 setModifiedDate(modifiedDate);
323 }
324
325 Long classNameId = (Long)attributes.get("classNameId");
326
327 if (classNameId != null) {
328 setClassNameId(classNameId);
329 }
330
331 Long classPK = (Long)attributes.get("classPK");
332
333 if (classPK != null) {
334 setClassPK(classPK);
335 }
336
337 Long repositoryId = (Long)attributes.get("repositoryId");
338
339 if (repositoryId != null) {
340 setRepositoryId(repositoryId);
341 }
342
343 Long folderId = (Long)attributes.get("folderId");
344
345 if (folderId != null) {
346 setFolderId(folderId);
347 }
348
349 String treePath = (String)attributes.get("treePath");
350
351 if (treePath != null) {
352 setTreePath(treePath);
353 }
354
355 String name = (String)attributes.get("name");
356
357 if (name != null) {
358 setName(name);
359 }
360
361 String extension = (String)attributes.get("extension");
362
363 if (extension != null) {
364 setExtension(extension);
365 }
366
367 String mimeType = (String)attributes.get("mimeType");
368
369 if (mimeType != null) {
370 setMimeType(mimeType);
371 }
372
373 String title = (String)attributes.get("title");
374
375 if (title != null) {
376 setTitle(title);
377 }
378
379 String description = (String)attributes.get("description");
380
381 if (description != null) {
382 setDescription(description);
383 }
384
385 String extraSettings = (String)attributes.get("extraSettings");
386
387 if (extraSettings != null) {
388 setExtraSettings(extraSettings);
389 }
390
391 Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
392
393 if (fileEntryTypeId != null) {
394 setFileEntryTypeId(fileEntryTypeId);
395 }
396
397 String version = (String)attributes.get("version");
398
399 if (version != null) {
400 setVersion(version);
401 }
402
403 Long size = (Long)attributes.get("size");
404
405 if (size != null) {
406 setSize(size);
407 }
408
409 Integer readCount = (Integer)attributes.get("readCount");
410
411 if (readCount != null) {
412 setReadCount(readCount);
413 }
414
415 Long smallImageId = (Long)attributes.get("smallImageId");
416
417 if (smallImageId != null) {
418 setSmallImageId(smallImageId);
419 }
420
421 Long largeImageId = (Long)attributes.get("largeImageId");
422
423 if (largeImageId != null) {
424 setLargeImageId(largeImageId);
425 }
426
427 Long custom1ImageId = (Long)attributes.get("custom1ImageId");
428
429 if (custom1ImageId != null) {
430 setCustom1ImageId(custom1ImageId);
431 }
432
433 Long custom2ImageId = (Long)attributes.get("custom2ImageId");
434
435 if (custom2ImageId != null) {
436 setCustom2ImageId(custom2ImageId);
437 }
438
439 Boolean manualCheckInRequired = (Boolean)attributes.get(
440 "manualCheckInRequired");
441
442 if (manualCheckInRequired != null) {
443 setManualCheckInRequired(manualCheckInRequired);
444 }
445 }
446
447 @JSON
448 @Override
449 public String getUuid() {
450 if (_uuid == null) {
451 return StringPool.BLANK;
452 }
453 else {
454 return _uuid;
455 }
456 }
457
458 @Override
459 public void setUuid(String uuid) {
460 if (_originalUuid == null) {
461 _originalUuid = _uuid;
462 }
463
464 _uuid = uuid;
465 }
466
467 public String getOriginalUuid() {
468 return GetterUtil.getString(_originalUuid);
469 }
470
471 @JSON
472 @Override
473 public long getFileEntryId() {
474 return _fileEntryId;
475 }
476
477 @Override
478 public void setFileEntryId(long fileEntryId) {
479 _fileEntryId = fileEntryId;
480 }
481
482 @JSON
483 @Override
484 public long getGroupId() {
485 return _groupId;
486 }
487
488 @Override
489 public void setGroupId(long groupId) {
490 _columnBitmask |= GROUPID_COLUMN_BITMASK;
491
492 if (!_setOriginalGroupId) {
493 _setOriginalGroupId = true;
494
495 _originalGroupId = _groupId;
496 }
497
498 _groupId = groupId;
499 }
500
501 public long getOriginalGroupId() {
502 return _originalGroupId;
503 }
504
505 @JSON
506 @Override
507 public long getCompanyId() {
508 return _companyId;
509 }
510
511 @Override
512 public void setCompanyId(long companyId) {
513 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
514
515 if (!_setOriginalCompanyId) {
516 _setOriginalCompanyId = true;
517
518 _originalCompanyId = _companyId;
519 }
520
521 _companyId = companyId;
522 }
523
524 public long getOriginalCompanyId() {
525 return _originalCompanyId;
526 }
527
528 @JSON
529 @Override
530 public long getUserId() {
531 return _userId;
532 }
533
534 @Override
535 public void setUserId(long userId) {
536 _columnBitmask |= USERID_COLUMN_BITMASK;
537
538 if (!_setOriginalUserId) {
539 _setOriginalUserId = true;
540
541 _originalUserId = _userId;
542 }
543
544 _userId = userId;
545 }
546
547 @Override
548 public String getUserUuid() throws SystemException {
549 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
550 }
551
552 @Override
553 public void setUserUuid(String userUuid) {
554 _userUuid = userUuid;
555 }
556
557 public long getOriginalUserId() {
558 return _originalUserId;
559 }
560
561 @JSON
562 @Override
563 public String getUserName() {
564 if (_userName == null) {
565 return StringPool.BLANK;
566 }
567 else {
568 return _userName;
569 }
570 }
571
572 @Override
573 public void setUserName(String userName) {
574 _userName = userName;
575 }
576
577 @JSON
578 @Override
579 public Date getCreateDate() {
580 return _createDate;
581 }
582
583 @Override
584 public void setCreateDate(Date createDate) {
585 _createDate = createDate;
586 }
587
588 @JSON
589 @Override
590 public Date getModifiedDate() {
591 return _modifiedDate;
592 }
593
594 @Override
595 public void setModifiedDate(Date modifiedDate) {
596 _modifiedDate = modifiedDate;
597 }
598
599 @Override
600 public String getClassName() {
601 if (getClassNameId() <= 0) {
602 return StringPool.BLANK;
603 }
604
605 return PortalUtil.getClassName(getClassNameId());
606 }
607
608 @Override
609 public void setClassName(String className) {
610 long classNameId = 0;
611
612 if (Validator.isNotNull(className)) {
613 classNameId = PortalUtil.getClassNameId(className);
614 }
615
616 setClassNameId(classNameId);
617 }
618
619 @JSON
620 @Override
621 public long getClassNameId() {
622 return _classNameId;
623 }
624
625 @Override
626 public void setClassNameId(long classNameId) {
627 _classNameId = classNameId;
628 }
629
630 @JSON
631 @Override
632 public long getClassPK() {
633 return _classPK;
634 }
635
636 @Override
637 public void setClassPK(long classPK) {
638 _classPK = classPK;
639 }
640
641 @JSON
642 @Override
643 public long getRepositoryId() {
644 return _repositoryId;
645 }
646
647 @Override
648 public void setRepositoryId(long repositoryId) {
649 _columnBitmask |= REPOSITORYID_COLUMN_BITMASK;
650
651 if (!_setOriginalRepositoryId) {
652 _setOriginalRepositoryId = true;
653
654 _originalRepositoryId = _repositoryId;
655 }
656
657 _repositoryId = repositoryId;
658 }
659
660 public long getOriginalRepositoryId() {
661 return _originalRepositoryId;
662 }
663
664 @JSON
665 @Override
666 public long getFolderId() {
667 return _folderId;
668 }
669
670 @Override
671 public void setFolderId(long folderId) {
672 _columnBitmask = -1L;
673
674 if (!_setOriginalFolderId) {
675 _setOriginalFolderId = true;
676
677 _originalFolderId = _folderId;
678 }
679
680 _folderId = folderId;
681 }
682
683 public long getOriginalFolderId() {
684 return _originalFolderId;
685 }
686
687 @JSON
688 @Override
689 public String getTreePath() {
690 if (_treePath == null) {
691 return StringPool.BLANK;
692 }
693 else {
694 return _treePath;
695 }
696 }
697
698 @Override
699 public void setTreePath(String treePath) {
700 _treePath = treePath;
701 }
702
703 @JSON
704 @Override
705 public String getName() {
706 if (_name == null) {
707 return StringPool.BLANK;
708 }
709 else {
710 return _name;
711 }
712 }
713
714 @Override
715 public void setName(String name) {
716 _columnBitmask = -1L;
717
718 if (_originalName == null) {
719 _originalName = _name;
720 }
721
722 _name = name;
723 }
724
725 public String getOriginalName() {
726 return GetterUtil.getString(_originalName);
727 }
728
729 @JSON
730 @Override
731 public String getExtension() {
732 if (_extension == null) {
733 return StringPool.BLANK;
734 }
735 else {
736 return _extension;
737 }
738 }
739
740 @Override
741 public void setExtension(String extension) {
742 _extension = extension;
743 }
744
745 @JSON
746 @Override
747 public String getMimeType() {
748 if (_mimeType == null) {
749 return StringPool.BLANK;
750 }
751 else {
752 return _mimeType;
753 }
754 }
755
756 @Override
757 public void setMimeType(String mimeType) {
758 _columnBitmask |= MIMETYPE_COLUMN_BITMASK;
759
760 if (_originalMimeType == null) {
761 _originalMimeType = _mimeType;
762 }
763
764 _mimeType = mimeType;
765 }
766
767 public String getOriginalMimeType() {
768 return GetterUtil.getString(_originalMimeType);
769 }
770
771 @JSON
772 @Override
773 public String getTitle() {
774 if (_title == null) {
775 return StringPool.BLANK;
776 }
777 else {
778 return _title;
779 }
780 }
781
782 @Override
783 public void setTitle(String title) {
784 _columnBitmask |= TITLE_COLUMN_BITMASK;
785
786 if (_originalTitle == null) {
787 _originalTitle = _title;
788 }
789
790 _title = title;
791 }
792
793 public String getOriginalTitle() {
794 return GetterUtil.getString(_originalTitle);
795 }
796
797 @JSON
798 @Override
799 public String getDescription() {
800 if (_description == null) {
801 return StringPool.BLANK;
802 }
803 else {
804 return _description;
805 }
806 }
807
808 @Override
809 public void setDescription(String description) {
810 _description = description;
811 }
812
813 @JSON
814 @Override
815 public String getExtraSettings() {
816 if (_extraSettings == null) {
817 return StringPool.BLANK;
818 }
819 else {
820 return _extraSettings;
821 }
822 }
823
824 @Override
825 public void setExtraSettings(String extraSettings) {
826 _extraSettings = extraSettings;
827 }
828
829 @JSON
830 @Override
831 public long getFileEntryTypeId() {
832 return _fileEntryTypeId;
833 }
834
835 @Override
836 public void setFileEntryTypeId(long fileEntryTypeId) {
837 _columnBitmask |= FILEENTRYTYPEID_COLUMN_BITMASK;
838
839 if (!_setOriginalFileEntryTypeId) {
840 _setOriginalFileEntryTypeId = true;
841
842 _originalFileEntryTypeId = _fileEntryTypeId;
843 }
844
845 _fileEntryTypeId = fileEntryTypeId;
846 }
847
848 public long getOriginalFileEntryTypeId() {
849 return _originalFileEntryTypeId;
850 }
851
852 @JSON
853 @Override
854 public String getVersion() {
855 if (_version == null) {
856 return StringPool.BLANK;
857 }
858 else {
859 return _version;
860 }
861 }
862
863 @Override
864 public void setVersion(String version) {
865 _version = version;
866 }
867
868 @JSON
869 @Override
870 public long getSize() {
871 return _size;
872 }
873
874 @Override
875 public void setSize(long size) {
876 _size = size;
877 }
878
879 @JSON
880 @Override
881 public int getReadCount() {
882 return _readCount;
883 }
884
885 @Override
886 public void setReadCount(int readCount) {
887 _readCount = readCount;
888 }
889
890 @JSON
891 @Override
892 public long getSmallImageId() {
893 return _smallImageId;
894 }
895
896 @Override
897 public void setSmallImageId(long smallImageId) {
898 _columnBitmask |= SMALLIMAGEID_COLUMN_BITMASK;
899
900 if (!_setOriginalSmallImageId) {
901 _setOriginalSmallImageId = true;
902
903 _originalSmallImageId = _smallImageId;
904 }
905
906 _smallImageId = smallImageId;
907 }
908
909 public long getOriginalSmallImageId() {
910 return _originalSmallImageId;
911 }
912
913 @JSON
914 @Override
915 public long getLargeImageId() {
916 return _largeImageId;
917 }
918
919 @Override
920 public void setLargeImageId(long largeImageId) {
921 _columnBitmask |= LARGEIMAGEID_COLUMN_BITMASK;
922
923 if (!_setOriginalLargeImageId) {
924 _setOriginalLargeImageId = true;
925
926 _originalLargeImageId = _largeImageId;
927 }
928
929 _largeImageId = largeImageId;
930 }
931
932 public long getOriginalLargeImageId() {
933 return _originalLargeImageId;
934 }
935
936 @JSON
937 @Override
938 public long getCustom1ImageId() {
939 return _custom1ImageId;
940 }
941
942 @Override
943 public void setCustom1ImageId(long custom1ImageId) {
944 _columnBitmask |= CUSTOM1IMAGEID_COLUMN_BITMASK;
945
946 if (!_setOriginalCustom1ImageId) {
947 _setOriginalCustom1ImageId = true;
948
949 _originalCustom1ImageId = _custom1ImageId;
950 }
951
952 _custom1ImageId = custom1ImageId;
953 }
954
955 public long getOriginalCustom1ImageId() {
956 return _originalCustom1ImageId;
957 }
958
959 @JSON
960 @Override
961 public long getCustom2ImageId() {
962 return _custom2ImageId;
963 }
964
965 @Override
966 public void setCustom2ImageId(long custom2ImageId) {
967 _columnBitmask |= CUSTOM2IMAGEID_COLUMN_BITMASK;
968
969 if (!_setOriginalCustom2ImageId) {
970 _setOriginalCustom2ImageId = true;
971
972 _originalCustom2ImageId = _custom2ImageId;
973 }
974
975 _custom2ImageId = custom2ImageId;
976 }
977
978 public long getOriginalCustom2ImageId() {
979 return _originalCustom2ImageId;
980 }
981
982 @JSON
983 @Override
984 public boolean getManualCheckInRequired() {
985 return _manualCheckInRequired;
986 }
987
988 @Override
989 public boolean isManualCheckInRequired() {
990 return _manualCheckInRequired;
991 }
992
993 @Override
994 public void setManualCheckInRequired(boolean manualCheckInRequired) {
995 _manualCheckInRequired = manualCheckInRequired;
996 }
997
998 @Override
999 public StagedModelType getStagedModelType() {
1000 return new StagedModelType(PortalUtil.getClassNameId(
1001 DLFileEntry.class.getName()), getClassNameId());
1002 }
1003
1004 @Override
1005 public int getStatus() {
1006 return 0;
1007 }
1008
1009 @Override
1010 public TrashEntry getTrashEntry() throws PortalException, SystemException {
1011 if (!isInTrash()) {
1012 return null;
1013 }
1014
1015 TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
1016 getTrashEntryClassPK());
1017
1018 if (trashEntry != null) {
1019 return trashEntry;
1020 }
1021
1022 TrashHandler trashHandler = getTrashHandler();
1023
1024 if (!Validator.isNull(trashHandler.getContainerModelClassName())) {
1025 ContainerModel containerModel = trashHandler.getParentContainerModel(this);
1026
1027 while (containerModel != null) {
1028 if (containerModel instanceof TrashedModel) {
1029 TrashedModel trashedModel = (TrashedModel)containerModel;
1030
1031 return trashedModel.getTrashEntry();
1032 }
1033
1034 trashHandler = TrashHandlerRegistryUtil.getTrashHandler(trashHandler.getContainerModelClassName());
1035
1036 if (trashHandler == null) {
1037 return null;
1038 }
1039
1040 containerModel = trashHandler.getContainerModel(containerModel.getParentContainerModelId());
1041 }
1042 }
1043
1044 return null;
1045 }
1046
1047 @Override
1048 public long getTrashEntryClassPK() {
1049 return getPrimaryKey();
1050 }
1051
1052 @Override
1053 public TrashHandler getTrashHandler() {
1054 return TrashHandlerRegistryUtil.getTrashHandler(getModelClassName());
1055 }
1056
1057 @Override
1058 public boolean isInTrash() {
1059 if (getStatus() == WorkflowConstants.STATUS_IN_TRASH) {
1060 return true;
1061 }
1062 else {
1063 return false;
1064 }
1065 }
1066
1067 @Override
1068 public boolean isInTrashContainer() {
1069 TrashHandler trashHandler = getTrashHandler();
1070
1071 if ((trashHandler == null) ||
1072 Validator.isNull(trashHandler.getContainerModelClassName())) {
1073 return false;
1074 }
1075
1076 try {
1077 ContainerModel containerModel = trashHandler.getParentContainerModel(this);
1078
1079 if (containerModel == null) {
1080 return false;
1081 }
1082
1083 if (containerModel instanceof TrashedModel) {
1084 return ((TrashedModel)containerModel).isInTrash();
1085 }
1086 }
1087 catch (Exception e) {
1088 }
1089
1090 return false;
1091 }
1092
1093 public long getColumnBitmask() {
1094 return _columnBitmask;
1095 }
1096
1097 @Override
1098 public ExpandoBridge getExpandoBridge() {
1099 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1100 DLFileEntry.class.getName(), getPrimaryKey());
1101 }
1102
1103 @Override
1104 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1105 ExpandoBridge expandoBridge = getExpandoBridge();
1106
1107 expandoBridge.setAttributes(serviceContext);
1108 }
1109
1110 @Override
1111 public DLFileEntry toEscapedModel() {
1112 if (_escapedModel == null) {
1113 _escapedModel = (DLFileEntry)ProxyUtil.newProxyInstance(_classLoader,
1114 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1115 }
1116
1117 return _escapedModel;
1118 }
1119
1120 @Override
1121 public Object clone() {
1122 DLFileEntryImpl dlFileEntryImpl = new DLFileEntryImpl();
1123
1124 dlFileEntryImpl.setUuid(getUuid());
1125 dlFileEntryImpl.setFileEntryId(getFileEntryId());
1126 dlFileEntryImpl.setGroupId(getGroupId());
1127 dlFileEntryImpl.setCompanyId(getCompanyId());
1128 dlFileEntryImpl.setUserId(getUserId());
1129 dlFileEntryImpl.setUserName(getUserName());
1130 dlFileEntryImpl.setCreateDate(getCreateDate());
1131 dlFileEntryImpl.setModifiedDate(getModifiedDate());
1132 dlFileEntryImpl.setClassNameId(getClassNameId());
1133 dlFileEntryImpl.setClassPK(getClassPK());
1134 dlFileEntryImpl.setRepositoryId(getRepositoryId());
1135 dlFileEntryImpl.setFolderId(getFolderId());
1136 dlFileEntryImpl.setTreePath(getTreePath());
1137 dlFileEntryImpl.setName(getName());
1138 dlFileEntryImpl.setExtension(getExtension());
1139 dlFileEntryImpl.setMimeType(getMimeType());
1140 dlFileEntryImpl.setTitle(getTitle());
1141 dlFileEntryImpl.setDescription(getDescription());
1142 dlFileEntryImpl.setExtraSettings(getExtraSettings());
1143 dlFileEntryImpl.setFileEntryTypeId(getFileEntryTypeId());
1144 dlFileEntryImpl.setVersion(getVersion());
1145 dlFileEntryImpl.setSize(getSize());
1146 dlFileEntryImpl.setReadCount(getReadCount());
1147 dlFileEntryImpl.setSmallImageId(getSmallImageId());
1148 dlFileEntryImpl.setLargeImageId(getLargeImageId());
1149 dlFileEntryImpl.setCustom1ImageId(getCustom1ImageId());
1150 dlFileEntryImpl.setCustom2ImageId(getCustom2ImageId());
1151 dlFileEntryImpl.setManualCheckInRequired(getManualCheckInRequired());
1152
1153 dlFileEntryImpl.resetOriginalValues();
1154
1155 return dlFileEntryImpl;
1156 }
1157
1158 @Override
1159 public int compareTo(DLFileEntry dlFileEntry) {
1160 int value = 0;
1161
1162 if (getFolderId() < dlFileEntry.getFolderId()) {
1163 value = -1;
1164 }
1165 else if (getFolderId() > dlFileEntry.getFolderId()) {
1166 value = 1;
1167 }
1168 else {
1169 value = 0;
1170 }
1171
1172 if (value != 0) {
1173 return value;
1174 }
1175
1176 value = getName().compareTo(dlFileEntry.getName());
1177
1178 if (value != 0) {
1179 return value;
1180 }
1181
1182 return 0;
1183 }
1184
1185 @Override
1186 public boolean equals(Object obj) {
1187 if (this == obj) {
1188 return true;
1189 }
1190
1191 if (!(obj instanceof DLFileEntry)) {
1192 return false;
1193 }
1194
1195 DLFileEntry dlFileEntry = (DLFileEntry)obj;
1196
1197 long primaryKey = dlFileEntry.getPrimaryKey();
1198
1199 if (getPrimaryKey() == primaryKey) {
1200 return true;
1201 }
1202 else {
1203 return false;
1204 }
1205 }
1206
1207 @Override
1208 public int hashCode() {
1209 return (int)getPrimaryKey();
1210 }
1211
1212 @Override
1213 public void resetOriginalValues() {
1214 DLFileEntryModelImpl dlFileEntryModelImpl = this;
1215
1216 dlFileEntryModelImpl._originalUuid = dlFileEntryModelImpl._uuid;
1217
1218 dlFileEntryModelImpl._originalGroupId = dlFileEntryModelImpl._groupId;
1219
1220 dlFileEntryModelImpl._setOriginalGroupId = false;
1221
1222 dlFileEntryModelImpl._originalCompanyId = dlFileEntryModelImpl._companyId;
1223
1224 dlFileEntryModelImpl._setOriginalCompanyId = false;
1225
1226 dlFileEntryModelImpl._originalUserId = dlFileEntryModelImpl._userId;
1227
1228 dlFileEntryModelImpl._setOriginalUserId = false;
1229
1230 dlFileEntryModelImpl._originalRepositoryId = dlFileEntryModelImpl._repositoryId;
1231
1232 dlFileEntryModelImpl._setOriginalRepositoryId = false;
1233
1234 dlFileEntryModelImpl._originalFolderId = dlFileEntryModelImpl._folderId;
1235
1236 dlFileEntryModelImpl._setOriginalFolderId = false;
1237
1238 dlFileEntryModelImpl._originalName = dlFileEntryModelImpl._name;
1239
1240 dlFileEntryModelImpl._originalMimeType = dlFileEntryModelImpl._mimeType;
1241
1242 dlFileEntryModelImpl._originalTitle = dlFileEntryModelImpl._title;
1243
1244 dlFileEntryModelImpl._originalFileEntryTypeId = dlFileEntryModelImpl._fileEntryTypeId;
1245
1246 dlFileEntryModelImpl._setOriginalFileEntryTypeId = false;
1247
1248 dlFileEntryModelImpl._originalSmallImageId = dlFileEntryModelImpl._smallImageId;
1249
1250 dlFileEntryModelImpl._setOriginalSmallImageId = false;
1251
1252 dlFileEntryModelImpl._originalLargeImageId = dlFileEntryModelImpl._largeImageId;
1253
1254 dlFileEntryModelImpl._setOriginalLargeImageId = false;
1255
1256 dlFileEntryModelImpl._originalCustom1ImageId = dlFileEntryModelImpl._custom1ImageId;
1257
1258 dlFileEntryModelImpl._setOriginalCustom1ImageId = false;
1259
1260 dlFileEntryModelImpl._originalCustom2ImageId = dlFileEntryModelImpl._custom2ImageId;
1261
1262 dlFileEntryModelImpl._setOriginalCustom2ImageId = false;
1263
1264 dlFileEntryModelImpl._columnBitmask = 0;
1265 }
1266
1267 @Override
1268 public CacheModel<DLFileEntry> toCacheModel() {
1269 DLFileEntryCacheModel dlFileEntryCacheModel = new DLFileEntryCacheModel();
1270
1271 dlFileEntryCacheModel.uuid = getUuid();
1272
1273 String uuid = dlFileEntryCacheModel.uuid;
1274
1275 if ((uuid != null) && (uuid.length() == 0)) {
1276 dlFileEntryCacheModel.uuid = null;
1277 }
1278
1279 dlFileEntryCacheModel.fileEntryId = getFileEntryId();
1280
1281 dlFileEntryCacheModel.groupId = getGroupId();
1282
1283 dlFileEntryCacheModel.companyId = getCompanyId();
1284
1285 dlFileEntryCacheModel.userId = getUserId();
1286
1287 dlFileEntryCacheModel.userName = getUserName();
1288
1289 String userName = dlFileEntryCacheModel.userName;
1290
1291 if ((userName != null) && (userName.length() == 0)) {
1292 dlFileEntryCacheModel.userName = null;
1293 }
1294
1295 Date createDate = getCreateDate();
1296
1297 if (createDate != null) {
1298 dlFileEntryCacheModel.createDate = createDate.getTime();
1299 }
1300 else {
1301 dlFileEntryCacheModel.createDate = Long.MIN_VALUE;
1302 }
1303
1304 Date modifiedDate = getModifiedDate();
1305
1306 if (modifiedDate != null) {
1307 dlFileEntryCacheModel.modifiedDate = modifiedDate.getTime();
1308 }
1309 else {
1310 dlFileEntryCacheModel.modifiedDate = Long.MIN_VALUE;
1311 }
1312
1313 dlFileEntryCacheModel.classNameId = getClassNameId();
1314
1315 dlFileEntryCacheModel.classPK = getClassPK();
1316
1317 dlFileEntryCacheModel.repositoryId = getRepositoryId();
1318
1319 dlFileEntryCacheModel.folderId = getFolderId();
1320
1321 dlFileEntryCacheModel.treePath = getTreePath();
1322
1323 String treePath = dlFileEntryCacheModel.treePath;
1324
1325 if ((treePath != null) && (treePath.length() == 0)) {
1326 dlFileEntryCacheModel.treePath = null;
1327 }
1328
1329 dlFileEntryCacheModel.name = getName();
1330
1331 String name = dlFileEntryCacheModel.name;
1332
1333 if ((name != null) && (name.length() == 0)) {
1334 dlFileEntryCacheModel.name = null;
1335 }
1336
1337 dlFileEntryCacheModel.extension = getExtension();
1338
1339 String extension = dlFileEntryCacheModel.extension;
1340
1341 if ((extension != null) && (extension.length() == 0)) {
1342 dlFileEntryCacheModel.extension = null;
1343 }
1344
1345 dlFileEntryCacheModel.mimeType = getMimeType();
1346
1347 String mimeType = dlFileEntryCacheModel.mimeType;
1348
1349 if ((mimeType != null) && (mimeType.length() == 0)) {
1350 dlFileEntryCacheModel.mimeType = null;
1351 }
1352
1353 dlFileEntryCacheModel.title = getTitle();
1354
1355 String title = dlFileEntryCacheModel.title;
1356
1357 if ((title != null) && (title.length() == 0)) {
1358 dlFileEntryCacheModel.title = null;
1359 }
1360
1361 dlFileEntryCacheModel.description = getDescription();
1362
1363 String description = dlFileEntryCacheModel.description;
1364
1365 if ((description != null) && (description.length() == 0)) {
1366 dlFileEntryCacheModel.description = null;
1367 }
1368
1369 dlFileEntryCacheModel.extraSettings = getExtraSettings();
1370
1371 String extraSettings = dlFileEntryCacheModel.extraSettings;
1372
1373 if ((extraSettings != null) && (extraSettings.length() == 0)) {
1374 dlFileEntryCacheModel.extraSettings = null;
1375 }
1376
1377 dlFileEntryCacheModel.fileEntryTypeId = getFileEntryTypeId();
1378
1379 dlFileEntryCacheModel.version = getVersion();
1380
1381 String version = dlFileEntryCacheModel.version;
1382
1383 if ((version != null) && (version.length() == 0)) {
1384 dlFileEntryCacheModel.version = null;
1385 }
1386
1387 dlFileEntryCacheModel.size = getSize();
1388
1389 dlFileEntryCacheModel.readCount = getReadCount();
1390
1391 dlFileEntryCacheModel.smallImageId = getSmallImageId();
1392
1393 dlFileEntryCacheModel.largeImageId = getLargeImageId();
1394
1395 dlFileEntryCacheModel.custom1ImageId = getCustom1ImageId();
1396
1397 dlFileEntryCacheModel.custom2ImageId = getCustom2ImageId();
1398
1399 dlFileEntryCacheModel.manualCheckInRequired = getManualCheckInRequired();
1400
1401 return dlFileEntryCacheModel;
1402 }
1403
1404 @Override
1405 public String toString() {
1406 StringBundler sb = new StringBundler(57);
1407
1408 sb.append("{uuid=");
1409 sb.append(getUuid());
1410 sb.append(", fileEntryId=");
1411 sb.append(getFileEntryId());
1412 sb.append(", groupId=");
1413 sb.append(getGroupId());
1414 sb.append(", companyId=");
1415 sb.append(getCompanyId());
1416 sb.append(", userId=");
1417 sb.append(getUserId());
1418 sb.append(", userName=");
1419 sb.append(getUserName());
1420 sb.append(", createDate=");
1421 sb.append(getCreateDate());
1422 sb.append(", modifiedDate=");
1423 sb.append(getModifiedDate());
1424 sb.append(", classNameId=");
1425 sb.append(getClassNameId());
1426 sb.append(", classPK=");
1427 sb.append(getClassPK());
1428 sb.append(", repositoryId=");
1429 sb.append(getRepositoryId());
1430 sb.append(", folderId=");
1431 sb.append(getFolderId());
1432 sb.append(", treePath=");
1433 sb.append(getTreePath());
1434 sb.append(", name=");
1435 sb.append(getName());
1436 sb.append(", extension=");
1437 sb.append(getExtension());
1438 sb.append(", mimeType=");
1439 sb.append(getMimeType());
1440 sb.append(", title=");
1441 sb.append(getTitle());
1442 sb.append(", description=");
1443 sb.append(getDescription());
1444 sb.append(", extraSettings=");
1445 sb.append(getExtraSettings());
1446 sb.append(", fileEntryTypeId=");
1447 sb.append(getFileEntryTypeId());
1448 sb.append(", version=");
1449 sb.append(getVersion());
1450 sb.append(", size=");
1451 sb.append(getSize());
1452 sb.append(", readCount=");
1453 sb.append(getReadCount());
1454 sb.append(", smallImageId=");
1455 sb.append(getSmallImageId());
1456 sb.append(", largeImageId=");
1457 sb.append(getLargeImageId());
1458 sb.append(", custom1ImageId=");
1459 sb.append(getCustom1ImageId());
1460 sb.append(", custom2ImageId=");
1461 sb.append(getCustom2ImageId());
1462 sb.append(", manualCheckInRequired=");
1463 sb.append(getManualCheckInRequired());
1464 sb.append("}");
1465
1466 return sb.toString();
1467 }
1468
1469 @Override
1470 public String toXmlString() {
1471 StringBundler sb = new StringBundler(88);
1472
1473 sb.append("<model><model-name>");
1474 sb.append("com.liferay.portlet.documentlibrary.model.DLFileEntry");
1475 sb.append("</model-name>");
1476
1477 sb.append(
1478 "<column><column-name>uuid</column-name><column-value><![CDATA[");
1479 sb.append(getUuid());
1480 sb.append("]]></column-value></column>");
1481 sb.append(
1482 "<column><column-name>fileEntryId</column-name><column-value><![CDATA[");
1483 sb.append(getFileEntryId());
1484 sb.append("]]></column-value></column>");
1485 sb.append(
1486 "<column><column-name>groupId</column-name><column-value><![CDATA[");
1487 sb.append(getGroupId());
1488 sb.append("]]></column-value></column>");
1489 sb.append(
1490 "<column><column-name>companyId</column-name><column-value><![CDATA[");
1491 sb.append(getCompanyId());
1492 sb.append("]]></column-value></column>");
1493 sb.append(
1494 "<column><column-name>userId</column-name><column-value><![CDATA[");
1495 sb.append(getUserId());
1496 sb.append("]]></column-value></column>");
1497 sb.append(
1498 "<column><column-name>userName</column-name><column-value><![CDATA[");
1499 sb.append(getUserName());
1500 sb.append("]]></column-value></column>");
1501 sb.append(
1502 "<column><column-name>createDate</column-name><column-value><![CDATA[");
1503 sb.append(getCreateDate());
1504 sb.append("]]></column-value></column>");
1505 sb.append(
1506 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1507 sb.append(getModifiedDate());
1508 sb.append("]]></column-value></column>");
1509 sb.append(
1510 "<column><column-name>classNameId</column-name><column-value><![CDATA[");
1511 sb.append(getClassNameId());
1512 sb.append("]]></column-value></column>");
1513 sb.append(
1514 "<column><column-name>classPK</column-name><column-value><![CDATA[");
1515 sb.append(getClassPK());
1516 sb.append("]]></column-value></column>");
1517 sb.append(
1518 "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
1519 sb.append(getRepositoryId());
1520 sb.append("]]></column-value></column>");
1521 sb.append(
1522 "<column><column-name>folderId</column-name><column-value><![CDATA[");
1523 sb.append(getFolderId());
1524 sb.append("]]></column-value></column>");
1525 sb.append(
1526 "<column><column-name>treePath</column-name><column-value><![CDATA[");
1527 sb.append(getTreePath());
1528 sb.append("]]></column-value></column>");
1529 sb.append(
1530 "<column><column-name>name</column-name><column-value><![CDATA[");
1531 sb.append(getName());
1532 sb.append("]]></column-value></column>");
1533 sb.append(
1534 "<column><column-name>extension</column-name><column-value><![CDATA[");
1535 sb.append(getExtension());
1536 sb.append("]]></column-value></column>");
1537 sb.append(
1538 "<column><column-name>mimeType</column-name><column-value><![CDATA[");
1539 sb.append(getMimeType());
1540 sb.append("]]></column-value></column>");
1541 sb.append(
1542 "<column><column-name>title</column-name><column-value><![CDATA[");
1543 sb.append(getTitle());
1544 sb.append("]]></column-value></column>");
1545 sb.append(
1546 "<column><column-name>description</column-name><column-value><![CDATA[");
1547 sb.append(getDescription());
1548 sb.append("]]></column-value></column>");
1549 sb.append(
1550 "<column><column-name>extraSettings</column-name><column-value><![CDATA[");
1551 sb.append(getExtraSettings());
1552 sb.append("]]></column-value></column>");
1553 sb.append(
1554 "<column><column-name>fileEntryTypeId</column-name><column-value><![CDATA[");
1555 sb.append(getFileEntryTypeId());
1556 sb.append("]]></column-value></column>");
1557 sb.append(
1558 "<column><column-name>version</column-name><column-value><![CDATA[");
1559 sb.append(getVersion());
1560 sb.append("]]></column-value></column>");
1561 sb.append(
1562 "<column><column-name>size</column-name><column-value><![CDATA[");
1563 sb.append(getSize());
1564 sb.append("]]></column-value></column>");
1565 sb.append(
1566 "<column><column-name>readCount</column-name><column-value><![CDATA[");
1567 sb.append(getReadCount());
1568 sb.append("]]></column-value></column>");
1569 sb.append(
1570 "<column><column-name>smallImageId</column-name><column-value><![CDATA[");
1571 sb.append(getSmallImageId());
1572 sb.append("]]></column-value></column>");
1573 sb.append(
1574 "<column><column-name>largeImageId</column-name><column-value><![CDATA[");
1575 sb.append(getLargeImageId());
1576 sb.append("]]></column-value></column>");
1577 sb.append(
1578 "<column><column-name>custom1ImageId</column-name><column-value><![CDATA[");
1579 sb.append(getCustom1ImageId());
1580 sb.append("]]></column-value></column>");
1581 sb.append(
1582 "<column><column-name>custom2ImageId</column-name><column-value><![CDATA[");
1583 sb.append(getCustom2ImageId());
1584 sb.append("]]></column-value></column>");
1585 sb.append(
1586 "<column><column-name>manualCheckInRequired</column-name><column-value><![CDATA[");
1587 sb.append(getManualCheckInRequired());
1588 sb.append("]]></column-value></column>");
1589
1590 sb.append("</model>");
1591
1592 return sb.toString();
1593 }
1594
1595 private static ClassLoader _classLoader = DLFileEntry.class.getClassLoader();
1596 private static Class<?>[] _escapedModelInterfaces = new Class[] {
1597 DLFileEntry.class
1598 };
1599 private String _uuid;
1600 private String _originalUuid;
1601 private long _fileEntryId;
1602 private long _groupId;
1603 private long _originalGroupId;
1604 private boolean _setOriginalGroupId;
1605 private long _companyId;
1606 private long _originalCompanyId;
1607 private boolean _setOriginalCompanyId;
1608 private long _userId;
1609 private String _userUuid;
1610 private long _originalUserId;
1611 private boolean _setOriginalUserId;
1612 private String _userName;
1613 private Date _createDate;
1614 private Date _modifiedDate;
1615 private long _classNameId;
1616 private long _classPK;
1617 private long _repositoryId;
1618 private long _originalRepositoryId;
1619 private boolean _setOriginalRepositoryId;
1620 private long _folderId;
1621 private long _originalFolderId;
1622 private boolean _setOriginalFolderId;
1623 private String _treePath;
1624 private String _name;
1625 private String _originalName;
1626 private String _extension;
1627 private String _mimeType;
1628 private String _originalMimeType;
1629 private String _title;
1630 private String _originalTitle;
1631 private String _description;
1632 private String _extraSettings;
1633 private long _fileEntryTypeId;
1634 private long _originalFileEntryTypeId;
1635 private boolean _setOriginalFileEntryTypeId;
1636 private String _version;
1637 private long _size;
1638 private int _readCount;
1639 private long _smallImageId;
1640 private long _originalSmallImageId;
1641 private boolean _setOriginalSmallImageId;
1642 private long _largeImageId;
1643 private long _originalLargeImageId;
1644 private boolean _setOriginalLargeImageId;
1645 private long _custom1ImageId;
1646 private long _originalCustom1ImageId;
1647 private boolean _setOriginalCustom1ImageId;
1648 private long _custom2ImageId;
1649 private long _originalCustom2ImageId;
1650 private boolean _setOriginalCustom2ImageId;
1651 private boolean _manualCheckInRequired;
1652 private long _columnBitmask;
1653 private DLFileEntry _escapedModel;
1654 }