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