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="JournalContentSearchPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface JournalContentSearchPersistence {
030: public com.liferay.portlet.journal.model.JournalContentSearch create(
031: long contentSearchId);
032:
033: public com.liferay.portlet.journal.model.JournalContentSearch remove(
034: long contentSearchId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.journal.NoSuchContentSearchException;
037:
038: public com.liferay.portlet.journal.model.JournalContentSearch remove(
039: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.journal.model.JournalContentSearch update(
043: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.journal.model.JournalContentSearch update(
047: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
051: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
055: long contentSearchId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.journal.NoSuchContentSearchException;
058:
059: public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
060: long contentSearchId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByG_P(long groupId, boolean privateLayout)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByG_P(long groupId,
067: boolean privateLayout, int begin, int end)
068: throws com.liferay.portal.SystemException;
069:
070: public java.util.List findByG_P(long groupId,
071: boolean privateLayout, int begin, int end,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException;
074:
075: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
076: long groupId, boolean privateLayout,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portlet.journal.NoSuchContentSearchException;
080:
081: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
082: long groupId, boolean privateLayout,
083: com.liferay.portal.kernel.util.OrderByComparator obc)
084: throws com.liferay.portal.SystemException,
085: com.liferay.portlet.journal.NoSuchContentSearchException;
086:
087: public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
088: long contentSearchId, long groupId, boolean privateLayout,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portlet.journal.NoSuchContentSearchException;
092:
093: public java.util.List findByG_A(long groupId,
094: java.lang.String articleId)
095: throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByG_A(long groupId,
098: java.lang.String articleId, int begin, int end)
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findByG_A(long groupId,
102: java.lang.String articleId, int begin, int end,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException;
105:
106: public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
107: long groupId, java.lang.String articleId,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portlet.journal.NoSuchContentSearchException;
111:
112: public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
113: long groupId, java.lang.String articleId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.journal.NoSuchContentSearchException;
117:
118: public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
119: long contentSearchId, long groupId,
120: java.lang.String articleId,
121: com.liferay.portal.kernel.util.OrderByComparator obc)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portlet.journal.NoSuchContentSearchException;
124:
125: public java.util.List findByG_P_L(long groupId,
126: boolean privateLayout, long layoutId)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findByG_P_L(long groupId,
130: boolean privateLayout, long layoutId, int begin, int end)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findByG_P_L(long groupId,
134: boolean privateLayout, long layoutId, int begin, int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException;
137:
138: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
139: long groupId, boolean privateLayout, long layoutId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.journal.NoSuchContentSearchException;
143:
144: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
145: long groupId, boolean privateLayout, long layoutId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portlet.journal.NoSuchContentSearchException;
149:
150: public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
151: long contentSearchId, long groupId, boolean privateLayout,
152: long layoutId,
153: com.liferay.portal.kernel.util.OrderByComparator obc)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portlet.journal.NoSuchContentSearchException;
156:
157: public java.util.List findByG_P_A(long groupId,
158: boolean privateLayout, java.lang.String articleId)
159: throws com.liferay.portal.SystemException;
160:
161: public java.util.List findByG_P_A(long groupId,
162: boolean privateLayout, java.lang.String articleId,
163: int begin, int end)
164: throws com.liferay.portal.SystemException;
165:
166: public java.util.List findByG_P_A(long groupId,
167: boolean privateLayout, java.lang.String articleId,
168: int begin, int end,
169: com.liferay.portal.kernel.util.OrderByComparator obc)
170: throws com.liferay.portal.SystemException;
171:
172: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
173: long groupId, boolean privateLayout,
174: java.lang.String articleId,
175: com.liferay.portal.kernel.util.OrderByComparator obc)
176: throws com.liferay.portal.SystemException,
177: com.liferay.portlet.journal.NoSuchContentSearchException;
178:
179: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
180: long groupId, boolean privateLayout,
181: java.lang.String articleId,
182: com.liferay.portal.kernel.util.OrderByComparator obc)
183: throws com.liferay.portal.SystemException,
184: com.liferay.portlet.journal.NoSuchContentSearchException;
185:
186: public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
187: long contentSearchId, long groupId, boolean privateLayout,
188: java.lang.String articleId,
189: com.liferay.portal.kernel.util.OrderByComparator obc)
190: throws com.liferay.portal.SystemException,
191: com.liferay.portlet.journal.NoSuchContentSearchException;
192:
193: public java.util.List findByG_P_L_P(long groupId,
194: boolean privateLayout, long layoutId,
195: java.lang.String portletId)
196: throws com.liferay.portal.SystemException;
197:
198: public java.util.List findByG_P_L_P(long groupId,
199: boolean privateLayout, long layoutId,
200: java.lang.String portletId, int begin, int end)
201: throws com.liferay.portal.SystemException;
202:
203: public java.util.List findByG_P_L_P(long groupId,
204: boolean privateLayout, long layoutId,
205: java.lang.String portletId, int begin, int end,
206: com.liferay.portal.kernel.util.OrderByComparator obc)
207: throws com.liferay.portal.SystemException;
208:
209: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
210: long groupId, boolean privateLayout, long layoutId,
211: java.lang.String portletId,
212: com.liferay.portal.kernel.util.OrderByComparator obc)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portlet.journal.NoSuchContentSearchException;
215:
216: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
217: long groupId, boolean privateLayout, long layoutId,
218: java.lang.String portletId,
219: com.liferay.portal.kernel.util.OrderByComparator obc)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portlet.journal.NoSuchContentSearchException;
222:
223: public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
224: long contentSearchId, long groupId, boolean privateLayout,
225: long layoutId, java.lang.String portletId,
226: com.liferay.portal.kernel.util.OrderByComparator obc)
227: throws com.liferay.portal.SystemException,
228: com.liferay.portlet.journal.NoSuchContentSearchException;
229:
230: public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
231: long groupId, boolean privateLayout, long layoutId,
232: java.lang.String portletId, java.lang.String articleId)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portlet.journal.NoSuchContentSearchException;
235:
236: public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
237: long groupId, boolean privateLayout, long layoutId,
238: java.lang.String portletId, java.lang.String articleId)
239: throws com.liferay.portal.SystemException;
240:
241: public java.util.List findWithDynamicQuery(
242: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
243: throws com.liferay.portal.SystemException;
244:
245: public java.util.List findWithDynamicQuery(
246: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
247: int begin, int end)
248: throws com.liferay.portal.SystemException;
249:
250: public java.util.List findAll()
251: throws com.liferay.portal.SystemException;
252:
253: public java.util.List findAll(int begin, int end)
254: throws com.liferay.portal.SystemException;
255:
256: public java.util.List findAll(int begin, int end,
257: com.liferay.portal.kernel.util.OrderByComparator obc)
258: throws com.liferay.portal.SystemException;
259:
260: public void removeByG_P(long groupId, boolean privateLayout)
261: throws com.liferay.portal.SystemException;
262:
263: public void removeByG_A(long groupId, java.lang.String articleId)
264: throws com.liferay.portal.SystemException;
265:
266: public void removeByG_P_L(long groupId, boolean privateLayout,
267: long layoutId) throws com.liferay.portal.SystemException;
268:
269: public void removeByG_P_A(long groupId, boolean privateLayout,
270: java.lang.String articleId)
271: throws com.liferay.portal.SystemException;
272:
273: public void removeByG_P_L_P(long groupId, boolean privateLayout,
274: long layoutId, java.lang.String portletId)
275: throws com.liferay.portal.SystemException;
276:
277: public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
278: long layoutId, java.lang.String portletId,
279: java.lang.String articleId)
280: throws com.liferay.portal.SystemException,
281: com.liferay.portlet.journal.NoSuchContentSearchException;
282:
283: public void removeAll() throws com.liferay.portal.SystemException;
284:
285: public int countByG_P(long groupId, boolean privateLayout)
286: throws com.liferay.portal.SystemException;
287:
288: public int countByG_A(long groupId, java.lang.String articleId)
289: throws com.liferay.portal.SystemException;
290:
291: public int countByG_P_L(long groupId, boolean privateLayout,
292: long layoutId) throws com.liferay.portal.SystemException;
293:
294: public int countByG_P_A(long groupId, boolean privateLayout,
295: java.lang.String articleId)
296: throws com.liferay.portal.SystemException;
297:
298: public int countByG_P_L_P(long groupId, boolean privateLayout,
299: long layoutId, java.lang.String portletId)
300: throws com.liferay.portal.SystemException;
301:
302: public int countByG_P_L_P_A(long groupId, boolean privateLayout,
303: long layoutId, java.lang.String portletId,
304: java.lang.String articleId)
305: throws com.liferay.portal.SystemException;
306:
307: public int countAll() throws com.liferay.portal.SystemException;
308: }
|