001    /**
002     * Copyright (c) 2000-2012 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.util.Date;
018    import java.util.HashMap;
019    import java.util.Map;
020    
021    /**
022     * <p>
023     * This class is a wrapper for {@link PasswordTracker}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       PasswordTracker
028     * @generated
029     */
030    public class PasswordTrackerWrapper implements PasswordTracker,
031            ModelWrapper<PasswordTracker> {
032            public PasswordTrackerWrapper(PasswordTracker passwordTracker) {
033                    _passwordTracker = passwordTracker;
034            }
035    
036            public Class<?> getModelClass() {
037                    return PasswordTracker.class;
038            }
039    
040            public String getModelClassName() {
041                    return PasswordTracker.class.getName();
042            }
043    
044            public Map<String, Object> getModelAttributes() {
045                    Map<String, Object> attributes = new HashMap<String, Object>();
046    
047                    attributes.put("passwordTrackerId", getPasswordTrackerId());
048                    attributes.put("userId", getUserId());
049                    attributes.put("createDate", getCreateDate());
050                    attributes.put("password", getPassword());
051    
052                    return attributes;
053            }
054    
055            public void setModelAttributes(Map<String, Object> attributes) {
056                    Long passwordTrackerId = (Long)attributes.get("passwordTrackerId");
057    
058                    if (passwordTrackerId != null) {
059                            setPasswordTrackerId(passwordTrackerId);
060                    }
061    
062                    Long userId = (Long)attributes.get("userId");
063    
064                    if (userId != null) {
065                            setUserId(userId);
066                    }
067    
068                    Date createDate = (Date)attributes.get("createDate");
069    
070                    if (createDate != null) {
071                            setCreateDate(createDate);
072                    }
073    
074                    String password = (String)attributes.get("password");
075    
076                    if (password != null) {
077                            setPassword(password);
078                    }
079            }
080    
081            /**
082            * Returns the primary key of this password tracker.
083            *
084            * @return the primary key of this password tracker
085            */
086            public long getPrimaryKey() {
087                    return _passwordTracker.getPrimaryKey();
088            }
089    
090            /**
091            * Sets the primary key of this password tracker.
092            *
093            * @param primaryKey the primary key of this password tracker
094            */
095            public void setPrimaryKey(long primaryKey) {
096                    _passwordTracker.setPrimaryKey(primaryKey);
097            }
098    
099            /**
100            * Returns the password tracker ID of this password tracker.
101            *
102            * @return the password tracker ID of this password tracker
103            */
104            public long getPasswordTrackerId() {
105                    return _passwordTracker.getPasswordTrackerId();
106            }
107    
108            /**
109            * Sets the password tracker ID of this password tracker.
110            *
111            * @param passwordTrackerId the password tracker ID of this password tracker
112            */
113            public void setPasswordTrackerId(long passwordTrackerId) {
114                    _passwordTracker.setPasswordTrackerId(passwordTrackerId);
115            }
116    
117            /**
118            * Returns the user ID of this password tracker.
119            *
120            * @return the user ID of this password tracker
121            */
122            public long getUserId() {
123                    return _passwordTracker.getUserId();
124            }
125    
126            /**
127            * Sets the user ID of this password tracker.
128            *
129            * @param userId the user ID of this password tracker
130            */
131            public void setUserId(long userId) {
132                    _passwordTracker.setUserId(userId);
133            }
134    
135            /**
136            * Returns the user uuid of this password tracker.
137            *
138            * @return the user uuid of this password tracker
139            * @throws SystemException if a system exception occurred
140            */
141            public java.lang.String getUserUuid()
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _passwordTracker.getUserUuid();
144            }
145    
146            /**
147            * Sets the user uuid of this password tracker.
148            *
149            * @param userUuid the user uuid of this password tracker
150            */
151            public void setUserUuid(java.lang.String userUuid) {
152                    _passwordTracker.setUserUuid(userUuid);
153            }
154    
155            /**
156            * Returns the create date of this password tracker.
157            *
158            * @return the create date of this password tracker
159            */
160            public java.util.Date getCreateDate() {
161                    return _passwordTracker.getCreateDate();
162            }
163    
164            /**
165            * Sets the create date of this password tracker.
166            *
167            * @param createDate the create date of this password tracker
168            */
169            public void setCreateDate(java.util.Date createDate) {
170                    _passwordTracker.setCreateDate(createDate);
171            }
172    
173            /**
174            * Returns the password of this password tracker.
175            *
176            * @return the password of this password tracker
177            */
178            public java.lang.String getPassword() {
179                    return _passwordTracker.getPassword();
180            }
181    
182            /**
183            * Sets the password of this password tracker.
184            *
185            * @param password the password of this password tracker
186            */
187            public void setPassword(java.lang.String password) {
188                    _passwordTracker.setPassword(password);
189            }
190    
191            public boolean isNew() {
192                    return _passwordTracker.isNew();
193            }
194    
195            public void setNew(boolean n) {
196                    _passwordTracker.setNew(n);
197            }
198    
199            public boolean isCachedModel() {
200                    return _passwordTracker.isCachedModel();
201            }
202    
203            public void setCachedModel(boolean cachedModel) {
204                    _passwordTracker.setCachedModel(cachedModel);
205            }
206    
207            public boolean isEscapedModel() {
208                    return _passwordTracker.isEscapedModel();
209            }
210    
211            public java.io.Serializable getPrimaryKeyObj() {
212                    return _passwordTracker.getPrimaryKeyObj();
213            }
214    
215            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
216                    _passwordTracker.setPrimaryKeyObj(primaryKeyObj);
217            }
218    
219            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
220                    return _passwordTracker.getExpandoBridge();
221            }
222    
223            public void setExpandoBridgeAttributes(
224                    com.liferay.portal.service.ServiceContext serviceContext) {
225                    _passwordTracker.setExpandoBridgeAttributes(serviceContext);
226            }
227    
228            @Override
229            public java.lang.Object clone() {
230                    return new PasswordTrackerWrapper((PasswordTracker)_passwordTracker.clone());
231            }
232    
233            public int compareTo(
234                    com.liferay.portal.model.PasswordTracker passwordTracker) {
235                    return _passwordTracker.compareTo(passwordTracker);
236            }
237    
238            @Override
239            public int hashCode() {
240                    return _passwordTracker.hashCode();
241            }
242    
243            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordTracker> toCacheModel() {
244                    return _passwordTracker.toCacheModel();
245            }
246    
247            public com.liferay.portal.model.PasswordTracker toEscapedModel() {
248                    return new PasswordTrackerWrapper(_passwordTracker.toEscapedModel());
249            }
250    
251            public com.liferay.portal.model.PasswordTracker toUnescapedModel() {
252                    return new PasswordTrackerWrapper(_passwordTracker.toUnescapedModel());
253            }
254    
255            @Override
256            public java.lang.String toString() {
257                    return _passwordTracker.toString();
258            }
259    
260            public java.lang.String toXmlString() {
261                    return _passwordTracker.toXmlString();
262            }
263    
264            public void persist()
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    _passwordTracker.persist();
267            }
268    
269            /**
270             * @deprecated Renamed to {@link #getWrappedModel}
271             */
272            public PasswordTracker getWrappedPasswordTracker() {
273                    return _passwordTracker;
274            }
275    
276            public PasswordTracker getWrappedModel() {
277                    return _passwordTracker;
278            }
279    
280            public void resetOriginalValues() {
281                    _passwordTracker.resetOriginalValues();
282            }
283    
284            private PasswordTracker _passwordTracker;
285    }