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.messageboards.service.persistence;
022:
023: /**
024: * <a href="MBMessagePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface MBMessagePersistence {
030: public com.liferay.portlet.messageboards.model.MBMessage create(
031: long messageId);
032:
033: public com.liferay.portlet.messageboards.model.MBMessage remove(
034: long messageId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.messageboards.NoSuchMessageException;
036:
037: public com.liferay.portlet.messageboards.model.MBMessage remove(
038: com.liferay.portlet.messageboards.model.MBMessage mbMessage)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.messageboards.model.MBMessage update(
042: com.liferay.portlet.messageboards.model.MBMessage mbMessage)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.messageboards.model.MBMessage update(
046: com.liferay.portlet.messageboards.model.MBMessage mbMessage,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
050: com.liferay.portlet.messageboards.model.MBMessage mbMessage,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
054: long messageId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.messageboards.NoSuchMessageException;
056:
057: public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
058: long messageId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByUuid(java.lang.String uuid)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUuid(java.lang.String uuid, int begin,
064: int end) throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUuid(java.lang.String uuid, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
072: java.lang.String uuid,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.messageboards.NoSuchMessageException;
076:
077: public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
078: java.lang.String uuid,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.messageboards.NoSuchMessageException;
082:
083: public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
084: long messageId, java.lang.String uuid,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.messageboards.NoSuchMessageException;
088:
089: public java.util.List findByCompanyId(long companyId)
090: throws com.liferay.portal.SystemException;
091:
092: public java.util.List findByCompanyId(long companyId, int begin,
093: int end) throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByCompanyId(long companyId, int begin,
096: int end,
097: com.liferay.portal.kernel.util.OrderByComparator obc)
098: throws com.liferay.portal.SystemException;
099:
100: public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
101: long companyId,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.messageboards.NoSuchMessageException;
105:
106: public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
107: long companyId,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portlet.messageboards.NoSuchMessageException;
111:
112: public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
113: long messageId, long companyId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.messageboards.NoSuchMessageException;
117:
118: public java.util.List findByCategoryId(long categoryId)
119: throws com.liferay.portal.SystemException;
120:
121: public java.util.List findByCategoryId(long categoryId, int begin,
122: int end) throws com.liferay.portal.SystemException;
123:
124: public java.util.List findByCategoryId(long categoryId, int begin,
125: int end,
126: com.liferay.portal.kernel.util.OrderByComparator obc)
127: throws com.liferay.portal.SystemException;
128:
129: public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
130: long categoryId,
131: com.liferay.portal.kernel.util.OrderByComparator obc)
132: throws com.liferay.portal.SystemException,
133: com.liferay.portlet.messageboards.NoSuchMessageException;
134:
135: public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
136: long categoryId,
137: com.liferay.portal.kernel.util.OrderByComparator obc)
138: throws com.liferay.portal.SystemException,
139: com.liferay.portlet.messageboards.NoSuchMessageException;
140:
141: public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
142: long messageId, long categoryId,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException,
145: com.liferay.portlet.messageboards.NoSuchMessageException;
146:
147: public java.util.List findByThreadId(long threadId)
148: throws com.liferay.portal.SystemException;
149:
150: public java.util.List findByThreadId(long threadId, int begin,
151: int end) throws com.liferay.portal.SystemException;
152:
153: public java.util.List findByThreadId(long threadId, int begin,
154: int end,
155: com.liferay.portal.kernel.util.OrderByComparator obc)
156: throws com.liferay.portal.SystemException;
157:
158: public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
159: long threadId,
160: com.liferay.portal.kernel.util.OrderByComparator obc)
161: throws com.liferay.portal.SystemException,
162: com.liferay.portlet.messageboards.NoSuchMessageException;
163:
164: public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
165: long threadId,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.messageboards.NoSuchMessageException;
169:
170: public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
171: long messageId, long threadId,
172: com.liferay.portal.kernel.util.OrderByComparator obc)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portlet.messageboards.NoSuchMessageException;
175:
176: public java.util.List findByC_T(long categoryId, long threadId)
177: throws com.liferay.portal.SystemException;
178:
179: public java.util.List findByC_T(long categoryId, long threadId,
180: int begin, int end)
181: throws com.liferay.portal.SystemException;
182:
183: public java.util.List findByC_T(long categoryId, long threadId,
184: int begin, int end,
185: com.liferay.portal.kernel.util.OrderByComparator obc)
186: throws com.liferay.portal.SystemException;
187:
188: public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
189: long categoryId, long threadId,
190: com.liferay.portal.kernel.util.OrderByComparator obc)
191: throws com.liferay.portal.SystemException,
192: com.liferay.portlet.messageboards.NoSuchMessageException;
193:
194: public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
195: long categoryId, long threadId,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portlet.messageboards.NoSuchMessageException;
199:
200: public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
201: long messageId, long categoryId, long threadId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.messageboards.NoSuchMessageException;
205:
206: public java.util.List findByT_P(long threadId, long parentMessageId)
207: throws com.liferay.portal.SystemException;
208:
209: public java.util.List findByT_P(long threadId,
210: long parentMessageId, int begin, int end)
211: throws com.liferay.portal.SystemException;
212:
213: public java.util.List findByT_P(long threadId,
214: long parentMessageId, int begin, int end,
215: com.liferay.portal.kernel.util.OrderByComparator obc)
216: throws com.liferay.portal.SystemException;
217:
218: public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
219: long threadId, long parentMessageId,
220: com.liferay.portal.kernel.util.OrderByComparator obc)
221: throws com.liferay.portal.SystemException,
222: com.liferay.portlet.messageboards.NoSuchMessageException;
223:
224: public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
225: long threadId, long parentMessageId,
226: com.liferay.portal.kernel.util.OrderByComparator obc)
227: throws com.liferay.portal.SystemException,
228: com.liferay.portlet.messageboards.NoSuchMessageException;
229:
230: public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
231: long messageId, long threadId, long parentMessageId,
232: com.liferay.portal.kernel.util.OrderByComparator obc)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portlet.messageboards.NoSuchMessageException;
235:
236: public java.util.List findWithDynamicQuery(
237: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
238: throws com.liferay.portal.SystemException;
239:
240: public java.util.List findWithDynamicQuery(
241: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
242: int begin, int end)
243: throws com.liferay.portal.SystemException;
244:
245: public java.util.List findAll()
246: throws com.liferay.portal.SystemException;
247:
248: public java.util.List findAll(int begin, int end)
249: throws com.liferay.portal.SystemException;
250:
251: public java.util.List findAll(int begin, int end,
252: com.liferay.portal.kernel.util.OrderByComparator obc)
253: throws com.liferay.portal.SystemException;
254:
255: public void removeByUuid(java.lang.String uuid)
256: throws com.liferay.portal.SystemException;
257:
258: public void removeByCompanyId(long companyId)
259: throws com.liferay.portal.SystemException;
260:
261: public void removeByCategoryId(long categoryId)
262: throws com.liferay.portal.SystemException;
263:
264: public void removeByThreadId(long threadId)
265: throws com.liferay.portal.SystemException;
266:
267: public void removeByC_T(long categoryId, long threadId)
268: throws com.liferay.portal.SystemException;
269:
270: public void removeByT_P(long threadId, long parentMessageId)
271: throws com.liferay.portal.SystemException;
272:
273: public void removeAll() throws com.liferay.portal.SystemException;
274:
275: public int countByUuid(java.lang.String uuid)
276: throws com.liferay.portal.SystemException;
277:
278: public int countByCompanyId(long companyId)
279: throws com.liferay.portal.SystemException;
280:
281: public int countByCategoryId(long categoryId)
282: throws com.liferay.portal.SystemException;
283:
284: public int countByThreadId(long threadId)
285: throws com.liferay.portal.SystemException;
286:
287: public int countByC_T(long categoryId, long threadId)
288: throws com.liferay.portal.SystemException;
289:
290: public int countByT_P(long threadId, long parentMessageId)
291: throws com.liferay.portal.SystemException;
292:
293: public int countAll() throws com.liferay.portal.SystemException;
294: }
|