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.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author Brian Wing Shun Chan
027     * @generated
028     */
029    public class PasswordTrackerSoap implements Serializable {
030            public static PasswordTrackerSoap toSoapModel(PasswordTracker model) {
031                    PasswordTrackerSoap soapModel = new PasswordTrackerSoap();
032    
033                    soapModel.setPasswordTrackerId(model.getPasswordTrackerId());
034                    soapModel.setUserId(model.getUserId());
035                    soapModel.setCreateDate(model.getCreateDate());
036                    soapModel.setPassword(model.getPassword());
037    
038                    return soapModel;
039            }
040    
041            public static PasswordTrackerSoap[] toSoapModels(PasswordTracker[] models) {
042                    PasswordTrackerSoap[] soapModels = new PasswordTrackerSoap[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 PasswordTrackerSoap[][] toSoapModels(
052                    PasswordTracker[][] models) {
053                    PasswordTrackerSoap[][] soapModels = null;
054    
055                    if (models.length > 0) {
056                            soapModels = new PasswordTrackerSoap[models.length][models[0].length];
057                    }
058                    else {
059                            soapModels = new PasswordTrackerSoap[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 PasswordTrackerSoap[] toSoapModels(
070                    List<PasswordTracker> models) {
071                    List<PasswordTrackerSoap> soapModels = new ArrayList<PasswordTrackerSoap>(models.size());
072    
073                    for (PasswordTracker model : models) {
074                            soapModels.add(toSoapModel(model));
075                    }
076    
077                    return soapModels.toArray(new PasswordTrackerSoap[soapModels.size()]);
078            }
079    
080            public PasswordTrackerSoap() {
081            }
082    
083            public long getPrimaryKey() {
084                    return _passwordTrackerId;
085            }
086    
087            public void setPrimaryKey(long pk) {
088                    setPasswordTrackerId(pk);
089            }
090    
091            public long getPasswordTrackerId() {
092                    return _passwordTrackerId;
093            }
094    
095            public void setPasswordTrackerId(long passwordTrackerId) {
096                    _passwordTrackerId = passwordTrackerId;
097            }
098    
099            public long getUserId() {
100                    return _userId;
101            }
102    
103            public void setUserId(long userId) {
104                    _userId = userId;
105            }
106    
107            public Date getCreateDate() {
108                    return _createDate;
109            }
110    
111            public void setCreateDate(Date createDate) {
112                    _createDate = createDate;
113            }
114    
115            public String getPassword() {
116                    return _password;
117            }
118    
119            public void setPassword(String password) {
120                    _password = password;
121            }
122    
123            private long _passwordTrackerId;
124            private long _userId;
125            private Date _createDate;
126            private String _password;
127    }