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