1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.messageboards.service.persistence;
21  
22  import com.liferay.portal.service.persistence.BasePersistence;
23  
24  /**
25   * <a href="MBMailingListPersistence.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   *
29   */
30  public interface MBMailingListPersistence extends BasePersistence {
31      public void cacheResult(
32          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList);
33  
34      public void cacheResult(
35          java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists);
36  
37      public void clearCache();
38  
39      public com.liferay.portlet.messageboards.model.MBMailingList create(
40          long mailingListId);
41  
42      public com.liferay.portlet.messageboards.model.MBMailingList remove(
43          long mailingListId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.messageboards.NoSuchMailingListException;
46  
47      public com.liferay.portlet.messageboards.model.MBMailingList remove(
48          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
49          throws com.liferay.portal.SystemException;
50  
51      /**
52       * @deprecated Use <code>update(MBMailingList mbMailingList, boolean merge)</code>.
53       */
54      public com.liferay.portlet.messageboards.model.MBMailingList update(
55          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * Add, update, or merge, the entity. This method also calls the model
60       * listeners to trigger the proper events associated with adding, deleting,
61       * or updating an entity.
62       *
63       * @param        mbMailingList the entity to add, update, or merge
64       * @param        merge boolean value for whether to merge the entity. The
65       *                default value is false. Setting merge to true is more
66       *                expensive and should only be true when mbMailingList is
67       *                transient. See LEP-5473 for a detailed discussion of this
68       *                method.
69       * @return        true if the portlet can be displayed via Ajax
70       */
71      public com.liferay.portlet.messageboards.model.MBMailingList update(
72          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
73          boolean merge) throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
76          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
77          boolean merge) throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
80          long mailingListId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.messageboards.NoSuchMailingListException;
83  
84      public com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
85          long mailingListId) throws com.liferay.portal.SystemException;
86  
87      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
88          java.lang.String uuid) throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
91          java.lang.String uuid, int start, int end)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
95          java.lang.String uuid, int start, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
100         java.lang.String uuid,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.messageboards.NoSuchMailingListException;
104 
105     public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
106         java.lang.String uuid,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.messageboards.NoSuchMailingListException;
110 
111     public com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
112         long mailingListId, java.lang.String uuid,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException,
115             com.liferay.portlet.messageboards.NoSuchMailingListException;
116 
117     public com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
118         java.lang.String uuid, long groupId)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.messageboards.NoSuchMailingListException;
121 
122     public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
123         java.lang.String uuid, long groupId)
124         throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
127         java.lang.String uuid, long groupId, boolean retrieveFromCache)
128         throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.messageboards.model.MBMailingList findByCategoryId(
131         long categoryId)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.messageboards.NoSuchMailingListException;
134 
135     public com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
136         long categoryId) throws com.liferay.portal.SystemException;
137 
138     public com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
139         long categoryId, boolean retrieveFromCache)
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
143         boolean active) throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
146         boolean active, int start, int end)
147         throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
150         boolean active, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
155         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.messageboards.NoSuchMailingListException;
158 
159     public com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
160         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.messageboards.NoSuchMailingListException;
163 
164     public com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
165         long mailingListId, boolean active,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException,
168             com.liferay.portlet.messageboards.NoSuchMailingListException;
169 
170     public java.util.List<Object> findWithDynamicQuery(
171         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<Object> findWithDynamicQuery(
175         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
176         int end) throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
182         int start, int end) throws com.liferay.portal.SystemException;
183 
184     public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
185         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByUuid(java.lang.String uuid)
189         throws com.liferay.portal.SystemException;
190 
191     public void removeByUUID_G(java.lang.String uuid, long groupId)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.messageboards.NoSuchMailingListException;
194 
195     public void removeByCategoryId(long categoryId)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.messageboards.NoSuchMailingListException;
198 
199     public void removeByActive(boolean active)
200         throws com.liferay.portal.SystemException;
201 
202     public void removeAll() throws com.liferay.portal.SystemException;
203 
204     public int countByUuid(java.lang.String uuid)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByUUID_G(java.lang.String uuid, long groupId)
208         throws com.liferay.portal.SystemException;
209 
210     public int countByCategoryId(long categoryId)
211         throws com.liferay.portal.SystemException;
212 
213     public int countByActive(boolean active)
214         throws com.liferay.portal.SystemException;
215 
216     public int countAll() throws com.liferay.portal.SystemException;
217 }