001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBMailingList;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       MBMailingListPersistenceImpl
024     * @see       MBMailingListUtil
025     * @generated
026     */
027    public interface MBMailingListPersistence extends BasePersistence<MBMailingList> {
028            public void cacheResult(
029                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists);
033    
034            public com.liferay.portlet.messageboards.model.MBMailingList create(
035                    long mailingListId);
036    
037            public com.liferay.portlet.messageboards.model.MBMailingList remove(
038                    long mailingListId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.messageboards.NoSuchMailingListException;
041    
042            public com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
043                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
048                    long mailingListId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.messageboards.NoSuchMailingListException;
051    
052            public com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
053                    long mailingListId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
065                    java.lang.String uuid, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.messageboards.NoSuchMailingListException;
074    
075            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.messageboards.NoSuchMailingListException;
080    
081            public com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
082                    long mailingListId, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.messageboards.NoSuchMailingListException;
086    
087            public com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
088                    java.lang.String uuid, long groupId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.messageboards.NoSuchMailingListException;
091    
092            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
093                    java.lang.String uuid, long groupId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
097                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
101                    boolean active)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
105                    boolean active, int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
109                    boolean active, int start, int end,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
114                    boolean active,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.messageboards.NoSuchMailingListException;
118    
119            public com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
120                    boolean active,
121                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122                    throws com.liferay.portal.kernel.exception.SystemException,
123                            com.liferay.portlet.messageboards.NoSuchMailingListException;
124    
125            public com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
126                    long mailingListId, boolean active,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.messageboards.NoSuchMailingListException;
130    
131            public com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
132                    long groupId, long categoryId)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.messageboards.NoSuchMailingListException;
135    
136            public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
137                    long groupId, long categoryId)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
141                    long groupId, long categoryId, boolean retrieveFromCache)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
148                    int start, int end)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
152                    int start, int end,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public void removeByUuid(java.lang.String uuid)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void removeByUUID_G(java.lang.String uuid, long groupId)
160                    throws com.liferay.portal.kernel.exception.SystemException,
161                            com.liferay.portlet.messageboards.NoSuchMailingListException;
162    
163            public void removeByActive(boolean active)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public void removeByG_C(long groupId, long categoryId)
167                    throws com.liferay.portal.kernel.exception.SystemException,
168                            com.liferay.portlet.messageboards.NoSuchMailingListException;
169    
170            public void removeAll()
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public int countByUuid(java.lang.String uuid)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public int countByUUID_G(java.lang.String uuid, long groupId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public int countByActive(boolean active)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public int countByG_C(long groupId, long categoryId)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public int countAll()
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    }