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