1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalArticleResource;
20  
21  /**
22   * <a href="JournalArticleResourcePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       JournalArticleResourcePersistenceImpl
31   * @see       JournalArticleResourceUtil
32   * @generated
33   */
34  public interface JournalArticleResourcePersistence extends BasePersistence<JournalArticleResource> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> journalArticleResources);
40  
41      public com.liferay.portlet.journal.model.JournalArticleResource create(
42          long resourcePrimKey);
43  
44      public com.liferay.portlet.journal.model.JournalArticleResource remove(
45          long resourcePrimKey)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.journal.NoSuchArticleResourceException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.journal.model.JournalArticleResource update(
53          com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
57          com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
61          long resourcePrimKey)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.journal.NoSuchArticleResourceException;
64  
65      public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
66          long resourcePrimKey) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
72          long groupId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
76          long groupId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
81          long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.journal.NoSuchArticleResourceException;
85  
86      public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
87          long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.journal.NoSuchArticleResourceException;
91  
92      public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
93          long resourcePrimKey, long groupId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.journal.NoSuchArticleResourceException;
97  
98      public com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
99          long groupId, java.lang.String articleId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.journal.NoSuchArticleResourceException;
102 
103     public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
104         long groupId, java.lang.String articleId)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
108         long groupId, java.lang.String articleId, boolean retrieveFromCache)
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
115         int start, int end) throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
118         int start, int end,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.SystemException;
121 
122     public void removeByGroupId(long groupId)
123         throws com.liferay.portal.SystemException;
124 
125     public void removeByG_A(long groupId, java.lang.String articleId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.journal.NoSuchArticleResourceException;
128 
129     public void removeAll() throws com.liferay.portal.SystemException;
130 
131     public int countByGroupId(long groupId)
132         throws com.liferay.portal.SystemException;
133 
134     public int countByG_A(long groupId, java.lang.String articleId)
135         throws com.liferay.portal.SystemException;
136 
137     public int countAll() throws com.liferay.portal.SystemException;
138 }