1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="SCProductScreenshotSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap
37   * @generated
38   */
39  public class SCProductScreenshotSoap implements Serializable {
40      public static SCProductScreenshotSoap toSoapModel(SCProductScreenshot model) {
41          SCProductScreenshotSoap soapModel = new SCProductScreenshotSoap();
42  
43          soapModel.setProductScreenshotId(model.getProductScreenshotId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setProductEntryId(model.getProductEntryId());
47          soapModel.setThumbnailId(model.getThumbnailId());
48          soapModel.setFullImageId(model.getFullImageId());
49          soapModel.setPriority(model.getPriority());
50  
51          return soapModel;
52      }
53  
54      public static SCProductScreenshotSoap[] toSoapModels(
55          SCProductScreenshot[] models) {
56          SCProductScreenshotSoap[] soapModels = new SCProductScreenshotSoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static SCProductScreenshotSoap[][] toSoapModels(
66          SCProductScreenshot[][] models) {
67          SCProductScreenshotSoap[][] soapModels = null;
68  
69          if (models.length > 0) {
70              soapModels = new SCProductScreenshotSoap[models.length][models[0].length];
71          }
72          else {
73              soapModels = new SCProductScreenshotSoap[0][0];
74          }
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModels(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static SCProductScreenshotSoap[] toSoapModels(
84          List<SCProductScreenshot> models) {
85          List<SCProductScreenshotSoap> soapModels = new ArrayList<SCProductScreenshotSoap>(models.size());
86  
87          for (SCProductScreenshot model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new SCProductScreenshotSoap[soapModels.size()]);
92      }
93  
94      public SCProductScreenshotSoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _productScreenshotId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setProductScreenshotId(pk);
103     }
104 
105     public long getProductScreenshotId() {
106         return _productScreenshotId;
107     }
108 
109     public void setProductScreenshotId(long productScreenshotId) {
110         _productScreenshotId = productScreenshotId;
111     }
112 
113     public long getCompanyId() {
114         return _companyId;
115     }
116 
117     public void setCompanyId(long companyId) {
118         _companyId = companyId;
119     }
120 
121     public long getGroupId() {
122         return _groupId;
123     }
124 
125     public void setGroupId(long groupId) {
126         _groupId = groupId;
127     }
128 
129     public long getProductEntryId() {
130         return _productEntryId;
131     }
132 
133     public void setProductEntryId(long productEntryId) {
134         _productEntryId = productEntryId;
135     }
136 
137     public long getThumbnailId() {
138         return _thumbnailId;
139     }
140 
141     public void setThumbnailId(long thumbnailId) {
142         _thumbnailId = thumbnailId;
143     }
144 
145     public long getFullImageId() {
146         return _fullImageId;
147     }
148 
149     public void setFullImageId(long fullImageId) {
150         _fullImageId = fullImageId;
151     }
152 
153     public int getPriority() {
154         return _priority;
155     }
156 
157     public void setPriority(int priority) {
158         _priority = priority;
159     }
160 
161     private long _productScreenshotId;
162     private long _companyId;
163     private long _groupId;
164     private long _productEntryId;
165     private long _thumbnailId;
166     private long _fullImageId;
167     private int _priority;
168 }