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.util.Date;
018    import java.util.HashMap;
019    import java.util.Map;
020    
021    /**
022     * <p>
023     * This class is a wrapper for {@link Team}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       Team
028     * @generated
029     */
030    public class TeamWrapper implements Team, ModelWrapper<Team> {
031            public TeamWrapper(Team team) {
032                    _team = team;
033            }
034    
035            public Class<?> getModelClass() {
036                    return Team.class;
037            }
038    
039            public String getModelClassName() {
040                    return Team.class.getName();
041            }
042    
043            public Map<String, Object> getModelAttributes() {
044                    Map<String, Object> attributes = new HashMap<String, Object>();
045    
046                    attributes.put("teamId", getTeamId());
047                    attributes.put("companyId", getCompanyId());
048                    attributes.put("userId", getUserId());
049                    attributes.put("userName", getUserName());
050                    attributes.put("createDate", getCreateDate());
051                    attributes.put("modifiedDate", getModifiedDate());
052                    attributes.put("groupId", getGroupId());
053                    attributes.put("name", getName());
054                    attributes.put("description", getDescription());
055    
056                    return attributes;
057            }
058    
059            public void setModelAttributes(Map<String, Object> attributes) {
060                    Long teamId = (Long)attributes.get("teamId");
061    
062                    if (teamId != null) {
063                            setTeamId(teamId);
064                    }
065    
066                    Long companyId = (Long)attributes.get("companyId");
067    
068                    if (companyId != null) {
069                            setCompanyId(companyId);
070                    }
071    
072                    Long userId = (Long)attributes.get("userId");
073    
074                    if (userId != null) {
075                            setUserId(userId);
076                    }
077    
078                    String userName = (String)attributes.get("userName");
079    
080                    if (userName != null) {
081                            setUserName(userName);
082                    }
083    
084                    Date createDate = (Date)attributes.get("createDate");
085    
086                    if (createDate != null) {
087                            setCreateDate(createDate);
088                    }
089    
090                    Date modifiedDate = (Date)attributes.get("modifiedDate");
091    
092                    if (modifiedDate != null) {
093                            setModifiedDate(modifiedDate);
094                    }
095    
096                    Long groupId = (Long)attributes.get("groupId");
097    
098                    if (groupId != null) {
099                            setGroupId(groupId);
100                    }
101    
102                    String name = (String)attributes.get("name");
103    
104                    if (name != null) {
105                            setName(name);
106                    }
107    
108                    String description = (String)attributes.get("description");
109    
110                    if (description != null) {
111                            setDescription(description);
112                    }
113            }
114    
115            /**
116            * Returns the primary key of this team.
117            *
118            * @return the primary key of this team
119            */
120            public long getPrimaryKey() {
121                    return _team.getPrimaryKey();
122            }
123    
124            /**
125            * Sets the primary key of this team.
126            *
127            * @param primaryKey the primary key of this team
128            */
129            public void setPrimaryKey(long primaryKey) {
130                    _team.setPrimaryKey(primaryKey);
131            }
132    
133            /**
134            * Returns the team ID of this team.
135            *
136            * @return the team ID of this team
137            */
138            public long getTeamId() {
139                    return _team.getTeamId();
140            }
141    
142            /**
143            * Sets the team ID of this team.
144            *
145            * @param teamId the team ID of this team
146            */
147            public void setTeamId(long teamId) {
148                    _team.setTeamId(teamId);
149            }
150    
151            /**
152            * Returns the company ID of this team.
153            *
154            * @return the company ID of this team
155            */
156            public long getCompanyId() {
157                    return _team.getCompanyId();
158            }
159    
160            /**
161            * Sets the company ID of this team.
162            *
163            * @param companyId the company ID of this team
164            */
165            public void setCompanyId(long companyId) {
166                    _team.setCompanyId(companyId);
167            }
168    
169            /**
170            * Returns the user ID of this team.
171            *
172            * @return the user ID of this team
173            */
174            public long getUserId() {
175                    return _team.getUserId();
176            }
177    
178            /**
179            * Sets the user ID of this team.
180            *
181            * @param userId the user ID of this team
182            */
183            public void setUserId(long userId) {
184                    _team.setUserId(userId);
185            }
186    
187            /**
188            * Returns the user uuid of this team.
189            *
190            * @return the user uuid of this team
191            * @throws SystemException if a system exception occurred
192            */
193            public java.lang.String getUserUuid()
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _team.getUserUuid();
196            }
197    
198            /**
199            * Sets the user uuid of this team.
200            *
201            * @param userUuid the user uuid of this team
202            */
203            public void setUserUuid(java.lang.String userUuid) {
204                    _team.setUserUuid(userUuid);
205            }
206    
207            /**
208            * Returns the user name of this team.
209            *
210            * @return the user name of this team
211            */
212            public java.lang.String getUserName() {
213                    return _team.getUserName();
214            }
215    
216            /**
217            * Sets the user name of this team.
218            *
219            * @param userName the user name of this team
220            */
221            public void setUserName(java.lang.String userName) {
222                    _team.setUserName(userName);
223            }
224    
225            /**
226            * Returns the create date of this team.
227            *
228            * @return the create date of this team
229            */
230            public java.util.Date getCreateDate() {
231                    return _team.getCreateDate();
232            }
233    
234            /**
235            * Sets the create date of this team.
236            *
237            * @param createDate the create date of this team
238            */
239            public void setCreateDate(java.util.Date createDate) {
240                    _team.setCreateDate(createDate);
241            }
242    
243            /**
244            * Returns the modified date of this team.
245            *
246            * @return the modified date of this team
247            */
248            public java.util.Date getModifiedDate() {
249                    return _team.getModifiedDate();
250            }
251    
252            /**
253            * Sets the modified date of this team.
254            *
255            * @param modifiedDate the modified date of this team
256            */
257            public void setModifiedDate(java.util.Date modifiedDate) {
258                    _team.setModifiedDate(modifiedDate);
259            }
260    
261            /**
262            * Returns the group ID of this team.
263            *
264            * @return the group ID of this team
265            */
266            public long getGroupId() {
267                    return _team.getGroupId();
268            }
269    
270            /**
271            * Sets the group ID of this team.
272            *
273            * @param groupId the group ID of this team
274            */
275            public void setGroupId(long groupId) {
276                    _team.setGroupId(groupId);
277            }
278    
279            /**
280            * Returns the name of this team.
281            *
282            * @return the name of this team
283            */
284            public java.lang.String getName() {
285                    return _team.getName();
286            }
287    
288            /**
289            * Sets the name of this team.
290            *
291            * @param name the name of this team
292            */
293            public void setName(java.lang.String name) {
294                    _team.setName(name);
295            }
296    
297            /**
298            * Returns the description of this team.
299            *
300            * @return the description of this team
301            */
302            public java.lang.String getDescription() {
303                    return _team.getDescription();
304            }
305    
306            /**
307            * Sets the description of this team.
308            *
309            * @param description the description of this team
310            */
311            public void setDescription(java.lang.String description) {
312                    _team.setDescription(description);
313            }
314    
315            public boolean isNew() {
316                    return _team.isNew();
317            }
318    
319            public void setNew(boolean n) {
320                    _team.setNew(n);
321            }
322    
323            public boolean isCachedModel() {
324                    return _team.isCachedModel();
325            }
326    
327            public void setCachedModel(boolean cachedModel) {
328                    _team.setCachedModel(cachedModel);
329            }
330    
331            public boolean isEscapedModel() {
332                    return _team.isEscapedModel();
333            }
334    
335            public java.io.Serializable getPrimaryKeyObj() {
336                    return _team.getPrimaryKeyObj();
337            }
338    
339            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
340                    _team.setPrimaryKeyObj(primaryKeyObj);
341            }
342    
343            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
344                    return _team.getExpandoBridge();
345            }
346    
347            public void setExpandoBridgeAttributes(
348                    com.liferay.portal.model.BaseModel<?> baseModel) {
349                    _team.setExpandoBridgeAttributes(baseModel);
350            }
351    
352            public void setExpandoBridgeAttributes(
353                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
354                    _team.setExpandoBridgeAttributes(expandoBridge);
355            }
356    
357            public void setExpandoBridgeAttributes(
358                    com.liferay.portal.service.ServiceContext serviceContext) {
359                    _team.setExpandoBridgeAttributes(serviceContext);
360            }
361    
362            @Override
363            public java.lang.Object clone() {
364                    return new TeamWrapper((Team)_team.clone());
365            }
366    
367            public int compareTo(com.liferay.portal.model.Team team) {
368                    return _team.compareTo(team);
369            }
370    
371            @Override
372            public int hashCode() {
373                    return _team.hashCode();
374            }
375    
376            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Team> toCacheModel() {
377                    return _team.toCacheModel();
378            }
379    
380            public com.liferay.portal.model.Team toEscapedModel() {
381                    return new TeamWrapper(_team.toEscapedModel());
382            }
383    
384            public com.liferay.portal.model.Team toUnescapedModel() {
385                    return new TeamWrapper(_team.toUnescapedModel());
386            }
387    
388            @Override
389            public java.lang.String toString() {
390                    return _team.toString();
391            }
392    
393            public java.lang.String toXmlString() {
394                    return _team.toXmlString();
395            }
396    
397            public void persist()
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    _team.persist();
400            }
401    
402            public com.liferay.portal.model.Role getRole()
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    return _team.getRole();
406            }
407    
408            /**
409             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
410             */
411            public Team getWrappedTeam() {
412                    return _team;
413            }
414    
415            public Team getWrappedModel() {
416                    return _team;
417            }
418    
419            public void resetOriginalValues() {
420                    _team.resetOriginalValues();
421            }
422    
423            private Team _team;
424    }