001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalArticleImagePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface JournalArticleImagePersistence {
030: public com.liferay.portlet.journal.model.JournalArticleImage create(
031: long articleImageId);
032:
033: public com.liferay.portlet.journal.model.JournalArticleImage remove(
034: long articleImageId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.journal.NoSuchArticleImageException;
037:
038: public com.liferay.portlet.journal.model.JournalArticleImage remove(
039: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.journal.model.JournalArticleImage update(
043: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.journal.model.JournalArticleImage update(
047: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
051: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
055: long articleImageId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.journal.NoSuchArticleImageException;
058:
059: public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
060: long articleImageId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.journal.NoSuchArticleImageException;
079:
080: public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portlet.journal.NoSuchArticleImageException;
085:
086: public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
087: long articleImageId, long groupId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portlet.journal.NoSuchArticleImageException;
091:
092: public java.util.List findByTempImage(boolean tempImage)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByTempImage(boolean tempImage, int begin,
096: int end) throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByTempImage(boolean tempImage, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
104: boolean tempImage,
105: 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 findByTempImage_Last(
110: boolean tempImage,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.journal.NoSuchArticleImageException;
114:
115: public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
116: long articleImageId, boolean tempImage,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.journal.NoSuchArticleImageException;
120:
121: public java.util.List findByG_A_V(long groupId,
122: java.lang.String articleId, double version)
123: throws com.liferay.portal.SystemException;
124:
125: public java.util.List findByG_A_V(long groupId,
126: java.lang.String articleId, double version, int begin,
127: int end) throws com.liferay.portal.SystemException;
128:
129: public java.util.List findByG_A_V(long groupId,
130: java.lang.String articleId, double version, int begin,
131: int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException;
134:
135: public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
136: long groupId, java.lang.String articleId, double version,
137: com.liferay.portal.kernel.util.OrderByComparator obc)
138: throws com.liferay.portal.SystemException,
139: com.liferay.portlet.journal.NoSuchArticleImageException;
140:
141: public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
142: long groupId, java.lang.String articleId, double version,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException,
145: com.liferay.portlet.journal.NoSuchArticleImageException;
146:
147: public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
148: long articleImageId, long groupId,
149: java.lang.String articleId, double version,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchArticleImageException;
153:
154: public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_L(
155: long groupId, java.lang.String articleId, double version,
156: java.lang.String elName, java.lang.String languageId)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portlet.journal.NoSuchArticleImageException;
159:
160: public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
161: long groupId, java.lang.String articleId, double version,
162: java.lang.String elName, java.lang.String languageId)
163: throws com.liferay.portal.SystemException;
164:
165: public java.util.List findWithDynamicQuery(
166: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
167: throws com.liferay.portal.SystemException;
168:
169: public java.util.List findWithDynamicQuery(
170: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
171: int begin, int end)
172: throws com.liferay.portal.SystemException;
173:
174: public java.util.List findAll()
175: throws com.liferay.portal.SystemException;
176:
177: public java.util.List findAll(int begin, int end)
178: throws com.liferay.portal.SystemException;
179:
180: public java.util.List findAll(int begin, int end,
181: com.liferay.portal.kernel.util.OrderByComparator obc)
182: throws com.liferay.portal.SystemException;
183:
184: public void removeByGroupId(long groupId)
185: throws com.liferay.portal.SystemException;
186:
187: public void removeByTempImage(boolean tempImage)
188: throws com.liferay.portal.SystemException;
189:
190: public void removeByG_A_V(long groupId, java.lang.String articleId,
191: double version) throws com.liferay.portal.SystemException;
192:
193: public void removeByG_A_V_E_L(long groupId,
194: java.lang.String articleId, double version,
195: java.lang.String elName, java.lang.String languageId)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.journal.NoSuchArticleImageException;
198:
199: public void removeAll() throws com.liferay.portal.SystemException;
200:
201: public int countByGroupId(long groupId)
202: throws com.liferay.portal.SystemException;
203:
204: public int countByTempImage(boolean tempImage)
205: throws com.liferay.portal.SystemException;
206:
207: public int countByG_A_V(long groupId, java.lang.String articleId,
208: double version) throws com.liferay.portal.SystemException;
209:
210: public int countByG_A_V_E_L(long groupId,
211: java.lang.String articleId, double version,
212: java.lang.String elName, java.lang.String languageId)
213: throws com.liferay.portal.SystemException;
214:
215: public int countAll() throws com.liferay.portal.SystemException;
216: }
|