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="ExpandoColumnSoap.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.ExpandoColumnServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.expando.service.http.ExpandoColumnServiceSoap
37   * @generated
38   */
39  public class ExpandoColumnSoap implements Serializable {
40      public static ExpandoColumnSoap toSoapModel(ExpandoColumn model) {
41          ExpandoColumnSoap soapModel = new ExpandoColumnSoap();
42  
43          soapModel.setColumnId(model.getColumnId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setTableId(model.getTableId());
46          soapModel.setName(model.getName());
47          soapModel.setType(model.getType());
48          soapModel.setDefaultData(model.getDefaultData());
49          soapModel.setTypeSettings(model.getTypeSettings());
50  
51          return soapModel;
52      }
53  
54      public static ExpandoColumnSoap[] toSoapModels(ExpandoColumn[] models) {
55          ExpandoColumnSoap[] soapModels = new ExpandoColumnSoap[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 ExpandoColumnSoap[][] toSoapModels(ExpandoColumn[][] models) {
65          ExpandoColumnSoap[][] soapModels = null;
66  
67          if (models.length > 0) {
68              soapModels = new ExpandoColumnSoap[models.length][models[0].length];
69          }
70          else {
71              soapModels = new ExpandoColumnSoap[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 ExpandoColumnSoap[] toSoapModels(List<ExpandoColumn> models) {
82          List<ExpandoColumnSoap> soapModels = new ArrayList<ExpandoColumnSoap>(models.size());
83  
84          for (ExpandoColumn model : models) {
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return soapModels.toArray(new ExpandoColumnSoap[soapModels.size()]);
89      }
90  
91      public ExpandoColumnSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _columnId;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setColumnId(pk);
100     }
101 
102     public long getColumnId() {
103         return _columnId;
104     }
105 
106     public void setColumnId(long columnId) {
107         _columnId = columnId;
108     }
109 
110     public long getCompanyId() {
111         return _companyId;
112     }
113 
114     public void setCompanyId(long companyId) {
115         _companyId = companyId;
116     }
117 
118     public long getTableId() {
119         return _tableId;
120     }
121 
122     public void setTableId(long tableId) {
123         _tableId = tableId;
124     }
125 
126     public String getName() {
127         return _name;
128     }
129 
130     public void setName(String name) {
131         _name = name;
132     }
133 
134     public int getType() {
135         return _type;
136     }
137 
138     public void setType(int type) {
139         _type = type;
140     }
141 
142     public String getDefaultData() {
143         return _defaultData;
144     }
145 
146     public void setDefaultData(String defaultData) {
147         _defaultData = defaultData;
148     }
149 
150     public String getTypeSettings() {
151         return _typeSettings;
152     }
153 
154     public void setTypeSettings(String typeSettings) {
155         _typeSettings = typeSettings;
156     }
157 
158     private long _columnId;
159     private long _companyId;
160     private long _tableId;
161     private String _name;
162     private int _type;
163     private String _defaultData;
164     private String _typeSettings;
165 }