1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
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.MBDiscussion;
20  
21  /**
22   * <a href="MBDiscussionPersistence.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       MBDiscussionPersistenceImpl
31   * @see       MBDiscussionUtil
32   * @generated
33   */
34  public interface MBDiscussionPersistence extends BasePersistence<MBDiscussion> {
35      public void cacheResult(
36          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions);
40  
41      public com.liferay.portlet.messageboards.model.MBDiscussion create(
42          long discussionId);
43  
44      public com.liferay.portlet.messageboards.model.MBDiscussion remove(
45          long discussionId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.messageboards.NoSuchDiscussionException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.messageboards.model.MBDiscussion update(
53          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
57          com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
61          long discussionId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.messageboards.NoSuchDiscussionException;
64  
65      public com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
66          long discussionId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
69          long classNameId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
72          long classNameId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
76          long classNameId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First(
81          long classNameId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.messageboards.NoSuchDiscussionException;
85  
86      public com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
87          long classNameId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.messageboards.NoSuchDiscussionException;
91  
92      public com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
93          long discussionId, long classNameId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.messageboards.NoSuchDiscussionException;
97  
98      public com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId(
99          long threadId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.messageboards.NoSuchDiscussionException;
102 
103     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
104         long threadId) throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
107         long threadId, boolean retrieveFromCache)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
111         long classNameId, long classPK)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.messageboards.NoSuchDiscussionException;
114 
115     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
116         long classNameId, long classPK)
117         throws com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
120         long classNameId, long classPK, boolean retrieveFromCache)
121         throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
127         int start, int end) throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
130         int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.SystemException;
133 
134     public void removeByClassNameId(long classNameId)
135         throws com.liferay.portal.SystemException;
136 
137     public void removeByThreadId(long threadId)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.messageboards.NoSuchDiscussionException;
140 
141     public void removeByC_C(long classNameId, long classPK)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.messageboards.NoSuchDiscussionException;
144 
145     public void removeAll() throws com.liferay.portal.SystemException;
146 
147     public int countByClassNameId(long classNameId)
148         throws com.liferay.portal.SystemException;
149 
150     public int countByThreadId(long threadId)
151         throws com.liferay.portal.SystemException;
152 
153     public int countByC_C(long classNameId, long classPK)
154         throws com.liferay.portal.SystemException;
155 
156     public int countAll() throws com.liferay.portal.SystemException;
157 }