1
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
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 }