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