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