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 ResourceCode}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ResourceCode
024     * @generated
025     */
026    public class ResourceCodeWrapper implements ResourceCode {
027            public ResourceCodeWrapper(ResourceCode resourceCode) {
028                    _resourceCode = resourceCode;
029            }
030    
031            /**
032            * Gets the primary key of this resource code.
033            *
034            * @return the primary key of this resource code
035            */
036            public long getPrimaryKey() {
037                    return _resourceCode.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this resource code
042            *
043            * @param pk the primary key of this resource code
044            */
045            public void setPrimaryKey(long pk) {
046                    _resourceCode.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the code id of this resource code.
051            *
052            * @return the code id of this resource code
053            */
054            public long getCodeId() {
055                    return _resourceCode.getCodeId();
056            }
057    
058            /**
059            * Sets the code id of this resource code.
060            *
061            * @param codeId the code id of this resource code
062            */
063            public void setCodeId(long codeId) {
064                    _resourceCode.setCodeId(codeId);
065            }
066    
067            /**
068            * Gets the company id of this resource code.
069            *
070            * @return the company id of this resource code
071            */
072            public long getCompanyId() {
073                    return _resourceCode.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this resource code.
078            *
079            * @param companyId the company id of this resource code
080            */
081            public void setCompanyId(long companyId) {
082                    _resourceCode.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the name of this resource code.
087            *
088            * @return the name of this resource code
089            */
090            public java.lang.String getName() {
091                    return _resourceCode.getName();
092            }
093    
094            /**
095            * Sets the name of this resource code.
096            *
097            * @param name the name of this resource code
098            */
099            public void setName(java.lang.String name) {
100                    _resourceCode.setName(name);
101            }
102    
103            /**
104            * Gets the scope of this resource code.
105            *
106            * @return the scope of this resource code
107            */
108            public int getScope() {
109                    return _resourceCode.getScope();
110            }
111    
112            /**
113            * Sets the scope of this resource code.
114            *
115            * @param scope the scope of this resource code
116            */
117            public void setScope(int scope) {
118                    _resourceCode.setScope(scope);
119            }
120    
121            public boolean isNew() {
122                    return _resourceCode.isNew();
123            }
124    
125            public void setNew(boolean n) {
126                    _resourceCode.setNew(n);
127            }
128    
129            public boolean isCachedModel() {
130                    return _resourceCode.isCachedModel();
131            }
132    
133            public void setCachedModel(boolean cachedModel) {
134                    _resourceCode.setCachedModel(cachedModel);
135            }
136    
137            public boolean isEscapedModel() {
138                    return _resourceCode.isEscapedModel();
139            }
140    
141            public void setEscapedModel(boolean escapedModel) {
142                    _resourceCode.setEscapedModel(escapedModel);
143            }
144    
145            public java.io.Serializable getPrimaryKeyObj() {
146                    return _resourceCode.getPrimaryKeyObj();
147            }
148    
149            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
150                    return _resourceCode.getExpandoBridge();
151            }
152    
153            public void setExpandoBridgeAttributes(
154                    com.liferay.portal.service.ServiceContext serviceContext) {
155                    _resourceCode.setExpandoBridgeAttributes(serviceContext);
156            }
157    
158            public java.lang.Object clone() {
159                    return _resourceCode.clone();
160            }
161    
162            public int compareTo(com.liferay.portal.model.ResourceCode resourceCode) {
163                    return _resourceCode.compareTo(resourceCode);
164            }
165    
166            public int hashCode() {
167                    return _resourceCode.hashCode();
168            }
169    
170            public com.liferay.portal.model.ResourceCode toEscapedModel() {
171                    return _resourceCode.toEscapedModel();
172            }
173    
174            public java.lang.String toString() {
175                    return _resourceCode.toString();
176            }
177    
178            public java.lang.String toXmlString() {
179                    return _resourceCode.toXmlString();
180            }
181    
182            public ResourceCode getWrappedResourceCode() {
183                    return _resourceCode;
184            }
185    
186            private ResourceCode _resourceCode;
187    }