1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
40 public interface MBThreadPersistence extends BasePersistence {
41 public void cacheResult(
42 com.liferay.portlet.messageboards.model.MBThread mbThread);
43
44 public void cacheResult(
45 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
46
47 public void clearCache();
48
49 public com.liferay.portlet.messageboards.model.MBThread create(
50 long threadId);
51
52 public com.liferay.portlet.messageboards.model.MBThread remove(
53 long threadId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.messageboards.NoSuchThreadException;
56
57 public com.liferay.portlet.messageboards.model.MBThread remove(
58 com.liferay.portlet.messageboards.model.MBThread mbThread)
59 throws com.liferay.portal.SystemException;
60
61
64 public com.liferay.portlet.messageboards.model.MBThread update(
65 com.liferay.portlet.messageboards.model.MBThread mbThread)
66 throws com.liferay.portal.SystemException;
67
68
80 public com.liferay.portlet.messageboards.model.MBThread update(
81 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.messageboards.model.MBThread updateImpl(
85 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
86 throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
89 long threadId)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.messageboards.NoSuchThreadException;
92
93 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
94 long threadId) throws com.liferay.portal.SystemException;
95
96 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException;
98
99 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
100 long groupId, int start, int end)
101 throws com.liferay.portal.SystemException;
102
103 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
104 long groupId, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.messageboards.NoSuchThreadException;
112
113 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
114 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.messageboards.NoSuchThreadException;
117
118 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
119 long threadId, long groupId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.messageboards.NoSuchThreadException;
123
124 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
125 long categoryId) throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
128 long categoryId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
132 long categoryId, int start, int end,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException;
135
136 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
137 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.messageboards.NoSuchThreadException;
140
141 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
142 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.messageboards.NoSuchThreadException;
145
146 public com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
147 long threadId, long categoryId,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.messageboards.NoSuchThreadException;
151
152 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
153 long categoryId, java.util.Date lastPostDate)
154 throws com.liferay.portal.SystemException;
155
156 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
157 long categoryId, java.util.Date lastPostDate, int start, int end)
158 throws com.liferay.portal.SystemException;
159
160 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
161 long categoryId, java.util.Date lastPostDate, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException;
164
165 public com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
166 long categoryId, java.util.Date lastPostDate,
167 com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portlet.messageboards.NoSuchThreadException;
170
171 public com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
172 long categoryId, java.util.Date lastPostDate,
173 com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.messageboards.NoSuchThreadException;
176
177 public com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
178 long threadId, long categoryId, java.util.Date lastPostDate,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.messageboards.NoSuchThreadException;
182
183 public java.util.List<Object> findWithDynamicQuery(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
185 throws com.liferay.portal.SystemException;
186
187 public java.util.List<Object> findWithDynamicQuery(
188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
189 int end) throws com.liferay.portal.SystemException;
190
191 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
192 throws com.liferay.portal.SystemException;
193
194 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
195 int start, int end) throws com.liferay.portal.SystemException;
196
197 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
198 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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 removeAll() throws com.liferay.portal.SystemException;
211
212 public int countByGroupId(long groupId)
213 throws com.liferay.portal.SystemException;
214
215 public int countByCategoryId(long categoryId)
216 throws com.liferay.portal.SystemException;
217
218 public int countByC_L(long categoryId, java.util.Date lastPostDate)
219 throws com.liferay.portal.SystemException;
220
221 public int countAll() throws com.liferay.portal.SystemException;
222 }