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    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.service.ServiceContext;
019    
020    import com.liferay.portlet.expando.model.ExpandoBridge;
021    
022    import java.io.Serializable;
023    
024    /**
025     * <p>
026     * This interface is a model that represents the PortletPreferences table in the
027     * database.
028     * </p>
029     *
030     * @author    Brian Wing Shun Chan
031     * @see       PortletPreferences
032     * @see       com.liferay.portal.model.impl.PortletPreferencesImpl
033     * @see       com.liferay.portal.model.impl.PortletPreferencesModelImpl
034     * @generated
035     */
036    public interface PortletPreferencesModel extends BaseModel<PortletPreferences> {
037            public long getPrimaryKey();
038    
039            public void setPrimaryKey(long pk);
040    
041            public long getPortletPreferencesId();
042    
043            public void setPortletPreferencesId(long portletPreferencesId);
044    
045            public long getOwnerId();
046    
047            public void setOwnerId(long ownerId);
048    
049            public int getOwnerType();
050    
051            public void setOwnerType(int ownerType);
052    
053            public long getPlid();
054    
055            public void setPlid(long plid);
056    
057            @AutoEscape
058            public String getPortletId();
059    
060            public void setPortletId(String portletId);
061    
062            @AutoEscape
063            public String getPreferences();
064    
065            public void setPreferences(String preferences);
066    
067            public PortletPreferences toEscapedModel();
068    
069            public boolean isNew();
070    
071            public void setNew(boolean n);
072    
073            public boolean isCachedModel();
074    
075            public void setCachedModel(boolean cachedModel);
076    
077            public boolean isEscapedModel();
078    
079            public void setEscapedModel(boolean escapedModel);
080    
081            public Serializable getPrimaryKeyObj();
082    
083            public ExpandoBridge getExpandoBridge();
084    
085            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
086    
087            public Object clone();
088    
089            public int compareTo(PortletPreferences portletPreferences);
090    
091            public int hashCode();
092    
093            public String toString();
094    
095            public String toXmlString();
096    }