1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.messageboards.model.MBMailingList;
20  
21  /**
22   * <a href="MBMailingListPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       MBMailingListPersistenceImpl
31   * @see       MBMailingListUtil
32   * @generated
33   */
34  public interface MBMailingListPersistence extends BasePersistence<MBMailingList> {
35      public void cacheResult(
36          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists);
40  
41      public com.liferay.portlet.messageboards.model.MBMailingList create(
42          long mailingListId);
43  
44      public com.liferay.portlet.messageboards.model.MBMailingList remove(
45          long mailingListId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.messageboards.NoSuchMailingListException;
48  
49      public com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
50          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
55          long mailingListId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.messageboards.NoSuchMailingListException;
58  
59      public com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
60          long mailingListId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.messageboards.NoSuchMailingListException;
81  
82      public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.messageboards.NoSuchMailingListException;
87  
88      public com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
89          long mailingListId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.messageboards.NoSuchMailingListException;
93  
94      public com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.messageboards.NoSuchMailingListException;
98  
99      public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
104         java.lang.String uuid, long groupId, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
108         boolean active)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
112         boolean active, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
116         boolean active, int start, int end,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
121         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.messageboards.NoSuchMailingListException;
124 
125     public com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
126         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.messageboards.NoSuchMailingListException;
129 
130     public com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
131         long mailingListId, boolean active,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.messageboards.NoSuchMailingListException;
135 
136     public com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
137         long groupId, long categoryId)
138         throws com.liferay.portal.kernel.exception.SystemException,
139             com.liferay.portlet.messageboards.NoSuchMailingListException;
140 
141     public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
142         long groupId, long categoryId)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
146         long groupId, long categoryId, boolean retrieveFromCache)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
153         int start, int end)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
157         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public void removeByUuid(java.lang.String uuid)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void removeByUUID_G(java.lang.String uuid, long groupId)
164         throws com.liferay.portal.kernel.exception.SystemException,
165             com.liferay.portlet.messageboards.NoSuchMailingListException;
166 
167     public void removeByActive(boolean active)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public void removeByG_C(long groupId, long categoryId)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.messageboards.NoSuchMailingListException;
173 
174     public void removeAll()
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public int countByUuid(java.lang.String uuid)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public int countByUUID_G(java.lang.String uuid, long groupId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public int countByActive(boolean active)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public int countByG_C(long groupId, long categoryId)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public int countAll()
190         throws com.liferay.portal.kernel.exception.SystemException;
191 }