001
014
015 package com.liferay.portal.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
029 public class ReleaseSoap implements Serializable {
030 public static ReleaseSoap toSoapModel(Release model) {
031 ReleaseSoap soapModel = new ReleaseSoap();
032
033 soapModel.setReleaseId(model.getReleaseId());
034 soapModel.setCreateDate(model.getCreateDate());
035 soapModel.setModifiedDate(model.getModifiedDate());
036 soapModel.setServletContextName(model.getServletContextName());
037 soapModel.setBuildNumber(model.getBuildNumber());
038 soapModel.setBuildDate(model.getBuildDate());
039 soapModel.setVerified(model.getVerified());
040 soapModel.setState(model.getState());
041 soapModel.setTestString(model.getTestString());
042
043 return soapModel;
044 }
045
046 public static ReleaseSoap[] toSoapModels(Release[] models) {
047 ReleaseSoap[] soapModels = new ReleaseSoap[models.length];
048
049 for (int i = 0; i < models.length; i++) {
050 soapModels[i] = toSoapModel(models[i]);
051 }
052
053 return soapModels;
054 }
055
056 public static ReleaseSoap[][] toSoapModels(Release[][] models) {
057 ReleaseSoap[][] soapModels = null;
058
059 if (models.length > 0) {
060 soapModels = new ReleaseSoap[models.length][models[0].length];
061 }
062 else {
063 soapModels = new ReleaseSoap[0][0];
064 }
065
066 for (int i = 0; i < models.length; i++) {
067 soapModels[i] = toSoapModels(models[i]);
068 }
069
070 return soapModels;
071 }
072
073 public static ReleaseSoap[] toSoapModels(List<Release> models) {
074 List<ReleaseSoap> soapModels = new ArrayList<ReleaseSoap>(models.size());
075
076 for (Release model : models) {
077 soapModels.add(toSoapModel(model));
078 }
079
080 return soapModels.toArray(new ReleaseSoap[soapModels.size()]);
081 }
082
083 public ReleaseSoap() {
084 }
085
086 public long getPrimaryKey() {
087 return _releaseId;
088 }
089
090 public void setPrimaryKey(long pk) {
091 setReleaseId(pk);
092 }
093
094 public long getReleaseId() {
095 return _releaseId;
096 }
097
098 public void setReleaseId(long releaseId) {
099 _releaseId = releaseId;
100 }
101
102 public Date getCreateDate() {
103 return _createDate;
104 }
105
106 public void setCreateDate(Date createDate) {
107 _createDate = createDate;
108 }
109
110 public Date getModifiedDate() {
111 return _modifiedDate;
112 }
113
114 public void setModifiedDate(Date modifiedDate) {
115 _modifiedDate = modifiedDate;
116 }
117
118 public String getServletContextName() {
119 return _servletContextName;
120 }
121
122 public void setServletContextName(String servletContextName) {
123 _servletContextName = servletContextName;
124 }
125
126 public int getBuildNumber() {
127 return _buildNumber;
128 }
129
130 public void setBuildNumber(int buildNumber) {
131 _buildNumber = buildNumber;
132 }
133
134 public Date getBuildDate() {
135 return _buildDate;
136 }
137
138 public void setBuildDate(Date buildDate) {
139 _buildDate = buildDate;
140 }
141
142 public boolean getVerified() {
143 return _verified;
144 }
145
146 public boolean isVerified() {
147 return _verified;
148 }
149
150 public void setVerified(boolean verified) {
151 _verified = verified;
152 }
153
154 public int getState() {
155 return _state;
156 }
157
158 public void setState(int state) {
159 _state = state;
160 }
161
162 public String getTestString() {
163 return _testString;
164 }
165
166 public void setTestString(String testString) {
167 _testString = testString;
168 }
169
170 private long _releaseId;
171 private Date _createDate;
172 private Date _modifiedDate;
173 private String _servletContextName;
174 private int _buildNumber;
175 private Date _buildDate;
176 private boolean _verified;
177 private int _state;
178 private String _testString;
179 }