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.portlet.journal.model;
016    
017    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.model.BaseModel;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    /**
026     * The base model interface for the JournalArticleResource service. Represents a row in the "JournalArticleResource" database table, with each column mapped to a property of this class.
027     *
028     * <p>
029     * This interface and its corresponding implementation {@link com.liferay.portlet.journal.model.impl.JournalArticleResourceModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.journal.model.impl.JournalArticleResourceImpl}.
030     * </p>
031     *
032     * <p>
033     * Never modify or reference this interface directly. All methods that expect a journal article resource model instance should use the {@link JournalArticleResource} interface instead.
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see JournalArticleResource
038     * @see com.liferay.portlet.journal.model.impl.JournalArticleResourceImpl
039     * @see com.liferay.portlet.journal.model.impl.JournalArticleResourceModelImpl
040     * @generated
041     */
042    public interface JournalArticleResourceModel extends BaseModel<JournalArticleResource> {
043            /**
044             * Gets the primary key of this journal article resource.
045             *
046             * @return the primary key of this journal article resource
047             */
048            public long getPrimaryKey();
049    
050            /**
051             * Sets the primary key of this journal article resource
052             *
053             * @param pk the primary key of this journal article resource
054             */
055            public void setPrimaryKey(long pk);
056    
057            /**
058             * Gets the resource prim key of this journal article resource.
059             *
060             * @return the resource prim key of this journal article resource
061             */
062            public long getResourcePrimKey();
063    
064            /**
065             * Sets the resource prim key of this journal article resource.
066             *
067             * @param resourcePrimKey the resource prim key of this journal article resource
068             */
069            public void setResourcePrimKey(long resourcePrimKey);
070    
071            /**
072             * Gets the group id of this journal article resource.
073             *
074             * @return the group id of this journal article resource
075             */
076            public long getGroupId();
077    
078            /**
079             * Sets the group id of this journal article resource.
080             *
081             * @param groupId the group id of this journal article resource
082             */
083            public void setGroupId(long groupId);
084    
085            /**
086             * Gets the article id of this journal article resource.
087             *
088             * @return the article id of this journal article resource
089             */
090            @AutoEscape
091            public String getArticleId();
092    
093            /**
094             * Sets the article id of this journal article resource.
095             *
096             * @param articleId the article id of this journal article resource
097             */
098            public void setArticleId(String articleId);
099    
100            /**
101             * Gets a copy of this journal article resource as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
102             *
103             * @return the escaped model instance
104             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
105             */
106            public JournalArticleResource toEscapedModel();
107    
108            public boolean isNew();
109    
110            public void setNew(boolean n);
111    
112            public boolean isCachedModel();
113    
114            public void setCachedModel(boolean cachedModel);
115    
116            public boolean isEscapedModel();
117    
118            public void setEscapedModel(boolean escapedModel);
119    
120            public Serializable getPrimaryKeyObj();
121    
122            public ExpandoBridge getExpandoBridge();
123    
124            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
125    
126            public Object clone();
127    
128            public int compareTo(JournalArticleResource journalArticleResource);
129    
130            public int hashCode();
131    
132            public String toString();
133    
134            public String toXmlString();
135    }