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