001    /**
002     * Copyright (c) 2000-2010 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 PortletPreferences}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PortletPreferences
024     * @generated
025     */
026    public class PortletPreferencesWrapper implements PortletPreferences {
027            public PortletPreferencesWrapper(PortletPreferences portletPreferences) {
028                    _portletPreferences = portletPreferences;
029            }
030    
031            public long getPrimaryKey() {
032                    return _portletPreferences.getPrimaryKey();
033            }
034    
035            public void setPrimaryKey(long pk) {
036                    _portletPreferences.setPrimaryKey(pk);
037            }
038    
039            public long getPortletPreferencesId() {
040                    return _portletPreferences.getPortletPreferencesId();
041            }
042    
043            public void setPortletPreferencesId(long portletPreferencesId) {
044                    _portletPreferences.setPortletPreferencesId(portletPreferencesId);
045            }
046    
047            public long getOwnerId() {
048                    return _portletPreferences.getOwnerId();
049            }
050    
051            public void setOwnerId(long ownerId) {
052                    _portletPreferences.setOwnerId(ownerId);
053            }
054    
055            public int getOwnerType() {
056                    return _portletPreferences.getOwnerType();
057            }
058    
059            public void setOwnerType(int ownerType) {
060                    _portletPreferences.setOwnerType(ownerType);
061            }
062    
063            public long getPlid() {
064                    return _portletPreferences.getPlid();
065            }
066    
067            public void setPlid(long plid) {
068                    _portletPreferences.setPlid(plid);
069            }
070    
071            public java.lang.String getPortletId() {
072                    return _portletPreferences.getPortletId();
073            }
074    
075            public void setPortletId(java.lang.String portletId) {
076                    _portletPreferences.setPortletId(portletId);
077            }
078    
079            public java.lang.String getPreferences() {
080                    return _portletPreferences.getPreferences();
081            }
082    
083            public void setPreferences(java.lang.String preferences) {
084                    _portletPreferences.setPreferences(preferences);
085            }
086    
087            public com.liferay.portal.model.PortletPreferences toEscapedModel() {
088                    return _portletPreferences.toEscapedModel();
089            }
090    
091            public boolean isNew() {
092                    return _portletPreferences.isNew();
093            }
094    
095            public void setNew(boolean n) {
096                    _portletPreferences.setNew(n);
097            }
098    
099            public boolean isCachedModel() {
100                    return _portletPreferences.isCachedModel();
101            }
102    
103            public void setCachedModel(boolean cachedModel) {
104                    _portletPreferences.setCachedModel(cachedModel);
105            }
106    
107            public boolean isEscapedModel() {
108                    return _portletPreferences.isEscapedModel();
109            }
110    
111            public void setEscapedModel(boolean escapedModel) {
112                    _portletPreferences.setEscapedModel(escapedModel);
113            }
114    
115            public java.io.Serializable getPrimaryKeyObj() {
116                    return _portletPreferences.getPrimaryKeyObj();
117            }
118    
119            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
120                    return _portletPreferences.getExpandoBridge();
121            }
122    
123            public void setExpandoBridgeAttributes(
124                    com.liferay.portal.service.ServiceContext serviceContext) {
125                    _portletPreferences.setExpandoBridgeAttributes(serviceContext);
126            }
127    
128            public java.lang.Object clone() {
129                    return _portletPreferences.clone();
130            }
131    
132            public int compareTo(
133                    com.liferay.portal.model.PortletPreferences portletPreferences) {
134                    return _portletPreferences.compareTo(portletPreferences);
135            }
136    
137            public int hashCode() {
138                    return _portletPreferences.hashCode();
139            }
140    
141            public java.lang.String toString() {
142                    return _portletPreferences.toString();
143            }
144    
145            public java.lang.String toXmlString() {
146                    return _portletPreferences.toXmlString();
147            }
148    
149            public PortletPreferences getWrappedPortletPreferences() {
150                    return _portletPreferences;
151            }
152    
153            private PortletPreferences _portletPreferences;
154    }