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