1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.softwarecatalog.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * <a href="SCProductScreenshotSoap.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class is used by
37   * <code>com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap</code>.
38   * </p>
39   *
40   * @author Brian Wing Shun Chan
41   *
42   * @see com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap
43   *
44   */
45  public class SCProductScreenshotSoap implements Serializable {
46      public static SCProductScreenshotSoap toSoapModel(SCProductScreenshot model) {
47          SCProductScreenshotSoap soapModel = new SCProductScreenshotSoap();
48  
49          soapModel.setProductScreenshotId(model.getProductScreenshotId());
50          soapModel.setCompanyId(model.getCompanyId());
51          soapModel.setGroupId(model.getGroupId());
52          soapModel.setProductEntryId(model.getProductEntryId());
53          soapModel.setThumbnailId(model.getThumbnailId());
54          soapModel.setFullImageId(model.getFullImageId());
55          soapModel.setPriority(model.getPriority());
56  
57          return soapModel;
58      }
59  
60      public static SCProductScreenshotSoap[] toSoapModels(
61          SCProductScreenshot[] models) {
62          SCProductScreenshotSoap[] soapModels = new SCProductScreenshotSoap[models.length];
63  
64          for (int i = 0; i < models.length; i++) {
65              soapModels[i] = toSoapModel(models[i]);
66          }
67  
68          return soapModels;
69      }
70  
71      public static SCProductScreenshotSoap[][] toSoapModels(
72          SCProductScreenshot[][] models) {
73          SCProductScreenshotSoap[][] soapModels = null;
74  
75          if (models.length > 0) {
76              soapModels = new SCProductScreenshotSoap[models.length][models[0].length];
77          }
78          else {
79              soapModels = new SCProductScreenshotSoap[0][0];
80          }
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModels(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static SCProductScreenshotSoap[] toSoapModels(
90          List<SCProductScreenshot> models) {
91          List<SCProductScreenshotSoap> soapModels = new ArrayList<SCProductScreenshotSoap>(models.size());
92  
93          for (SCProductScreenshot model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new SCProductScreenshotSoap[soapModels.size()]);
98      }
99  
100     public SCProductScreenshotSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _productScreenshotId;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setProductScreenshotId(pk);
109     }
110 
111     public long getProductScreenshotId() {
112         return _productScreenshotId;
113     }
114 
115     public void setProductScreenshotId(long productScreenshotId) {
116         _productScreenshotId = productScreenshotId;
117     }
118 
119     public long getCompanyId() {
120         return _companyId;
121     }
122 
123     public void setCompanyId(long companyId) {
124         _companyId = companyId;
125     }
126 
127     public long getGroupId() {
128         return _groupId;
129     }
130 
131     public void setGroupId(long groupId) {
132         _groupId = groupId;
133     }
134 
135     public long getProductEntryId() {
136         return _productEntryId;
137     }
138 
139     public void setProductEntryId(long productEntryId) {
140         _productEntryId = productEntryId;
141     }
142 
143     public long getThumbnailId() {
144         return _thumbnailId;
145     }
146 
147     public void setThumbnailId(long thumbnailId) {
148         _thumbnailId = thumbnailId;
149     }
150 
151     public long getFullImageId() {
152         return _fullImageId;
153     }
154 
155     public void setFullImageId(long fullImageId) {
156         _fullImageId = fullImageId;
157     }
158 
159     public int getPriority() {
160         return _priority;
161     }
162 
163     public void setPriority(int priority) {
164         _priority = priority;
165     }
166 
167     private long _productScreenshotId;
168     private long _companyId;
169     private long _groupId;
170     private long _productEntryId;
171     private long _thumbnailId;
172     private long _fullImageId;
173     private int _priority;
174 }