1
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.MBThread;
20
21
34 public interface MBThreadPersistence extends BasePersistence<MBThread> {
35 public void cacheResult(
36 com.liferay.portlet.messageboards.model.MBThread mbThread);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
40
41 public com.liferay.portlet.messageboards.model.MBThread create(
42 long threadId);
43
44 public com.liferay.portlet.messageboards.model.MBThread remove(
45 long threadId)
46 throws com.liferay.portal.SystemException,
47 com.liferay.portlet.messageboards.NoSuchThreadException;
48
49
52 public com.liferay.portlet.messageboards.model.MBThread update(
53 com.liferay.portlet.messageboards.model.MBThread mbThread)
54 throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.messageboards.model.MBThread updateImpl(
57 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
58 throws com.liferay.portal.SystemException;
59
60 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
61 long threadId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portlet.messageboards.NoSuchThreadException;
64
65 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
66 long threadId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
69 long groupId) throws com.liferay.portal.SystemException;
70
71 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
72 long groupId, int start, int end)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
76 long groupId, 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.MBThread findByGroupId_First(
81 long groupId,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.messageboards.NoSuchThreadException;
85
86 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
87 long groupId,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.SystemException,
90 com.liferay.portlet.messageboards.NoSuchThreadException;
91
92 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
93 long threadId, long groupId,
94 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.messageboards.NoSuchThreadException;
97
98 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
99 long categoryId) throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
102 long categoryId, int start, int end)
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
106 long categoryId, int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
111 long categoryId,
112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.messageboards.NoSuchThreadException;
115
116 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
117 long categoryId,
118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.messageboards.NoSuchThreadException;
121
122 public com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
123 long threadId, long categoryId,
124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.messageboards.NoSuchThreadException;
127
128 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
129 long categoryId, java.util.Date lastPostDate)
130 throws com.liferay.portal.SystemException;
131
132 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
133 long categoryId, java.util.Date lastPostDate, int start, int end)
134 throws com.liferay.portal.SystemException;
135
136 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
137 long categoryId, java.util.Date lastPostDate, int start, int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.SystemException;
140
141 public com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
142 long categoryId, java.util.Date lastPostDate,
143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.messageboards.NoSuchThreadException;
146
147 public com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
148 long categoryId, java.util.Date lastPostDate,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.messageboards.NoSuchThreadException;
152
153 public com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
154 long threadId, long categoryId, java.util.Date lastPostDate,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.messageboards.NoSuchThreadException;
158
159 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
160 long categoryId, double priority)
161 throws com.liferay.portal.SystemException;
162
163 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
164 long categoryId, double priority, int start, int end)
165 throws com.liferay.portal.SystemException;
166
167 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
168 long categoryId, double priority, int start, int end,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.SystemException;
171
172 public com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
173 long categoryId, double priority,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.SystemException,
176 com.liferay.portlet.messageboards.NoSuchThreadException;
177
178 public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
179 long categoryId, double priority,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.messageboards.NoSuchThreadException;
183
184 public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
185 long threadId, long categoryId, double priority,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.messageboards.NoSuchThreadException;
189
190 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
191 throws com.liferay.portal.SystemException;
192
193 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
194 int start, int end) throws com.liferay.portal.SystemException;
195
196 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
197 int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.SystemException;
200
201 public void removeByGroupId(long groupId)
202 throws com.liferay.portal.SystemException;
203
204 public void removeByCategoryId(long categoryId)
205 throws com.liferay.portal.SystemException;
206
207 public void removeByC_L(long categoryId, java.util.Date lastPostDate)
208 throws com.liferay.portal.SystemException;
209
210 public void removeByC_P(long categoryId, double priority)
211 throws com.liferay.portal.SystemException;
212
213 public void removeAll() throws com.liferay.portal.SystemException;
214
215 public int countByGroupId(long groupId)
216 throws com.liferay.portal.SystemException;
217
218 public int countByCategoryId(long categoryId)
219 throws com.liferay.portal.SystemException;
220
221 public int countByC_L(long categoryId, java.util.Date lastPostDate)
222 throws com.liferay.portal.SystemException;
223
224 public int countByC_P(long categoryId, double priority)
225 throws com.liferay.portal.SystemException;
226
227 public int countAll() throws com.liferay.portal.SystemException;
228 }