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