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.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class PasswordTrackerSoap implements Serializable {
033            public static PasswordTrackerSoap toSoapModel(PasswordTracker model) {
034                    PasswordTrackerSoap soapModel = new PasswordTrackerSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setPasswordTrackerId(model.getPasswordTrackerId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setPassword(model.getPassword());
041    
042                    return soapModel;
043            }
044    
045            public static PasswordTrackerSoap[] toSoapModels(PasswordTracker[] models) {
046                    PasswordTrackerSoap[] soapModels = new PasswordTrackerSoap[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 PasswordTrackerSoap[][] toSoapModels(
056                    PasswordTracker[][] models) {
057                    PasswordTrackerSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new PasswordTrackerSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new PasswordTrackerSoap[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 PasswordTrackerSoap[] toSoapModels(
074                    List<PasswordTracker> models) {
075                    List<PasswordTrackerSoap> soapModels = new ArrayList<PasswordTrackerSoap>(models.size());
076    
077                    for (PasswordTracker model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new PasswordTrackerSoap[soapModels.size()]);
082            }
083    
084            public PasswordTrackerSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _passwordTrackerId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setPasswordTrackerId(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 getPasswordTrackerId() {
104                    return _passwordTrackerId;
105            }
106    
107            public void setPasswordTrackerId(long passwordTrackerId) {
108                    _passwordTrackerId = passwordTrackerId;
109            }
110    
111            public long getUserId() {
112                    return _userId;
113            }
114    
115            public void setUserId(long userId) {
116                    _userId = userId;
117            }
118    
119            public Date getCreateDate() {
120                    return _createDate;
121            }
122    
123            public void setCreateDate(Date createDate) {
124                    _createDate = createDate;
125            }
126    
127            public String getPassword() {
128                    return _password;
129            }
130    
131            public void setPassword(String password) {
132                    _password = password;
133            }
134    
135            private long _mvccVersion;
136            private long _passwordTrackerId;
137            private long _userId;
138            private Date _createDate;
139            private String _password;
140    }