001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link Resource}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Resource
024     * @generated
025     */
026    public class ResourceWrapper implements Resource {
027            public ResourceWrapper(Resource resource) {
028                    _resource = resource;
029            }
030    
031            /**
032            * Gets the primary key of this resource.
033            *
034            * @return the primary key of this resource
035            */
036            public long getPrimaryKey() {
037                    return _resource.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this resource
042            *
043            * @param pk the primary key of this resource
044            */
045            public void setPrimaryKey(long pk) {
046                    _resource.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the resource id of this resource.
051            *
052            * @return the resource id of this resource
053            */
054            public long getResourceId() {
055                    return _resource.getResourceId();
056            }
057    
058            /**
059            * Sets the resource id of this resource.
060            *
061            * @param resourceId the resource id of this resource
062            */
063            public void setResourceId(long resourceId) {
064                    _resource.setResourceId(resourceId);
065            }
066    
067            /**
068            * Gets the code id of this resource.
069            *
070            * @return the code id of this resource
071            */
072            public long getCodeId() {
073                    return _resource.getCodeId();
074            }
075    
076            /**
077            * Sets the code id of this resource.
078            *
079            * @param codeId the code id of this resource
080            */
081            public void setCodeId(long codeId) {
082                    _resource.setCodeId(codeId);
083            }
084    
085            /**
086            * Gets the prim key of this resource.
087            *
088            * @return the prim key of this resource
089            */
090            public java.lang.String getPrimKey() {
091                    return _resource.getPrimKey();
092            }
093    
094            /**
095            * Sets the prim key of this resource.
096            *
097            * @param primKey the prim key of this resource
098            */
099            public void setPrimKey(java.lang.String primKey) {
100                    _resource.setPrimKey(primKey);
101            }
102    
103            public boolean isNew() {
104                    return _resource.isNew();
105            }
106    
107            public void setNew(boolean n) {
108                    _resource.setNew(n);
109            }
110    
111            public boolean isCachedModel() {
112                    return _resource.isCachedModel();
113            }
114    
115            public void setCachedModel(boolean cachedModel) {
116                    _resource.setCachedModel(cachedModel);
117            }
118    
119            public boolean isEscapedModel() {
120                    return _resource.isEscapedModel();
121            }
122    
123            public void setEscapedModel(boolean escapedModel) {
124                    _resource.setEscapedModel(escapedModel);
125            }
126    
127            public java.io.Serializable getPrimaryKeyObj() {
128                    return _resource.getPrimaryKeyObj();
129            }
130    
131            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
132                    return _resource.getExpandoBridge();
133            }
134    
135            public void setExpandoBridgeAttributes(
136                    com.liferay.portal.service.ServiceContext serviceContext) {
137                    _resource.setExpandoBridgeAttributes(serviceContext);
138            }
139    
140            public java.lang.Object clone() {
141                    return _resource.clone();
142            }
143    
144            public int compareTo(com.liferay.portal.model.Resource resource) {
145                    return _resource.compareTo(resource);
146            }
147    
148            public int hashCode() {
149                    return _resource.hashCode();
150            }
151    
152            public com.liferay.portal.model.Resource toEscapedModel() {
153                    return _resource.toEscapedModel();
154            }
155    
156            public java.lang.String toString() {
157                    return _resource.toString();
158            }
159    
160            public java.lang.String toXmlString() {
161                    return _resource.toXmlString();
162            }
163    
164            public long getCompanyId()
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _resource.getCompanyId();
168            }
169    
170            public java.lang.String getName()
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _resource.getName();
174            }
175    
176            public int getScope()
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _resource.getScope();
180            }
181    
182            public void setCompanyId(long companyId) {
183                    _resource.setCompanyId(companyId);
184            }
185    
186            public void setName(java.lang.String name) {
187                    _resource.setName(name);
188            }
189    
190            public void setScope(int scope) {
191                    _resource.setScope(scope);
192            }
193    
194            public Resource getWrappedResource() {
195                    return _resource;
196            }
197    
198            private Resource _resource;
199    }