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="ExpandoRowSoap.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.ExpandoRowServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.expando.service.http.ExpandoRowServiceSoap
37   * @generated
38   */
39  public class ExpandoRowSoap implements Serializable {
40      public static ExpandoRowSoap toSoapModel(ExpandoRow model) {
41          ExpandoRowSoap soapModel = new ExpandoRowSoap();
42  
43          soapModel.setRowId(model.getRowId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setTableId(model.getTableId());
46          soapModel.setClassPK(model.getClassPK());
47  
48          return soapModel;
49      }
50  
51      public static ExpandoRowSoap[] toSoapModels(ExpandoRow[] models) {
52          ExpandoRowSoap[] soapModels = new ExpandoRowSoap[models.length];
53  
54          for (int i = 0; i < models.length; i++) {
55              soapModels[i] = toSoapModel(models[i]);
56          }
57  
58          return soapModels;
59      }
60  
61      public static ExpandoRowSoap[][] toSoapModels(ExpandoRow[][] models) {
62          ExpandoRowSoap[][] soapModels = null;
63  
64          if (models.length > 0) {
65              soapModels = new ExpandoRowSoap[models.length][models[0].length];
66          }
67          else {
68              soapModels = new ExpandoRowSoap[0][0];
69          }
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModels(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static ExpandoRowSoap[] toSoapModels(List<ExpandoRow> models) {
79          List<ExpandoRowSoap> soapModels = new ArrayList<ExpandoRowSoap>(models.size());
80  
81          for (ExpandoRow model : models) {
82              soapModels.add(toSoapModel(model));
83          }
84  
85          return soapModels.toArray(new ExpandoRowSoap[soapModels.size()]);
86      }
87  
88      public ExpandoRowSoap() {
89      }
90  
91      public long getPrimaryKey() {
92          return _rowId;
93      }
94  
95      public void setPrimaryKey(long pk) {
96          setRowId(pk);
97      }
98  
99      public long getRowId() {
100         return _rowId;
101     }
102 
103     public void setRowId(long rowId) {
104         _rowId = rowId;
105     }
106 
107     public long getCompanyId() {
108         return _companyId;
109     }
110 
111     public void setCompanyId(long companyId) {
112         _companyId = companyId;
113     }
114 
115     public long getTableId() {
116         return _tableId;
117     }
118 
119     public void setTableId(long tableId) {
120         _tableId = tableId;
121     }
122 
123     public long getClassPK() {
124         return _classPK;
125     }
126 
127     public void setClassPK(long classPK) {
128         _classPK = classPK;
129     }
130 
131     private long _rowId;
132     private long _companyId;
133     private long _tableId;
134     private long _classPK;
135 }