@Override public Object clone() { SyncDLObjectClp clone = new SyncDLObjectClp(); clone.setSyncDLObjectId(getSyncDLObjectId()); clone.setCompanyId(getCompanyId()); clone.setCreateTime(getCreateTime()); clone.setModifiedTime(getModifiedTime()); clone.setRepositoryId(getRepositoryId()); clone.setParentFolderId(getParentFolderId()); clone.setName(getName()); clone.setExtension(getExtension()); clone.setMimeType(getMimeType()); clone.setDescription(getDescription()); clone.setChangeLog(getChangeLog()); clone.setExtraSettings(getExtraSettings()); clone.setVersion(getVersion()); clone.setSize(getSize()); clone.setChecksum(getChecksum()); clone.setEvent(getEvent()); clone.setLockExpirationDate(getLockExpirationDate()); clone.setLockUserId(getLockUserId()); clone.setLockUserName(getLockUserName()); clone.setType(getType()); clone.setTypePK(getTypePK()); clone.setTypeUuid(getTypeUuid()); return clone; }
@Override public void setModelAttributes(Map<String, Object> attributes) { Long syncDLObjectId = (Long) attributes.get("syncDLObjectId"); if (syncDLObjectId != null) { setSyncDLObjectId(syncDLObjectId); } Long companyId = (Long) attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long createTime = (Long) attributes.get("createTime"); if (createTime != null) { setCreateTime(createTime); } Long modifiedTime = (Long) attributes.get("modifiedTime"); if (modifiedTime != null) { setModifiedTime(modifiedTime); } Long repositoryId = (Long) attributes.get("repositoryId"); if (repositoryId != null) { setRepositoryId(repositoryId); } Long parentFolderId = (Long) attributes.get("parentFolderId"); if (parentFolderId != null) { setParentFolderId(parentFolderId); } String name = (String) attributes.get("name"); if (name != null) { setName(name); } String extension = (String) attributes.get("extension"); if (extension != null) { setExtension(extension); } String mimeType = (String) attributes.get("mimeType"); if (mimeType != null) { setMimeType(mimeType); } String description = (String) attributes.get("description"); if (description != null) { setDescription(description); } String changeLog = (String) attributes.get("changeLog"); if (changeLog != null) { setChangeLog(changeLog); } String extraSettings = (String) attributes.get("extraSettings"); if (extraSettings != null) { setExtraSettings(extraSettings); } String version = (String) attributes.get("version"); if (version != null) { setVersion(version); } Long size = (Long) attributes.get("size"); if (size != null) { setSize(size); } String checksum = (String) attributes.get("checksum"); if (checksum != null) { setChecksum(checksum); } String event = (String) attributes.get("event"); if (event != null) { setEvent(event); } Date lockExpirationDate = (Date) attributes.get("lockExpirationDate"); if (lockExpirationDate != null) { setLockExpirationDate(lockExpirationDate); } Long lockUserId = (Long) attributes.get("lockUserId"); if (lockUserId != null) { setLockUserId(lockUserId); } String lockUserName = (String) attributes.get("lockUserName"); if (lockUserName != null) { setLockUserName(lockUserName); } String type = (String) attributes.get("type"); if (type != null) { setType(type); } Long typePK = (Long) attributes.get("typePK"); if (typePK != null) { setTypePK(typePK); } String typeUuid = (String) attributes.get("typeUuid"); if (typeUuid != null) { setTypeUuid(typeUuid); } _entityCacheEnabled = GetterUtil.getBoolean("entityCacheEnabled"); _finderCacheEnabled = GetterUtil.getBoolean("finderCacheEnabled"); }