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