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