1
19
20 package com.liferay.portlet.messageboards.service.persistence;
21
22 import com.liferay.portal.service.persistence.BasePersistence;
23
24
30 public interface MBThreadPersistence extends BasePersistence {
31 public void cacheResult(
32 com.liferay.portlet.messageboards.model.MBThread mbThread);
33
34 public void cacheResult(
35 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
36
37 public void clearCache();
38
39 public com.liferay.portlet.messageboards.model.MBThread create(
40 long threadId);
41
42 public com.liferay.portlet.messageboards.model.MBThread remove(
43 long threadId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.messageboards.NoSuchThreadException;
46
47 public com.liferay.portlet.messageboards.model.MBThread remove(
48 com.liferay.portlet.messageboards.model.MBThread mbThread)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.messageboards.model.MBThread update(
55 com.liferay.portlet.messageboards.model.MBThread mbThread)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.messageboards.model.MBThread update(
72 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
73 throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.messageboards.model.MBThread updateImpl(
76 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
77 throws com.liferay.portal.SystemException;
78
79 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
80 long threadId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.messageboards.NoSuchThreadException;
83
84 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
85 long threadId) throws com.liferay.portal.SystemException;
86
87 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
88 long groupId) throws com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
91 long groupId, int start, int end)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
95 long groupId, int start, int end,
96 com.liferay.portal.kernel.util.OrderByComparator obc)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
100 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.messageboards.NoSuchThreadException;
103
104 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
105 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.messageboards.NoSuchThreadException;
108
109 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
110 long threadId, long groupId,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.messageboards.NoSuchThreadException;
114
115 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
116 long categoryId) throws com.liferay.portal.SystemException;
117
118 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
119 long categoryId, int start, int end)
120 throws com.liferay.portal.SystemException;
121
122 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
123 long categoryId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException;
126
127 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
128 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portlet.messageboards.NoSuchThreadException;
131
132 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
133 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.messageboards.NoSuchThreadException;
136
137 public com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
138 long threadId, long categoryId,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.messageboards.NoSuchThreadException;
142
143 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
144 long categoryId, java.util.Date lastPostDate)
145 throws com.liferay.portal.SystemException;
146
147 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
148 long categoryId, java.util.Date lastPostDate, int start, int end)
149 throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
152 long categoryId, java.util.Date lastPostDate, int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException;
155
156 public com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
157 long categoryId, java.util.Date lastPostDate,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.messageboards.NoSuchThreadException;
161
162 public com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
163 long categoryId, java.util.Date lastPostDate,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.messageboards.NoSuchThreadException;
167
168 public com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
169 long threadId, long categoryId, java.util.Date lastPostDate,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.messageboards.NoSuchThreadException;
173
174 public java.util.List<Object> findWithDynamicQuery(
175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
176 throws com.liferay.portal.SystemException;
177
178 public java.util.List<Object> findWithDynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
180 int end) throws com.liferay.portal.SystemException;
181
182 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
183 throws com.liferay.portal.SystemException;
184
185 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
186 int start, int end) throws com.liferay.portal.SystemException;
187
188 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
189 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException;
191
192 public void removeByGroupId(long groupId)
193 throws com.liferay.portal.SystemException;
194
195 public void removeByCategoryId(long categoryId)
196 throws com.liferay.portal.SystemException;
197
198 public void removeByC_L(long categoryId, java.util.Date lastPostDate)
199 throws com.liferay.portal.SystemException;
200
201 public void removeAll() throws com.liferay.portal.SystemException;
202
203 public int countByGroupId(long groupId)
204 throws com.liferay.portal.SystemException;
205
206 public int countByCategoryId(long categoryId)
207 throws com.liferay.portal.SystemException;
208
209 public int countByC_L(long categoryId, java.util.Date lastPostDate)
210 throws com.liferay.portal.SystemException;
211
212 public int countAll() throws com.liferay.portal.SystemException;
213 }