001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.List;
027:
028: /**
029: * <a href="SCProductScreenshotSoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portlet.softwarecatalog.service.http.SCProductScreenshotServiceSoap
044: *
045: */
046: public class SCProductScreenshotSoap implements Serializable {
047: public static SCProductScreenshotSoap toSoapModel(
048: SCProductScreenshot model) {
049: SCProductScreenshotSoap soapModel = new SCProductScreenshotSoap();
050:
051: soapModel
052: .setProductScreenshotId(model.getProductScreenshotId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setGroupId(model.getGroupId());
055: soapModel.setProductEntryId(model.getProductEntryId());
056: soapModel.setThumbnailId(model.getThumbnailId());
057: soapModel.setFullImageId(model.getFullImageId());
058: soapModel.setPriority(model.getPriority());
059:
060: return soapModel;
061: }
062:
063: public static SCProductScreenshotSoap[] toSoapModels(List models) {
064: List soapModels = new ArrayList(models.size());
065:
066: for (int i = 0; i < models.size(); i++) {
067: SCProductScreenshot model = (SCProductScreenshot) models
068: .get(i);
069:
070: soapModels.add(toSoapModel(model));
071: }
072:
073: return (SCProductScreenshotSoap[]) soapModels
074: .toArray(new SCProductScreenshotSoap[0]);
075: }
076:
077: public SCProductScreenshotSoap() {
078: }
079:
080: public long getPrimaryKey() {
081: return _productScreenshotId;
082: }
083:
084: public void setPrimaryKey(long pk) {
085: setProductScreenshotId(pk);
086: }
087:
088: public long getProductScreenshotId() {
089: return _productScreenshotId;
090: }
091:
092: public void setProductScreenshotId(long productScreenshotId) {
093: _productScreenshotId = productScreenshotId;
094: }
095:
096: public long getCompanyId() {
097: return _companyId;
098: }
099:
100: public void setCompanyId(long companyId) {
101: _companyId = companyId;
102: }
103:
104: public long getGroupId() {
105: return _groupId;
106: }
107:
108: public void setGroupId(long groupId) {
109: _groupId = groupId;
110: }
111:
112: public long getProductEntryId() {
113: return _productEntryId;
114: }
115:
116: public void setProductEntryId(long productEntryId) {
117: _productEntryId = productEntryId;
118: }
119:
120: public long getThumbnailId() {
121: return _thumbnailId;
122: }
123:
124: public void setThumbnailId(long thumbnailId) {
125: _thumbnailId = thumbnailId;
126: }
127:
128: public long getFullImageId() {
129: return _fullImageId;
130: }
131:
132: public void setFullImageId(long fullImageId) {
133: _fullImageId = fullImageId;
134: }
135:
136: public int getPriority() {
137: return _priority;
138: }
139:
140: public void setPriority(int priority) {
141: _priority = priority;
142: }
143:
144: private long _productScreenshotId;
145: private long _companyId;
146: private long _groupId;
147: private long _productEntryId;
148: private long _thumbnailId;
149: private long _fullImageId;
150: private int _priority;
151: }
|