001    /**
002     * Copyright (c) 2000-2011 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            public Class<?> getModelClass() {
032                    return Resource.class;
033            }
034    
035            public String getModelClassName() {
036                    return Resource.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this resource.
041            *
042            * @return the primary key of this resource
043            */
044            public long getPrimaryKey() {
045                    return _resource.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this resource
050            *
051            * @param primaryKey the primary key of this resource
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _resource.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the resource ID of this resource.
059            *
060            * @return the resource ID of this resource
061            */
062            public long getResourceId() {
063                    return _resource.getResourceId();
064            }
065    
066            /**
067            * Sets the resource ID of this resource.
068            *
069            * @param resourceId the resource ID of this resource
070            */
071            public void setResourceId(long resourceId) {
072                    _resource.setResourceId(resourceId);
073            }
074    
075            /**
076            * Gets the code ID of this resource.
077            *
078            * @return the code ID of this resource
079            */
080            public long getCodeId() {
081                    return _resource.getCodeId();
082            }
083    
084            /**
085            * Sets the code ID of this resource.
086            *
087            * @param codeId the code ID of this resource
088            */
089            public void setCodeId(long codeId) {
090                    _resource.setCodeId(codeId);
091            }
092    
093            /**
094            * Gets the prim key of this resource.
095            *
096            * @return the prim key of this resource
097            */
098            public java.lang.String getPrimKey() {
099                    return _resource.getPrimKey();
100            }
101    
102            /**
103            * Sets the prim key of this resource.
104            *
105            * @param primKey the prim key of this resource
106            */
107            public void setPrimKey(java.lang.String primKey) {
108                    _resource.setPrimKey(primKey);
109            }
110    
111            public boolean isNew() {
112                    return _resource.isNew();
113            }
114    
115            public void setNew(boolean n) {
116                    _resource.setNew(n);
117            }
118    
119            public boolean isCachedModel() {
120                    return _resource.isCachedModel();
121            }
122    
123            public void setCachedModel(boolean cachedModel) {
124                    _resource.setCachedModel(cachedModel);
125            }
126    
127            public boolean isEscapedModel() {
128                    return _resource.isEscapedModel();
129            }
130    
131            public void setEscapedModel(boolean escapedModel) {
132                    _resource.setEscapedModel(escapedModel);
133            }
134    
135            public java.io.Serializable getPrimaryKeyObj() {
136                    return _resource.getPrimaryKeyObj();
137            }
138    
139            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
140                    _resource.setPrimaryKeyObj(primaryKeyObj);
141            }
142    
143            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
144                    return _resource.getExpandoBridge();
145            }
146    
147            public void setExpandoBridgeAttributes(
148                    com.liferay.portal.service.ServiceContext serviceContext) {
149                    _resource.setExpandoBridgeAttributes(serviceContext);
150            }
151    
152            @Override
153            public java.lang.Object clone() {
154                    return new ResourceWrapper((Resource)_resource.clone());
155            }
156    
157            public int compareTo(com.liferay.portal.model.Resource resource) {
158                    return _resource.compareTo(resource);
159            }
160    
161            @Override
162            public int hashCode() {
163                    return _resource.hashCode();
164            }
165    
166            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Resource> toCacheModel() {
167                    return _resource.toCacheModel();
168            }
169    
170            public com.liferay.portal.model.Resource toEscapedModel() {
171                    return new ResourceWrapper(_resource.toEscapedModel());
172            }
173    
174            @Override
175            public java.lang.String toString() {
176                    return _resource.toString();
177            }
178    
179            public java.lang.String toXmlString() {
180                    return _resource.toXmlString();
181            }
182    
183            public void persist()
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    _resource.persist();
186            }
187    
188            public long getCompanyId()
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    return _resource.getCompanyId();
192            }
193    
194            public java.lang.String getName()
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _resource.getName();
198            }
199    
200            public int getScope()
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _resource.getScope();
204            }
205    
206            public void setCompanyId(long companyId) {
207                    _resource.setCompanyId(companyId);
208            }
209    
210            public void setName(java.lang.String name) {
211                    _resource.setName(name);
212            }
213    
214            public void setScope(int scope) {
215                    _resource.setScope(scope);
216            }
217    
218            public Resource getWrappedResource() {
219                    return _resource;
220            }
221    
222            public void resetOriginalValues() {
223                    _resource.resetOriginalValues();
224            }
225    
226            private Resource _resource;
227    }