1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.expando.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="ExpandoValueSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.expando.service.http.ExpandoValueServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.expando.service.http.ExpandoValueServiceSoap
37   * @generated
38   */
39  public class ExpandoValueSoap implements Serializable {
40      public static ExpandoValueSoap toSoapModel(ExpandoValue model) {
41          ExpandoValueSoap soapModel = new ExpandoValueSoap();
42  
43          soapModel.setValueId(model.getValueId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setTableId(model.getTableId());
46          soapModel.setColumnId(model.getColumnId());
47          soapModel.setRowId(model.getRowId());
48          soapModel.setClassNameId(model.getClassNameId());
49          soapModel.setClassPK(model.getClassPK());
50          soapModel.setData(model.getData());
51  
52          return soapModel;
53      }
54  
55      public static ExpandoValueSoap[] toSoapModels(ExpandoValue[] models) {
56          ExpandoValueSoap[] soapModels = new ExpandoValueSoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static ExpandoValueSoap[][] toSoapModels(ExpandoValue[][] models) {
66          ExpandoValueSoap[][] soapModels = null;
67  
68          if (models.length > 0) {
69              soapModels = new ExpandoValueSoap[models.length][models[0].length];
70          }
71          else {
72              soapModels = new ExpandoValueSoap[0][0];
73          }
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModels(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static ExpandoValueSoap[] toSoapModels(List<ExpandoValue> models) {
83          List<ExpandoValueSoap> soapModels = new ArrayList<ExpandoValueSoap>(models.size());
84  
85          for (ExpandoValue model : models) {
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return soapModels.toArray(new ExpandoValueSoap[soapModels.size()]);
90      }
91  
92      public ExpandoValueSoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _valueId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setValueId(pk);
101     }
102 
103     public long getValueId() {
104         return _valueId;
105     }
106 
107     public void setValueId(long valueId) {
108         _valueId = valueId;
109     }
110 
111     public long getCompanyId() {
112         return _companyId;
113     }
114 
115     public void setCompanyId(long companyId) {
116         _companyId = companyId;
117     }
118 
119     public long getTableId() {
120         return _tableId;
121     }
122 
123     public void setTableId(long tableId) {
124         _tableId = tableId;
125     }
126 
127     public long getColumnId() {
128         return _columnId;
129     }
130 
131     public void setColumnId(long columnId) {
132         _columnId = columnId;
133     }
134 
135     public long getRowId() {
136         return _rowId;
137     }
138 
139     public void setRowId(long rowId) {
140         _rowId = rowId;
141     }
142 
143     public long getClassNameId() {
144         return _classNameId;
145     }
146 
147     public void setClassNameId(long classNameId) {
148         _classNameId = classNameId;
149     }
150 
151     public long getClassPK() {
152         return _classPK;
153     }
154 
155     public void setClassPK(long classPK) {
156         _classPK = classPK;
157     }
158 
159     public String getData() {
160         return _data;
161     }
162 
163     public void setData(String data) {
164         _data = data;
165     }
166 
167     private long _valueId;
168     private long _companyId;
169     private long _tableId;
170     private long _columnId;
171     private long _rowId;
172     private long _classNameId;
173     private long _classPK;
174     private String _data;
175 }