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.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="ReleaseSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.ReleaseServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.ReleaseServiceSoap
045: *
046: */
047: public class ReleaseSoap implements Serializable {
048: public static ReleaseSoap toSoapModel(Release model) {
049: ReleaseSoap soapModel = new ReleaseSoap();
050:
051: soapModel.setReleaseId(model.getReleaseId());
052: soapModel.setCreateDate(model.getCreateDate());
053: soapModel.setModifiedDate(model.getModifiedDate());
054: soapModel.setBuildNumber(model.getBuildNumber());
055: soapModel.setBuildDate(model.getBuildDate());
056: soapModel.setVerified(model.getVerified());
057:
058: return soapModel;
059: }
060:
061: public static ReleaseSoap[] toSoapModels(List models) {
062: List soapModels = new ArrayList(models.size());
063:
064: for (int i = 0; i < models.size(); i++) {
065: Release model = (Release) models.get(i);
066:
067: soapModels.add(toSoapModel(model));
068: }
069:
070: return (ReleaseSoap[]) soapModels.toArray(new ReleaseSoap[0]);
071: }
072:
073: public ReleaseSoap() {
074: }
075:
076: public long getPrimaryKey() {
077: return _releaseId;
078: }
079:
080: public void setPrimaryKey(long pk) {
081: setReleaseId(pk);
082: }
083:
084: public long getReleaseId() {
085: return _releaseId;
086: }
087:
088: public void setReleaseId(long releaseId) {
089: _releaseId = releaseId;
090: }
091:
092: public Date getCreateDate() {
093: return _createDate;
094: }
095:
096: public void setCreateDate(Date createDate) {
097: _createDate = createDate;
098: }
099:
100: public Date getModifiedDate() {
101: return _modifiedDate;
102: }
103:
104: public void setModifiedDate(Date modifiedDate) {
105: _modifiedDate = modifiedDate;
106: }
107:
108: public int getBuildNumber() {
109: return _buildNumber;
110: }
111:
112: public void setBuildNumber(int buildNumber) {
113: _buildNumber = buildNumber;
114: }
115:
116: public Date getBuildDate() {
117: return _buildDate;
118: }
119:
120: public void setBuildDate(Date buildDate) {
121: _buildDate = buildDate;
122: }
123:
124: public boolean getVerified() {
125: return _verified;
126: }
127:
128: public boolean isVerified() {
129: return _verified;
130: }
131:
132: public void setVerified(boolean verified) {
133: _verified = verified;
134: }
135:
136: private long _releaseId;
137: private Date _createDate;
138: private Date _modifiedDate;
139: private int _buildNumber;
140: private Date _buildDate;
141: private boolean _verified;
142: }
|