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