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.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="PasswordPolicyRelSoap.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.portal.service.http.PasswordPolicyRelServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.PasswordPolicyRelServiceSoap
37   * @generated
38   */
39  public class PasswordPolicyRelSoap implements Serializable {
40      public static PasswordPolicyRelSoap toSoapModel(PasswordPolicyRel model) {
41          PasswordPolicyRelSoap soapModel = new PasswordPolicyRelSoap();
42  
43          soapModel.setPasswordPolicyRelId(model.getPasswordPolicyRelId());
44          soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
45          soapModel.setClassNameId(model.getClassNameId());
46          soapModel.setClassPK(model.getClassPK());
47  
48          return soapModel;
49      }
50  
51      public static PasswordPolicyRelSoap[] toSoapModels(
52          PasswordPolicyRel[] models) {
53          PasswordPolicyRelSoap[] soapModels = new PasswordPolicyRelSoap[models.length];
54  
55          for (int i = 0; i < models.length; i++) {
56              soapModels[i] = toSoapModel(models[i]);
57          }
58  
59          return soapModels;
60      }
61  
62      public static PasswordPolicyRelSoap[][] toSoapModels(
63          PasswordPolicyRel[][] models) {
64          PasswordPolicyRelSoap[][] soapModels = null;
65  
66          if (models.length > 0) {
67              soapModels = new PasswordPolicyRelSoap[models.length][models[0].length];
68          }
69          else {
70              soapModels = new PasswordPolicyRelSoap[0][0];
71          }
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModels(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static PasswordPolicyRelSoap[] toSoapModels(
81          List<PasswordPolicyRel> models) {
82          List<PasswordPolicyRelSoap> soapModels = new ArrayList<PasswordPolicyRelSoap>(models.size());
83  
84          for (PasswordPolicyRel model : models) {
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return soapModels.toArray(new PasswordPolicyRelSoap[soapModels.size()]);
89      }
90  
91      public PasswordPolicyRelSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _passwordPolicyRelId;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setPasswordPolicyRelId(pk);
100     }
101 
102     public long getPasswordPolicyRelId() {
103         return _passwordPolicyRelId;
104     }
105 
106     public void setPasswordPolicyRelId(long passwordPolicyRelId) {
107         _passwordPolicyRelId = passwordPolicyRelId;
108     }
109 
110     public long getPasswordPolicyId() {
111         return _passwordPolicyId;
112     }
113 
114     public void setPasswordPolicyId(long passwordPolicyId) {
115         _passwordPolicyId = passwordPolicyId;
116     }
117 
118     public long getClassNameId() {
119         return _classNameId;
120     }
121 
122     public void setClassNameId(long classNameId) {
123         _classNameId = classNameId;
124     }
125 
126     public long getClassPK() {
127         return _classPK;
128     }
129 
130     public void setClassPK(long classPK) {
131         _classPK = classPK;
132     }
133 
134     private long _passwordPolicyRelId;
135     private long _passwordPolicyId;
136     private long _classNameId;
137     private long _classPK;
138 }