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.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalArticleResource;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       JournalArticleResourcePersistenceImpl
024     * @see       JournalArticleResourceUtil
025     * @generated
026     */
027    public interface JournalArticleResourcePersistence extends BasePersistence<JournalArticleResource> {
028            public void cacheResult(
029                    com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> journalArticleResources);
033    
034            public com.liferay.portlet.journal.model.JournalArticleResource create(
035                    long resourcePrimKey);
036    
037            public com.liferay.portlet.journal.model.JournalArticleResource remove(
038                    long resourcePrimKey)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.journal.NoSuchArticleResourceException;
041    
042            public com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
043                    com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
048                    long resourcePrimKey)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.journal.NoSuchArticleResourceException;
051    
052            public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
053                    long resourcePrimKey)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
061                    long groupId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
065                    long groupId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.journal.NoSuchArticleResourceException;
074    
075            public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
076                    long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.journal.NoSuchArticleResourceException;
080    
081            public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
082                    long resourcePrimKey, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.journal.NoSuchArticleResourceException;
086    
087            public com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
088                    long groupId, java.lang.String articleId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.journal.NoSuchArticleResourceException;
091    
092            public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
093                    long groupId, java.lang.String articleId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
097                    long groupId, java.lang.String articleId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
104                    int start, int end)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
108                    int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public void removeByGroupId(long groupId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public void removeByG_A(long groupId, java.lang.String articleId)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.journal.NoSuchArticleResourceException;
118    
119            public void removeAll()
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public int countByGroupId(long groupId)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public int countByG_A(long groupId, java.lang.String articleId)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public int countAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    }