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