1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.setTableId(model.getTableId());
45          soapModel.setColumnId(model.getColumnId());
46          soapModel.setRowId(model.getRowId());
47          soapModel.setClassNameId(model.getClassNameId());
48          soapModel.setClassPK(model.getClassPK());
49          soapModel.setData(model.getData());
50  
51          return soapModel;
52      }
53  
54      public static ExpandoValueSoap[] toSoapModels(ExpandoValue[] models) {
55          ExpandoValueSoap[] soapModels = new ExpandoValueSoap[models.length];
56  
57          for (int i = 0; i < models.length; i++) {
58              soapModels[i] = toSoapModel(models[i]);
59          }
60  
61          return soapModels;
62      }
63  
64      public static ExpandoValueSoap[][] toSoapModels(ExpandoValue[][] models) {
65          ExpandoValueSoap[][] soapModels = null;
66  
67          if (models.length > 0) {
68              soapModels = new ExpandoValueSoap[models.length][models[0].length];
69          }
70          else {
71              soapModels = new ExpandoValueSoap[0][0];
72          }
73  
74          for (int i = 0; i < models.length; i++) {
75              soapModels[i] = toSoapModels(models[i]);
76          }
77  
78          return soapModels;
79      }
80  
81      public static ExpandoValueSoap[] toSoapModels(List<ExpandoValue> models) {
82          List<ExpandoValueSoap> soapModels = new ArrayList<ExpandoValueSoap>(models.size());
83  
84          for (ExpandoValue model : models) {
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return soapModels.toArray(new ExpandoValueSoap[soapModels.size()]);
89      }
90  
91      public ExpandoValueSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _valueId;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setValueId(pk);
100     }
101 
102     public long getValueId() {
103         return _valueId;
104     }
105 
106     public void setValueId(long valueId) {
107         _valueId = valueId;
108     }
109 
110     public long getTableId() {
111         return _tableId;
112     }
113 
114     public void setTableId(long tableId) {
115         _tableId = tableId;
116     }
117 
118     public long getColumnId() {
119         return _columnId;
120     }
121 
122     public void setColumnId(long columnId) {
123         _columnId = columnId;
124     }
125 
126     public long getRowId() {
127         return _rowId;
128     }
129 
130     public void setRowId(long rowId) {
131         _rowId = rowId;
132     }
133 
134     public long getClassNameId() {
135         return _classNameId;
136     }
137 
138     public void setClassNameId(long classNameId) {
139         _classNameId = classNameId;
140     }
141 
142     public long getClassPK() {
143         return _classPK;
144     }
145 
146     public void setClassPK(long classPK) {
147         _classPK = classPK;
148     }
149 
150     public String getData() {
151         return _data;
152     }
153 
154     public void setData(String data) {
155         _data = data;
156     }
157 
158     private long _valueId;
159     private long _tableId;
160     private long _columnId;
161     private long _rowId;
162     private long _classNameId;
163     private long _classPK;
164     private String _data;
165 }