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