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          List<SCProductScreenshot> models) {
62          List<SCProductScreenshotSoap> soapModels = new ArrayList<SCProductScreenshotSoap>(models.size());
63  
64          for (SCProductScreenshot model : models) {
65              soapModels.add(toSoapModel(model));
66          }
67  
68          return soapModels.toArray(new SCProductScreenshotSoap[soapModels.size()]);
69      }
70  
71      public SCProductScreenshotSoap() {
72      }
73  
74      public long getPrimaryKey() {
75          return _productScreenshotId;
76      }
77  
78      public void setPrimaryKey(long pk) {
79          setProductScreenshotId(pk);
80      }
81  
82      public long getProductScreenshotId() {
83          return _productScreenshotId;
84      }
85  
86      public void setProductScreenshotId(long productScreenshotId) {
87          _productScreenshotId = productScreenshotId;
88      }
89  
90      public long getCompanyId() {
91          return _companyId;
92      }
93  
94      public void setCompanyId(long companyId) {
95          _companyId = companyId;
96      }
97  
98      public long getGroupId() {
99          return _groupId;
100     }
101 
102     public void setGroupId(long groupId) {
103         _groupId = groupId;
104     }
105 
106     public long getProductEntryId() {
107         return _productEntryId;
108     }
109 
110     public void setProductEntryId(long productEntryId) {
111         _productEntryId = productEntryId;
112     }
113 
114     public long getThumbnailId() {
115         return _thumbnailId;
116     }
117 
118     public void setThumbnailId(long thumbnailId) {
119         _thumbnailId = thumbnailId;
120     }
121 
122     public long getFullImageId() {
123         return _fullImageId;
124     }
125 
126     public void setFullImageId(long fullImageId) {
127         _fullImageId = fullImageId;
128     }
129 
130     public int getPriority() {
131         return _priority;
132     }
133 
134     public void setPriority(int priority) {
135         _priority = priority;
136     }
137 
138     private long _productScreenshotId;
139     private long _companyId;
140     private long _groupId;
141     private long _productEntryId;
142     private long _thumbnailId;
143     private long _fullImageId;
144     private int _priority;
145 }