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    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroupGroupRole}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupGroupRole
024     * @generated
025     */
026    public class UserGroupGroupRoleWrapper implements UserGroupGroupRole,
027            ModelWrapper<UserGroupGroupRole> {
028            public UserGroupGroupRoleWrapper(UserGroupGroupRole userGroupGroupRole) {
029                    _userGroupGroupRole = userGroupGroupRole;
030            }
031    
032            public Class<?> getModelClass() {
033                    return UserGroupGroupRole.class;
034            }
035    
036            public String getModelClassName() {
037                    return UserGroupGroupRole.class.getName();
038            }
039    
040            /**
041            * Returns the primary key of this user group group role.
042            *
043            * @return the primary key of this user group group role
044            */
045            public com.liferay.portal.service.persistence.UserGroupGroupRolePK getPrimaryKey() {
046                    return _userGroupGroupRole.getPrimaryKey();
047            }
048    
049            /**
050            * Sets the primary key of this user group group role.
051            *
052            * @param primaryKey the primary key of this user group group role
053            */
054            public void setPrimaryKey(
055                    com.liferay.portal.service.persistence.UserGroupGroupRolePK primaryKey) {
056                    _userGroupGroupRole.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the user group ID of this user group group role.
061            *
062            * @return the user group ID of this user group group role
063            */
064            public long getUserGroupId() {
065                    return _userGroupGroupRole.getUserGroupId();
066            }
067    
068            /**
069            * Sets the user group ID of this user group group role.
070            *
071            * @param userGroupId the user group ID of this user group group role
072            */
073            public void setUserGroupId(long userGroupId) {
074                    _userGroupGroupRole.setUserGroupId(userGroupId);
075            }
076    
077            /**
078            * Returns the group ID of this user group group role.
079            *
080            * @return the group ID of this user group group role
081            */
082            public long getGroupId() {
083                    return _userGroupGroupRole.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this user group group role.
088            *
089            * @param groupId the group ID of this user group group role
090            */
091            public void setGroupId(long groupId) {
092                    _userGroupGroupRole.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the role ID of this user group group role.
097            *
098            * @return the role ID of this user group group role
099            */
100            public long getRoleId() {
101                    return _userGroupGroupRole.getRoleId();
102            }
103    
104            /**
105            * Sets the role ID of this user group group role.
106            *
107            * @param roleId the role ID of this user group group role
108            */
109            public void setRoleId(long roleId) {
110                    _userGroupGroupRole.setRoleId(roleId);
111            }
112    
113            public boolean isNew() {
114                    return _userGroupGroupRole.isNew();
115            }
116    
117            public void setNew(boolean n) {
118                    _userGroupGroupRole.setNew(n);
119            }
120    
121            public boolean isCachedModel() {
122                    return _userGroupGroupRole.isCachedModel();
123            }
124    
125            public void setCachedModel(boolean cachedModel) {
126                    _userGroupGroupRole.setCachedModel(cachedModel);
127            }
128    
129            public boolean isEscapedModel() {
130                    return _userGroupGroupRole.isEscapedModel();
131            }
132    
133            public java.io.Serializable getPrimaryKeyObj() {
134                    return _userGroupGroupRole.getPrimaryKeyObj();
135            }
136    
137            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
138                    _userGroupGroupRole.setPrimaryKeyObj(primaryKeyObj);
139            }
140    
141            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
142                    return _userGroupGroupRole.getExpandoBridge();
143            }
144    
145            public void setExpandoBridgeAttributes(
146                    com.liferay.portal.service.ServiceContext serviceContext) {
147                    _userGroupGroupRole.setExpandoBridgeAttributes(serviceContext);
148            }
149    
150            @Override
151            public java.lang.Object clone() {
152                    return new UserGroupGroupRoleWrapper((UserGroupGroupRole)_userGroupGroupRole.clone());
153            }
154    
155            public int compareTo(
156                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
157                    return _userGroupGroupRole.compareTo(userGroupGroupRole);
158            }
159    
160            @Override
161            public int hashCode() {
162                    return _userGroupGroupRole.hashCode();
163            }
164    
165            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroupGroupRole> toCacheModel() {
166                    return _userGroupGroupRole.toCacheModel();
167            }
168    
169            public com.liferay.portal.model.UserGroupGroupRole toEscapedModel() {
170                    return new UserGroupGroupRoleWrapper(_userGroupGroupRole.toEscapedModel());
171            }
172    
173            @Override
174            public java.lang.String toString() {
175                    return _userGroupGroupRole.toString();
176            }
177    
178            public java.lang.String toXmlString() {
179                    return _userGroupGroupRole.toXmlString();
180            }
181    
182            public void persist()
183                    throws com.liferay.portal.kernel.exception.SystemException {
184                    _userGroupGroupRole.persist();
185            }
186    
187            /**
188             * @deprecated Renamed to {@link #getWrappedModel}
189             */
190            public UserGroupGroupRole getWrappedUserGroupGroupRole() {
191                    return _userGroupGroupRole;
192            }
193    
194            public UserGroupGroupRole getWrappedModel() {
195                    return _userGroupGroupRole;
196            }
197    
198            public void resetOriginalValues() {
199                    _userGroupGroupRole.resetOriginalValues();
200            }
201    
202            private UserGroupGroupRole _userGroupGroupRole;
203    }