1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  import com.liferay.portal.service.persistence.BasePersistence;
23  
24  /**
25   * <a href="JournalArticleImagePersistence.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   *
29   */
30  public interface JournalArticleImagePersistence extends BasePersistence {
31      public void cacheResult(
32          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage);
33  
34      public void cacheResult(
35          java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages);
36  
37      public void clearCache();
38  
39      public com.liferay.portlet.journal.model.JournalArticleImage create(
40          long articleImageId);
41  
42      public com.liferay.portlet.journal.model.JournalArticleImage remove(
43          long articleImageId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.journal.NoSuchArticleImageException;
46  
47      public com.liferay.portlet.journal.model.JournalArticleImage remove(
48          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
49          throws com.liferay.portal.SystemException;
50  
51      /**
52       * @deprecated Use <code>update(JournalArticleImage journalArticleImage, boolean merge)</code>.
53       */
54      public com.liferay.portlet.journal.model.JournalArticleImage update(
55          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * Add, update, or merge, the entity. This method also calls the model
60       * listeners to trigger the proper events associated with adding, deleting,
61       * or updating an entity.
62       *
63       * @param        journalArticleImage the entity to add, update, or merge
64       * @param        merge boolean value for whether to merge the entity. The
65       *                default value is false. Setting merge to true is more
66       *                expensive and should only be true when journalArticleImage is
67       *                transient. See LEP-5473 for a detailed discussion of this
68       *                method.
69       * @return        true if the portlet can be displayed via Ajax
70       */
71      public com.liferay.portlet.journal.model.JournalArticleImage update(
72          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
73          boolean merge) throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
76          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
77          boolean merge) throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
80          long articleImageId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchArticleImageException;
83  
84      public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
85          long articleImageId) throws com.liferay.portal.SystemException;
86  
87      public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
88          long groupId) throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
91          long groupId, int start, int end)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
95          long groupId, int start, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
100         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.journal.NoSuchArticleImageException;
103 
104     public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
105         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.journal.NoSuchArticleImageException;
108 
109     public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
110         long articleImageId, long groupId,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.journal.NoSuchArticleImageException;
114 
115     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
116         boolean tempImage) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
119         boolean tempImage, int start, int end)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
123         boolean tempImage, int start, int end,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
128         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.journal.NoSuchArticleImageException;
131 
132     public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
133         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.journal.NoSuchArticleImageException;
136 
137     public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
138         long articleImageId, boolean tempImage,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.journal.NoSuchArticleImageException;
142 
143     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
144         long groupId, java.lang.String articleId, double version)
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
148         long groupId, java.lang.String articleId, double version, int start,
149         int end) throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
152         long groupId, java.lang.String articleId, double version, int start,
153         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException;
155 
156     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
157         long groupId, java.lang.String articleId, double version,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.journal.NoSuchArticleImageException;
161 
162     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
163         long groupId, java.lang.String articleId, double version,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.journal.NoSuchArticleImageException;
167 
168     public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
169         long articleImageId, long groupId, java.lang.String articleId,
170         double version, com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchArticleImageException;
173 
174     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_L(
175         long groupId, java.lang.String articleId, double version,
176         java.lang.String elName, java.lang.String languageId)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.journal.NoSuchArticleImageException;
179 
180     public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
181         long groupId, java.lang.String articleId, double version,
182         java.lang.String elName, java.lang.String languageId)
183         throws com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
186         long groupId, java.lang.String articleId, double version,
187         java.lang.String elName, java.lang.String languageId,
188         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
189 
190     public java.util.List<Object> findWithDynamicQuery(
191         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
192         throws com.liferay.portal.SystemException;
193 
194     public java.util.List<Object> findWithDynamicQuery(
195         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
196         int end) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
199         throws com.liferay.portal.SystemException;
200 
201     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
202         int start, int end) throws com.liferay.portal.SystemException;
203 
204     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
205         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException;
207 
208     public void removeByGroupId(long groupId)
209         throws com.liferay.portal.SystemException;
210 
211     public void removeByTempImage(boolean tempImage)
212         throws com.liferay.portal.SystemException;
213 
214     public void removeByG_A_V(long groupId, java.lang.String articleId,
215         double version) throws com.liferay.portal.SystemException;
216 
217     public void removeByG_A_V_E_L(long groupId, java.lang.String articleId,
218         double version, java.lang.String elName, java.lang.String languageId)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.journal.NoSuchArticleImageException;
221 
222     public void removeAll() throws com.liferay.portal.SystemException;
223 
224     public int countByGroupId(long groupId)
225         throws com.liferay.portal.SystemException;
226 
227     public int countByTempImage(boolean tempImage)
228         throws com.liferay.portal.SystemException;
229 
230     public int countByG_A_V(long groupId, java.lang.String articleId,
231         double version) throws com.liferay.portal.SystemException;
232 
233     public int countByG_A_V_E_L(long groupId, java.lang.String articleId,
234         double version, java.lang.String elName, java.lang.String languageId)
235         throws com.liferay.portal.SystemException;
236 
237     public int countAll() throws com.liferay.portal.SystemException;
238 }