001    /**
002     * Copyright (c) 2000-2010 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 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 long getPrimaryKey() {
032                    return _resource.getPrimaryKey();
033            }
034    
035            public void setPrimaryKey(long pk) {
036                    _resource.setPrimaryKey(pk);
037            }
038    
039            public long getResourceId() {
040                    return _resource.getResourceId();
041            }
042    
043            public void setResourceId(long resourceId) {
044                    _resource.setResourceId(resourceId);
045            }
046    
047            public long getCodeId() {
048                    return _resource.getCodeId();
049            }
050    
051            public void setCodeId(long codeId) {
052                    _resource.setCodeId(codeId);
053            }
054    
055            public java.lang.String getPrimKey() {
056                    return _resource.getPrimKey();
057            }
058    
059            public void setPrimKey(java.lang.String primKey) {
060                    _resource.setPrimKey(primKey);
061            }
062    
063            public com.liferay.portal.model.Resource toEscapedModel() {
064                    return _resource.toEscapedModel();
065            }
066    
067            public boolean isNew() {
068                    return _resource.isNew();
069            }
070    
071            public void setNew(boolean n) {
072                    _resource.setNew(n);
073            }
074    
075            public boolean isCachedModel() {
076                    return _resource.isCachedModel();
077            }
078    
079            public void setCachedModel(boolean cachedModel) {
080                    _resource.setCachedModel(cachedModel);
081            }
082    
083            public boolean isEscapedModel() {
084                    return _resource.isEscapedModel();
085            }
086    
087            public void setEscapedModel(boolean escapedModel) {
088                    _resource.setEscapedModel(escapedModel);
089            }
090    
091            public java.io.Serializable getPrimaryKeyObj() {
092                    return _resource.getPrimaryKeyObj();
093            }
094    
095            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
096                    return _resource.getExpandoBridge();
097            }
098    
099            public void setExpandoBridgeAttributes(
100                    com.liferay.portal.service.ServiceContext serviceContext) {
101                    _resource.setExpandoBridgeAttributes(serviceContext);
102            }
103    
104            public java.lang.Object clone() {
105                    return _resource.clone();
106            }
107    
108            public int compareTo(com.liferay.portal.model.Resource resource) {
109                    return _resource.compareTo(resource);
110            }
111    
112            public int hashCode() {
113                    return _resource.hashCode();
114            }
115    
116            public java.lang.String toString() {
117                    return _resource.toString();
118            }
119    
120            public java.lang.String toXmlString() {
121                    return _resource.toXmlString();
122            }
123    
124            public long getCompanyId()
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    return _resource.getCompanyId();
128            }
129    
130            public java.lang.String getName()
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return _resource.getName();
134            }
135    
136            public int getScope()
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return _resource.getScope();
140            }
141    
142            public void setCompanyId(long companyId) {
143                    _resource.setCompanyId(companyId);
144            }
145    
146            public void setName(java.lang.String name) {
147                    _resource.setName(name);
148            }
149    
150            public void setScope(int scope) {
151                    _resource.setScope(scope);
152            }
153    
154            public Resource getWrappedResource() {
155                    return _resource;
156            }
157    
158            private Resource _resource;
159    }