001    /**
002     * Copyright (c) 2000-present 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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class SCProductScreenshotSoap implements Serializable {
032            public static SCProductScreenshotSoap toSoapModel(SCProductScreenshot model) {
033                    SCProductScreenshotSoap soapModel = new SCProductScreenshotSoap();
034    
035                    soapModel.setProductScreenshotId(model.getProductScreenshotId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setProductEntryId(model.getProductEntryId());
039                    soapModel.setThumbnailId(model.getThumbnailId());
040                    soapModel.setFullImageId(model.getFullImageId());
041                    soapModel.setPriority(model.getPriority());
042    
043                    return soapModel;
044            }
045    
046            public static SCProductScreenshotSoap[] toSoapModels(
047                    SCProductScreenshot[] models) {
048                    SCProductScreenshotSoap[] soapModels = new SCProductScreenshotSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static SCProductScreenshotSoap[][] toSoapModels(
058                    SCProductScreenshot[][] models) {
059                    SCProductScreenshotSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new SCProductScreenshotSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new SCProductScreenshotSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static SCProductScreenshotSoap[] toSoapModels(
076                    List<SCProductScreenshot> models) {
077                    List<SCProductScreenshotSoap> soapModels = new ArrayList<SCProductScreenshotSoap>(models.size());
078    
079                    for (SCProductScreenshot model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new SCProductScreenshotSoap[soapModels.size()]);
084            }
085    
086            public SCProductScreenshotSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _productScreenshotId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setProductScreenshotId(pk);
095            }
096    
097            public long getProductScreenshotId() {
098                    return _productScreenshotId;
099            }
100    
101            public void setProductScreenshotId(long productScreenshotId) {
102                    _productScreenshotId = productScreenshotId;
103            }
104    
105            public long getCompanyId() {
106                    return _companyId;
107            }
108    
109            public void setCompanyId(long companyId) {
110                    _companyId = companyId;
111            }
112    
113            public long getGroupId() {
114                    return _groupId;
115            }
116    
117            public void setGroupId(long groupId) {
118                    _groupId = groupId;
119            }
120    
121            public long getProductEntryId() {
122                    return _productEntryId;
123            }
124    
125            public void setProductEntryId(long productEntryId) {
126                    _productEntryId = productEntryId;
127            }
128    
129            public long getThumbnailId() {
130                    return _thumbnailId;
131            }
132    
133            public void setThumbnailId(long thumbnailId) {
134                    _thumbnailId = thumbnailId;
135            }
136    
137            public long getFullImageId() {
138                    return _fullImageId;
139            }
140    
141            public void setFullImageId(long fullImageId) {
142                    _fullImageId = fullImageId;
143            }
144    
145            public int getPriority() {
146                    return _priority;
147            }
148    
149            public void setPriority(int priority) {
150                    _priority = priority;
151            }
152    
153            private long _productScreenshotId;
154            private long _companyId;
155            private long _groupId;
156            private long _productEntryId;
157            private long _thumbnailId;
158            private long _fullImageId;
159            private int _priority;
160    }