001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link RepositoryEntry}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       RepositoryEntry
027     * @generated
028     */
029    public class RepositoryEntryWrapper implements RepositoryEntry,
030            ModelWrapper<RepositoryEntry> {
031            public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) {
032                    _repositoryEntry = repositoryEntry;
033            }
034    
035            public Class<?> getModelClass() {
036                    return RepositoryEntry.class;
037            }
038    
039            public String getModelClassName() {
040                    return RepositoryEntry.class.getName();
041            }
042    
043            public Map<String, Object> getModelAttributes() {
044                    Map<String, Object> attributes = new HashMap<String, Object>();
045    
046                    attributes.put("uuid", getUuid());
047                    attributes.put("repositoryEntryId", getRepositoryEntryId());
048                    attributes.put("groupId", getGroupId());
049                    attributes.put("repositoryId", getRepositoryId());
050                    attributes.put("mappedId", getMappedId());
051    
052                    return attributes;
053            }
054    
055            public void setModelAttributes(Map<String, Object> attributes) {
056                    String uuid = (String)attributes.get("uuid");
057    
058                    if (uuid != null) {
059                            setUuid(uuid);
060                    }
061    
062                    Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
063    
064                    if (repositoryEntryId != null) {
065                            setRepositoryEntryId(repositoryEntryId);
066                    }
067    
068                    Long groupId = (Long)attributes.get("groupId");
069    
070                    if (groupId != null) {
071                            setGroupId(groupId);
072                    }
073    
074                    Long repositoryId = (Long)attributes.get("repositoryId");
075    
076                    if (repositoryId != null) {
077                            setRepositoryId(repositoryId);
078                    }
079    
080                    String mappedId = (String)attributes.get("mappedId");
081    
082                    if (mappedId != null) {
083                            setMappedId(mappedId);
084                    }
085            }
086    
087            /**
088            * Returns the primary key of this repository entry.
089            *
090            * @return the primary key of this repository entry
091            */
092            public long getPrimaryKey() {
093                    return _repositoryEntry.getPrimaryKey();
094            }
095    
096            /**
097            * Sets the primary key of this repository entry.
098            *
099            * @param primaryKey the primary key of this repository entry
100            */
101            public void setPrimaryKey(long primaryKey) {
102                    _repositoryEntry.setPrimaryKey(primaryKey);
103            }
104    
105            /**
106            * Returns the uuid of this repository entry.
107            *
108            * @return the uuid of this repository entry
109            */
110            public java.lang.String getUuid() {
111                    return _repositoryEntry.getUuid();
112            }
113    
114            /**
115            * Sets the uuid of this repository entry.
116            *
117            * @param uuid the uuid of this repository entry
118            */
119            public void setUuid(java.lang.String uuid) {
120                    _repositoryEntry.setUuid(uuid);
121            }
122    
123            /**
124            * Returns the repository entry ID of this repository entry.
125            *
126            * @return the repository entry ID of this repository entry
127            */
128            public long getRepositoryEntryId() {
129                    return _repositoryEntry.getRepositoryEntryId();
130            }
131    
132            /**
133            * Sets the repository entry ID of this repository entry.
134            *
135            * @param repositoryEntryId the repository entry ID of this repository entry
136            */
137            public void setRepositoryEntryId(long repositoryEntryId) {
138                    _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
139            }
140    
141            /**
142            * Returns the group ID of this repository entry.
143            *
144            * @return the group ID of this repository entry
145            */
146            public long getGroupId() {
147                    return _repositoryEntry.getGroupId();
148            }
149    
150            /**
151            * Sets the group ID of this repository entry.
152            *
153            * @param groupId the group ID of this repository entry
154            */
155            public void setGroupId(long groupId) {
156                    _repositoryEntry.setGroupId(groupId);
157            }
158    
159            /**
160            * Returns the repository ID of this repository entry.
161            *
162            * @return the repository ID of this repository entry
163            */
164            public long getRepositoryId() {
165                    return _repositoryEntry.getRepositoryId();
166            }
167    
168            /**
169            * Sets the repository ID of this repository entry.
170            *
171            * @param repositoryId the repository ID of this repository entry
172            */
173            public void setRepositoryId(long repositoryId) {
174                    _repositoryEntry.setRepositoryId(repositoryId);
175            }
176    
177            /**
178            * Returns the mapped ID of this repository entry.
179            *
180            * @return the mapped ID of this repository entry
181            */
182            public java.lang.String getMappedId() {
183                    return _repositoryEntry.getMappedId();
184            }
185    
186            /**
187            * Sets the mapped ID of this repository entry.
188            *
189            * @param mappedId the mapped ID of this repository entry
190            */
191            public void setMappedId(java.lang.String mappedId) {
192                    _repositoryEntry.setMappedId(mappedId);
193            }
194    
195            public boolean isNew() {
196                    return _repositoryEntry.isNew();
197            }
198    
199            public void setNew(boolean n) {
200                    _repositoryEntry.setNew(n);
201            }
202    
203            public boolean isCachedModel() {
204                    return _repositoryEntry.isCachedModel();
205            }
206    
207            public void setCachedModel(boolean cachedModel) {
208                    _repositoryEntry.setCachedModel(cachedModel);
209            }
210    
211            public boolean isEscapedModel() {
212                    return _repositoryEntry.isEscapedModel();
213            }
214    
215            public java.io.Serializable getPrimaryKeyObj() {
216                    return _repositoryEntry.getPrimaryKeyObj();
217            }
218    
219            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
220                    _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
221            }
222    
223            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
224                    return _repositoryEntry.getExpandoBridge();
225            }
226    
227            public void setExpandoBridgeAttributes(
228                    com.liferay.portal.service.ServiceContext serviceContext) {
229                    _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
230            }
231    
232            @Override
233            public java.lang.Object clone() {
234                    return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
235            }
236    
237            public int compareTo(
238                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
239                    return _repositoryEntry.compareTo(repositoryEntry);
240            }
241    
242            @Override
243            public int hashCode() {
244                    return _repositoryEntry.hashCode();
245            }
246    
247            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
248                    return _repositoryEntry.toCacheModel();
249            }
250    
251            public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
252                    return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
253            }
254    
255            @Override
256            public java.lang.String toString() {
257                    return _repositoryEntry.toString();
258            }
259    
260            public java.lang.String toXmlString() {
261                    return _repositoryEntry.toXmlString();
262            }
263    
264            public void persist()
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    _repositoryEntry.persist();
267            }
268    
269            /**
270             * @deprecated Renamed to {@link #getWrappedModel}
271             */
272            public RepositoryEntry getWrappedRepositoryEntry() {
273                    return _repositoryEntry;
274            }
275    
276            public RepositoryEntry getWrappedModel() {
277                    return _repositoryEntry;
278            }
279    
280            public void resetOriginalValues() {
281                    _repositoryEntry.resetOriginalValues();
282            }
283    
284            private RepositoryEntry _repositoryEntry;
285    }