001    /**
002     * Copyright (c) 2000-2013 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 java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class PasswordPolicyRelSoap implements Serializable {
029            public static PasswordPolicyRelSoap toSoapModel(PasswordPolicyRel model) {
030                    PasswordPolicyRelSoap soapModel = new PasswordPolicyRelSoap();
031    
032                    soapModel.setPasswordPolicyRelId(model.getPasswordPolicyRelId());
033                    soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
034                    soapModel.setClassNameId(model.getClassNameId());
035                    soapModel.setClassPK(model.getClassPK());
036    
037                    return soapModel;
038            }
039    
040            public static PasswordPolicyRelSoap[] toSoapModels(
041                    PasswordPolicyRel[] models) {
042                    PasswordPolicyRelSoap[] soapModels = new PasswordPolicyRelSoap[models.length];
043    
044                    for (int i = 0; i < models.length; i++) {
045                            soapModels[i] = toSoapModel(models[i]);
046                    }
047    
048                    return soapModels;
049            }
050    
051            public static PasswordPolicyRelSoap[][] toSoapModels(
052                    PasswordPolicyRel[][] models) {
053                    PasswordPolicyRelSoap[][] soapModels = null;
054    
055                    if (models.length > 0) {
056                            soapModels = new PasswordPolicyRelSoap[models.length][models[0].length];
057                    }
058                    else {
059                            soapModels = new PasswordPolicyRelSoap[0][0];
060                    }
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModels(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static PasswordPolicyRelSoap[] toSoapModels(
070                    List<PasswordPolicyRel> models) {
071                    List<PasswordPolicyRelSoap> soapModels = new ArrayList<PasswordPolicyRelSoap>(models.size());
072    
073                    for (PasswordPolicyRel model : models) {
074                            soapModels.add(toSoapModel(model));
075                    }
076    
077                    return soapModels.toArray(new PasswordPolicyRelSoap[soapModels.size()]);
078            }
079    
080            public PasswordPolicyRelSoap() {
081            }
082    
083            public long getPrimaryKey() {
084                    return _passwordPolicyRelId;
085            }
086    
087            public void setPrimaryKey(long pk) {
088                    setPasswordPolicyRelId(pk);
089            }
090    
091            public long getPasswordPolicyRelId() {
092                    return _passwordPolicyRelId;
093            }
094    
095            public void setPasswordPolicyRelId(long passwordPolicyRelId) {
096                    _passwordPolicyRelId = passwordPolicyRelId;
097            }
098    
099            public long getPasswordPolicyId() {
100                    return _passwordPolicyId;
101            }
102    
103            public void setPasswordPolicyId(long passwordPolicyId) {
104                    _passwordPolicyId = passwordPolicyId;
105            }
106    
107            public long getClassNameId() {
108                    return _classNameId;
109            }
110    
111            public void setClassNameId(long classNameId) {
112                    _classNameId = classNameId;
113            }
114    
115            public long getClassPK() {
116                    return _classPK;
117            }
118    
119            public void setClassPK(long classPK) {
120                    _classPK = classPK;
121            }
122    
123            private long _passwordPolicyRelId;
124            private long _passwordPolicyId;
125            private long _classNameId;
126            private long _classPK;
127    }