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