1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.messageboards.model.MBDiscussion;
28  
29  /**
30   * <a href="MBDiscussionPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       MBDiscussionPersistenceImpl
39   * @see       MBDiscussionUtil
40   * @generated
41   */
42  public interface MBDiscussionPersistence extends BasePersistence<MBDiscussion> {
43      public void cacheResult(
44          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions);
48  
49      public com.liferay.portlet.messageboards.model.MBDiscussion create(
50          long discussionId);
51  
52      public com.liferay.portlet.messageboards.model.MBDiscussion remove(
53          long discussionId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.messageboards.NoSuchDiscussionException;
56  
57      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.messageboards.model.MBDiscussion update(
61          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
65          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
69          long discussionId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.messageboards.NoSuchDiscussionException;
72  
73      public com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
74          long discussionId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
77          long classNameId) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
80          long classNameId, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
84          long classNameId, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First(
89          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.messageboards.NoSuchDiscussionException;
92  
93      public com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
94          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.messageboards.NoSuchDiscussionException;
97  
98      public com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
99          long discussionId, long classNameId,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.messageboards.NoSuchDiscussionException;
103 
104     public com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId(
105         long threadId)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.messageboards.NoSuchDiscussionException;
108 
109     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
110         long threadId) throws com.liferay.portal.SystemException;
111 
112     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
113         long threadId, boolean retrieveFromCache)
114         throws com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
117         long classNameId, long classPK)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.messageboards.NoSuchDiscussionException;
120 
121     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
122         long classNameId, long classPK)
123         throws com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
126         long classNameId, long classPK, boolean retrieveFromCache)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
133         int start, int end) throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
136         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     public void removeByClassNameId(long classNameId)
140         throws com.liferay.portal.SystemException;
141 
142     public void removeByThreadId(long threadId)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.messageboards.NoSuchDiscussionException;
145 
146     public void removeByC_C(long classNameId, long classPK)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.messageboards.NoSuchDiscussionException;
149 
150     public void removeAll() throws com.liferay.portal.SystemException;
151 
152     public int countByClassNameId(long classNameId)
153         throws com.liferay.portal.SystemException;
154 
155     public int countByThreadId(long threadId)
156         throws com.liferay.portal.SystemException;
157 
158     public int countByC_C(long classNameId, long classPK)
159         throws com.liferay.portal.SystemException;
160 
161     public int countAll() throws com.liferay.portal.SystemException;
162 }