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