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.setPasswordPolicyId(model.getPasswordPolicyId());
038                    soapModel.setClassNameId(model.getClassNameId());
039                    soapModel.setClassPK(model.getClassPK());
040    
041                    return soapModel;
042            }
043    
044            public static PasswordPolicyRelSoap[] toSoapModels(
045                    PasswordPolicyRel[] models) {
046                    PasswordPolicyRelSoap[] soapModels = new PasswordPolicyRelSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static PasswordPolicyRelSoap[][] toSoapModels(
056                    PasswordPolicyRel[][] models) {
057                    PasswordPolicyRelSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new PasswordPolicyRelSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new PasswordPolicyRelSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static PasswordPolicyRelSoap[] toSoapModels(
074                    List<PasswordPolicyRel> models) {
075                    List<PasswordPolicyRelSoap> soapModels = new ArrayList<PasswordPolicyRelSoap>(models.size());
076    
077                    for (PasswordPolicyRel model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new PasswordPolicyRelSoap[soapModels.size()]);
082            }
083    
084            public PasswordPolicyRelSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _passwordPolicyRelId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setPasswordPolicyRelId(pk);
093            }
094    
095            public long getMvccVersion() {
096                    return _mvccVersion;
097            }
098    
099            public void setMvccVersion(long mvccVersion) {
100                    _mvccVersion = mvccVersion;
101            }
102    
103            public long getPasswordPolicyRelId() {
104                    return _passwordPolicyRelId;
105            }
106    
107            public void setPasswordPolicyRelId(long passwordPolicyRelId) {
108                    _passwordPolicyRelId = passwordPolicyRelId;
109            }
110    
111            public long getPasswordPolicyId() {
112                    return _passwordPolicyId;
113            }
114    
115            public void setPasswordPolicyId(long passwordPolicyId) {
116                    _passwordPolicyId = passwordPolicyId;
117            }
118    
119            public long getClassNameId() {
120                    return _classNameId;
121            }
122    
123            public void setClassNameId(long classNameId) {
124                    _classNameId = classNameId;
125            }
126    
127            public long getClassPK() {
128                    return _classPK;
129            }
130    
131            public void setClassPK(long classPK) {
132                    _classPK = classPK;
133            }
134    
135            private long _mvccVersion;
136            private long _passwordPolicyRelId;
137            private long _passwordPolicyId;
138            private long _classNameId;
139            private long _classPK;
140    }