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.JournalArticleImage;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       JournalArticleImagePersistenceImpl
024     * @see       JournalArticleImageUtil
025     * @generated
026     */
027    public interface JournalArticleImagePersistence extends BasePersistence<JournalArticleImage> {
028            public void cacheResult(
029                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages);
033    
034            public com.liferay.portlet.journal.model.JournalArticleImage create(
035                    long articleImageId);
036    
037            public com.liferay.portlet.journal.model.JournalArticleImage remove(
038                    long articleImageId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.journal.NoSuchArticleImageException;
041    
042            public com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
043                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
048                    long articleImageId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.journal.NoSuchArticleImageException;
051    
052            public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
053                    long articleImageId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> 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.JournalArticleImage> 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.JournalArticleImage 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.NoSuchArticleImageException;
074    
075            public com.liferay.portlet.journal.model.JournalArticleImage 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.NoSuchArticleImageException;
080    
081            public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
082                    long articleImageId, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.journal.NoSuchArticleImageException;
086    
087            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
088                    boolean tempImage)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
092                    boolean tempImage, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
096                    boolean tempImage, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
101                    boolean tempImage,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.journal.NoSuchArticleImageException;
105    
106            public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
107                    boolean tempImage,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.journal.NoSuchArticleImageException;
111    
112            public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
113                    long articleImageId, boolean tempImage,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.journal.NoSuchArticleImageException;
117    
118            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
119                    long groupId, java.lang.String articleId, double version)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
123                    long groupId, java.lang.String articleId, double version, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
127                    long groupId, java.lang.String articleId, double version, int start,
128                    int end,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
133                    long groupId, java.lang.String articleId, double version,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException,
136                            com.liferay.portlet.journal.NoSuchArticleImageException;
137    
138            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
139                    long groupId, java.lang.String articleId, double version,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException,
142                            com.liferay.portlet.journal.NoSuchArticleImageException;
143    
144            public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
145                    long articleImageId, long groupId, java.lang.String articleId,
146                    double version,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException,
149                            com.liferay.portlet.journal.NoSuchArticleImageException;
150    
151            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
152                    long groupId, java.lang.String articleId, double version,
153                    java.lang.String elInstanceId, java.lang.String elName,
154                    java.lang.String languageId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.journal.NoSuchArticleImageException;
157    
158            public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
159                    long groupId, java.lang.String articleId, double version,
160                    java.lang.String elInstanceId, java.lang.String elName,
161                    java.lang.String languageId)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
165                    long groupId, java.lang.String articleId, double version,
166                    java.lang.String elInstanceId, java.lang.String elName,
167                    java.lang.String languageId, boolean retrieveFromCache)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
174                    int start, int end)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
178                    int start, int end,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public void removeByGroupId(long groupId)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public void removeByTempImage(boolean tempImage)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            public void removeByG_A_V(long groupId, java.lang.String articleId,
189                    double version)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            public void removeByG_A_V_E_E_L(long groupId, java.lang.String articleId,
193                    double version, java.lang.String elInstanceId, java.lang.String elName,
194                    java.lang.String languageId)
195                    throws com.liferay.portal.kernel.exception.SystemException,
196                            com.liferay.portlet.journal.NoSuchArticleImageException;
197    
198            public void removeAll()
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public int countByGroupId(long groupId)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            public int countByTempImage(boolean tempImage)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            public int countByG_A_V(long groupId, java.lang.String articleId,
208                    double version)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            public int countByG_A_V_E_E_L(long groupId, java.lang.String articleId,
212                    double version, java.lang.String elInstanceId, java.lang.String elName,
213                    java.lang.String languageId)
214                    throws com.liferay.portal.kernel.exception.SystemException;
215    
216            public int countAll()
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    }