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="ExpandoTableSoap.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.ExpandoTableServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.expando.service.http.ExpandoTableServiceSoap
37   * @generated
38   */
39  public class ExpandoTableSoap implements Serializable {
40      public static ExpandoTableSoap toSoapModel(ExpandoTable model) {
41          ExpandoTableSoap soapModel = new ExpandoTableSoap();
42  
43          soapModel.setTableId(model.getTableId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setClassNameId(model.getClassNameId());
46          soapModel.setName(model.getName());
47  
48          return soapModel;
49      }
50  
51      public static ExpandoTableSoap[] toSoapModels(ExpandoTable[] models) {
52          ExpandoTableSoap[] soapModels = new ExpandoTableSoap[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 ExpandoTableSoap[][] toSoapModels(ExpandoTable[][] models) {
62          ExpandoTableSoap[][] soapModels = null;
63  
64          if (models.length > 0) {
65              soapModels = new ExpandoTableSoap[models.length][models[0].length];
66          }
67          else {
68              soapModels = new ExpandoTableSoap[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 ExpandoTableSoap[] toSoapModels(List<ExpandoTable> models) {
79          List<ExpandoTableSoap> soapModels = new ArrayList<ExpandoTableSoap>(models.size());
80  
81          for (ExpandoTable model : models) {
82              soapModels.add(toSoapModel(model));
83          }
84  
85          return soapModels.toArray(new ExpandoTableSoap[soapModels.size()]);
86      }
87  
88      public ExpandoTableSoap() {
89      }
90  
91      public long getPrimaryKey() {
92          return _tableId;
93      }
94  
95      public void setPrimaryKey(long pk) {
96          setTableId(pk);
97      }
98  
99      public long getTableId() {
100         return _tableId;
101     }
102 
103     public void setTableId(long tableId) {
104         _tableId = tableId;
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 getClassNameId() {
116         return _classNameId;
117     }
118 
119     public void setClassNameId(long classNameId) {
120         _classNameId = classNameId;
121     }
122 
123     public String getName() {
124         return _name;
125     }
126 
127     public void setName(String name) {
128         _name = name;
129     }
130 
131     private long _tableId;
132     private long _companyId;
133     private long _classNameId;
134     private String _name;
135 }