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.blogs.service.persistence;
022:
023: /**
024: * <a href="BlogsEntryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface BlogsEntryPersistence {
030: public com.liferay.portlet.blogs.model.BlogsEntry create(
031: long entryId);
032:
033: public com.liferay.portlet.blogs.model.BlogsEntry remove(
034: long entryId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.blogs.NoSuchEntryException;
036:
037: public com.liferay.portlet.blogs.model.BlogsEntry remove(
038: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.blogs.model.BlogsEntry update(
042: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.blogs.model.BlogsEntry update(
046: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
050: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
054: long entryId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.blogs.NoSuchEntryException;
056:
057: public com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
058: long entryId) 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.blogs.model.BlogsEntry 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.blogs.NoSuchEntryException;
076:
077: public com.liferay.portlet.blogs.model.BlogsEntry 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.blogs.NoSuchEntryException;
082:
083: public com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
084: long entryId, java.lang.String uuid,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.blogs.NoSuchEntryException;
088:
089: public com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
090: java.lang.String uuid, long groupId)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portlet.blogs.NoSuchEntryException;
093:
094: public com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
095: java.lang.String uuid, long groupId)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByGroupId(long groupId)
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findByGroupId(long groupId, int begin, int end)
102: throws com.liferay.portal.SystemException;
103:
104: public java.util.List findByGroupId(long groupId, int begin,
105: int end,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException;
108:
109: public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
110: long groupId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.blogs.NoSuchEntryException;
114:
115: public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
116: long groupId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.blogs.NoSuchEntryException;
120:
121: public com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
122: long entryId, long groupId,
123: com.liferay.portal.kernel.util.OrderByComparator obc)
124: throws com.liferay.portal.SystemException,
125: com.liferay.portlet.blogs.NoSuchEntryException;
126:
127: public java.util.List findByCompanyId(long companyId)
128: throws com.liferay.portal.SystemException;
129:
130: public java.util.List findByCompanyId(long companyId, int begin,
131: int end) throws com.liferay.portal.SystemException;
132:
133: public java.util.List findByCompanyId(long companyId, int begin,
134: int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException;
137:
138: public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
139: long companyId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.blogs.NoSuchEntryException;
143:
144: public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
145: long companyId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portlet.blogs.NoSuchEntryException;
149:
150: public com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
151: long entryId, long companyId,
152: com.liferay.portal.kernel.util.OrderByComparator obc)
153: throws com.liferay.portal.SystemException,
154: com.liferay.portlet.blogs.NoSuchEntryException;
155:
156: public java.util.List findByG_U(long groupId, long userId)
157: throws com.liferay.portal.SystemException;
158:
159: public java.util.List findByG_U(long groupId, long userId,
160: int begin, int end)
161: throws com.liferay.portal.SystemException;
162:
163: public java.util.List findByG_U(long groupId, long userId,
164: int begin, int end,
165: com.liferay.portal.kernel.util.OrderByComparator obc)
166: throws com.liferay.portal.SystemException;
167:
168: public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
169: long groupId, long userId,
170: com.liferay.portal.kernel.util.OrderByComparator obc)
171: throws com.liferay.portal.SystemException,
172: com.liferay.portlet.blogs.NoSuchEntryException;
173:
174: public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
175: long groupId, long userId,
176: com.liferay.portal.kernel.util.OrderByComparator obc)
177: throws com.liferay.portal.SystemException,
178: com.liferay.portlet.blogs.NoSuchEntryException;
179:
180: public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
181: long entryId, long groupId, long userId,
182: com.liferay.portal.kernel.util.OrderByComparator obc)
183: throws com.liferay.portal.SystemException,
184: com.liferay.portlet.blogs.NoSuchEntryException;
185:
186: public com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(
187: long groupId, java.lang.String urlTitle)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portlet.blogs.NoSuchEntryException;
190:
191: public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
192: long groupId, java.lang.String urlTitle)
193: throws com.liferay.portal.SystemException;
194:
195: public java.util.List findByC_U(long companyId, long userId)
196: throws com.liferay.portal.SystemException;
197:
198: public java.util.List findByC_U(long companyId, long userId,
199: int begin, int end)
200: throws com.liferay.portal.SystemException;
201:
202: public java.util.List findByC_U(long companyId, long userId,
203: int begin, int end,
204: com.liferay.portal.kernel.util.OrderByComparator obc)
205: throws com.liferay.portal.SystemException;
206:
207: public com.liferay.portlet.blogs.model.BlogsEntry findByC_U_First(
208: long companyId, long userId,
209: com.liferay.portal.kernel.util.OrderByComparator obc)
210: throws com.liferay.portal.SystemException,
211: com.liferay.portlet.blogs.NoSuchEntryException;
212:
213: public com.liferay.portlet.blogs.model.BlogsEntry findByC_U_Last(
214: long companyId, long userId,
215: com.liferay.portal.kernel.util.OrderByComparator obc)
216: throws com.liferay.portal.SystemException,
217: com.liferay.portlet.blogs.NoSuchEntryException;
218:
219: public com.liferay.portlet.blogs.model.BlogsEntry[] findByC_U_PrevAndNext(
220: long entryId, long companyId, long userId,
221: com.liferay.portal.kernel.util.OrderByComparator obc)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portlet.blogs.NoSuchEntryException;
224:
225: public java.util.List findWithDynamicQuery(
226: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
227: throws com.liferay.portal.SystemException;
228:
229: public java.util.List findWithDynamicQuery(
230: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
231: int begin, int end)
232: throws com.liferay.portal.SystemException;
233:
234: public java.util.List findAll()
235: throws com.liferay.portal.SystemException;
236:
237: public java.util.List findAll(int begin, int end)
238: throws com.liferay.portal.SystemException;
239:
240: public java.util.List findAll(int begin, int end,
241: com.liferay.portal.kernel.util.OrderByComparator obc)
242: throws com.liferay.portal.SystemException;
243:
244: public void removeByUuid(java.lang.String uuid)
245: throws com.liferay.portal.SystemException;
246:
247: public void removeByUUID_G(java.lang.String uuid, long groupId)
248: throws com.liferay.portal.SystemException,
249: com.liferay.portlet.blogs.NoSuchEntryException;
250:
251: public void removeByGroupId(long groupId)
252: throws com.liferay.portal.SystemException;
253:
254: public void removeByCompanyId(long companyId)
255: throws com.liferay.portal.SystemException;
256:
257: public void removeByG_U(long groupId, long userId)
258: throws com.liferay.portal.SystemException;
259:
260: public void removeByG_UT(long groupId, java.lang.String urlTitle)
261: throws com.liferay.portal.SystemException,
262: com.liferay.portlet.blogs.NoSuchEntryException;
263:
264: public void removeByC_U(long companyId, long userId)
265: throws com.liferay.portal.SystemException;
266:
267: public void removeAll() throws com.liferay.portal.SystemException;
268:
269: public int countByUuid(java.lang.String uuid)
270: throws com.liferay.portal.SystemException;
271:
272: public int countByUUID_G(java.lang.String uuid, long groupId)
273: throws com.liferay.portal.SystemException;
274:
275: public int countByGroupId(long groupId)
276: throws com.liferay.portal.SystemException;
277:
278: public int countByCompanyId(long companyId)
279: throws com.liferay.portal.SystemException;
280:
281: public int countByG_U(long groupId, long userId)
282: throws com.liferay.portal.SystemException;
283:
284: public int countByG_UT(long groupId, java.lang.String urlTitle)
285: throws com.liferay.portal.SystemException;
286:
287: public int countByC_U(long companyId, long userId)
288: throws com.liferay.portal.SystemException;
289:
290: public int countAll() throws com.liferay.portal.SystemException;
291: }
|