001
014
015 package com.liferay.portlet.softwarecatalog.model.impl;
016
017 import com.liferay.portal.kernel.util.StringBundler;
018 import com.liferay.portal.model.CacheModel;
019
020 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
021
022 import java.io.Serializable;
023
024
031 public class SCProductScreenshotCacheModel implements CacheModel<SCProductScreenshot>,
032 Serializable {
033 @Override
034 public String toString() {
035 StringBundler sb = new StringBundler(15);
036
037 sb.append("{productScreenshotId=");
038 sb.append(productScreenshotId);
039 sb.append(", companyId=");
040 sb.append(companyId);
041 sb.append(", groupId=");
042 sb.append(groupId);
043 sb.append(", productEntryId=");
044 sb.append(productEntryId);
045 sb.append(", thumbnailId=");
046 sb.append(thumbnailId);
047 sb.append(", fullImageId=");
048 sb.append(fullImageId);
049 sb.append(", priority=");
050 sb.append(priority);
051 sb.append("}");
052
053 return sb.toString();
054 }
055
056 public SCProductScreenshot toEntityModel() {
057 SCProductScreenshotImpl scProductScreenshotImpl = new SCProductScreenshotImpl();
058
059 scProductScreenshotImpl.setProductScreenshotId(productScreenshotId);
060 scProductScreenshotImpl.setCompanyId(companyId);
061 scProductScreenshotImpl.setGroupId(groupId);
062 scProductScreenshotImpl.setProductEntryId(productEntryId);
063 scProductScreenshotImpl.setThumbnailId(thumbnailId);
064 scProductScreenshotImpl.setFullImageId(fullImageId);
065 scProductScreenshotImpl.setPriority(priority);
066
067 scProductScreenshotImpl.resetOriginalValues();
068
069 return scProductScreenshotImpl;
070 }
071
072 public long productScreenshotId;
073 public long companyId;
074 public long groupId;
075 public long productEntryId;
076 public long thumbnailId;
077 public long fullImageId;
078 public int priority;
079 }