001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class PasswordPolicyRelSoap implements Serializable {
032            public static PasswordPolicyRelSoap toSoapModel(PasswordPolicyRel model) {
033                    PasswordPolicyRelSoap soapModel = new PasswordPolicyRelSoap();
034    
035                    soapModel.setMvccVersion(model.getMvccVersion());
036                    soapModel.setPasswordPolicyRelId(model.getPasswordPolicyRelId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
039                    soapModel.setClassNameId(model.getClassNameId());
040                    soapModel.setClassPK(model.getClassPK());
041    
042                    return soapModel;
043            }
044    
045            public static PasswordPolicyRelSoap[] toSoapModels(
046                    PasswordPolicyRel[] models) {
047                    PasswordPolicyRelSoap[] soapModels = new PasswordPolicyRelSoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static PasswordPolicyRelSoap[][] toSoapModels(
057                    PasswordPolicyRel[][] models) {
058                    PasswordPolicyRelSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new PasswordPolicyRelSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new PasswordPolicyRelSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static PasswordPolicyRelSoap[] toSoapModels(
075                    List<PasswordPolicyRel> models) {
076                    List<PasswordPolicyRelSoap> soapModels = new ArrayList<PasswordPolicyRelSoap>(models.size());
077    
078                    for (PasswordPolicyRel model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new PasswordPolicyRelSoap[soapModels.size()]);
083            }
084    
085            public PasswordPolicyRelSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _passwordPolicyRelId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setPasswordPolicyRelId(pk);
094            }
095    
096            public long getMvccVersion() {
097                    return _mvccVersion;
098            }
099    
100            public void setMvccVersion(long mvccVersion) {
101                    _mvccVersion = mvccVersion;
102            }
103    
104            public long getPasswordPolicyRelId() {
105                    return _passwordPolicyRelId;
106            }
107    
108            public void setPasswordPolicyRelId(long passwordPolicyRelId) {
109                    _passwordPolicyRelId = passwordPolicyRelId;
110            }
111    
112            public long getCompanyId() {
113                    return _companyId;
114            }
115    
116            public void setCompanyId(long companyId) {
117                    _companyId = companyId;
118            }
119    
120            public long getPasswordPolicyId() {
121                    return _passwordPolicyId;
122            }
123    
124            public void setPasswordPolicyId(long passwordPolicyId) {
125                    _passwordPolicyId = passwordPolicyId;
126            }
127    
128            public long getClassNameId() {
129                    return _classNameId;
130            }
131    
132            public void setClassNameId(long classNameId) {
133                    _classNameId = classNameId;
134            }
135    
136            public long getClassPK() {
137                    return _classPK;
138            }
139    
140            public void setClassPK(long classPK) {
141                    _classPK = classPK;
142            }
143    
144            private long _mvccVersion;
145            private long _passwordPolicyRelId;
146            private long _companyId;
147            private long _passwordPolicyId;
148            private long _classNameId;
149            private long _classPK;
150    }