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.social.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="SocialEquitySettingSoap.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.social.service.http.SocialEquitySettingServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.social.service.http.SocialEquitySettingServiceSoap
37   * @generated
38   */
39  public class SocialEquitySettingSoap implements Serializable {
40      public static SocialEquitySettingSoap toSoapModel(SocialEquitySetting model) {
41          SocialEquitySettingSoap soapModel = new SocialEquitySettingSoap();
42  
43          soapModel.setEquitySettingId(model.getEquitySettingId());
44          soapModel.setGroupId(model.getGroupId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setClassNameId(model.getClassNameId());
47          soapModel.setActionId(model.getActionId());
48          soapModel.setType(model.getType());
49          soapModel.setValue(model.getValue());
50          soapModel.setValidity(model.getValidity());
51  
52          return soapModel;
53      }
54  
55      public static SocialEquitySettingSoap[] toSoapModels(
56          SocialEquitySetting[] models) {
57          SocialEquitySettingSoap[] soapModels = new SocialEquitySettingSoap[models.length];
58  
59          for (int i = 0; i < models.length; i++) {
60              soapModels[i] = toSoapModel(models[i]);
61          }
62  
63          return soapModels;
64      }
65  
66      public static SocialEquitySettingSoap[][] toSoapModels(
67          SocialEquitySetting[][] models) {
68          SocialEquitySettingSoap[][] soapModels = null;
69  
70          if (models.length > 0) {
71              soapModels = new SocialEquitySettingSoap[models.length][models[0].length];
72          }
73          else {
74              soapModels = new SocialEquitySettingSoap[0][0];
75          }
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModels(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static SocialEquitySettingSoap[] toSoapModels(
85          List<SocialEquitySetting> models) {
86          List<SocialEquitySettingSoap> soapModels = new ArrayList<SocialEquitySettingSoap>(models.size());
87  
88          for (SocialEquitySetting model : models) {
89              soapModels.add(toSoapModel(model));
90          }
91  
92          return soapModels.toArray(new SocialEquitySettingSoap[soapModels.size()]);
93      }
94  
95      public SocialEquitySettingSoap() {
96      }
97  
98      public long getPrimaryKey() {
99          return _equitySettingId;
100     }
101 
102     public void setPrimaryKey(long pk) {
103         setEquitySettingId(pk);
104     }
105 
106     public long getEquitySettingId() {
107         return _equitySettingId;
108     }
109 
110     public void setEquitySettingId(long equitySettingId) {
111         _equitySettingId = equitySettingId;
112     }
113 
114     public long getGroupId() {
115         return _groupId;
116     }
117 
118     public void setGroupId(long groupId) {
119         _groupId = groupId;
120     }
121 
122     public long getCompanyId() {
123         return _companyId;
124     }
125 
126     public void setCompanyId(long companyId) {
127         _companyId = companyId;
128     }
129 
130     public long getClassNameId() {
131         return _classNameId;
132     }
133 
134     public void setClassNameId(long classNameId) {
135         _classNameId = classNameId;
136     }
137 
138     public String getActionId() {
139         return _actionId;
140     }
141 
142     public void setActionId(String actionId) {
143         _actionId = actionId;
144     }
145 
146     public int getType() {
147         return _type;
148     }
149 
150     public void setType(int type) {
151         _type = type;
152     }
153 
154     public int getValue() {
155         return _value;
156     }
157 
158     public void setValue(int value) {
159         _value = value;
160     }
161 
162     public int getValidity() {
163         return _validity;
164     }
165 
166     public void setValidity(int validity) {
167         _validity = validity;
168     }
169 
170     private long _equitySettingId;
171     private long _groupId;
172     private long _companyId;
173     private long _classNameId;
174     private String _actionId;
175     private int _type;
176     private int _value;
177     private int _validity;
178 }