001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
025     * The cache model class for representing SCProductScreenshot in entity cache.
026     *
027     * @author Brian Wing Shun Chan
028     * @see SCProductScreenshot
029     * @generated
030     */
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    }