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.MBCategory;
20
21
34 public interface MBCategoryPersistence extends BasePersistence<MBCategory> {
35 public void cacheResult(
36 com.liferay.portlet.messageboards.model.MBCategory mbCategory);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories);
40
41 public com.liferay.portlet.messageboards.model.MBCategory create(
42 long categoryId);
43
44 public com.liferay.portlet.messageboards.model.MBCategory remove(
45 long categoryId)
46 throws com.liferay.portal.kernel.exception.SystemException,
47 com.liferay.portlet.messageboards.NoSuchCategoryException;
48
49 public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
50 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
51 boolean merge)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
55 long categoryId)
56 throws com.liferay.portal.kernel.exception.SystemException,
57 com.liferay.portlet.messageboards.NoSuchCategoryException;
58
59 public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
60 long categoryId)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
64 java.lang.String uuid)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
68 java.lang.String uuid, int start, int end)
69 throws com.liferay.portal.kernel.exception.SystemException;
70
71 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
72 java.lang.String uuid, int start, int end,
73 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74 throws com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
77 java.lang.String uuid,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException,
80 com.liferay.portlet.messageboards.NoSuchCategoryException;
81
82 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
83 java.lang.String uuid,
84 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85 throws com.liferay.portal.kernel.exception.SystemException,
86 com.liferay.portlet.messageboards.NoSuchCategoryException;
87
88 public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
89 long categoryId, java.lang.String uuid,
90 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91 throws com.liferay.portal.kernel.exception.SystemException,
92 com.liferay.portlet.messageboards.NoSuchCategoryException;
93
94 public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
95 java.lang.String uuid, long groupId)
96 throws com.liferay.portal.kernel.exception.SystemException,
97 com.liferay.portlet.messageboards.NoSuchCategoryException;
98
99 public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
100 java.lang.String uuid, long groupId)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
104 java.lang.String uuid, long groupId, boolean retrieveFromCache)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
108 long groupId)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
112 long groupId, int start, int end)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
116 long groupId, int start, int end,
117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
121 long groupId,
122 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.messageboards.NoSuchCategoryException;
125
126 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
127 long groupId,
128 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129 throws com.liferay.portal.kernel.exception.SystemException,
130 com.liferay.portlet.messageboards.NoSuchCategoryException;
131
132 public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
133 long categoryId, long groupId,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException,
136 com.liferay.portlet.messageboards.NoSuchCategoryException;
137
138 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
139 long companyId)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
143 long companyId, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
147 long companyId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
152 long companyId,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException,
155 com.liferay.portlet.messageboards.NoSuchCategoryException;
156
157 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
158 long companyId,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.kernel.exception.SystemException,
161 com.liferay.portlet.messageboards.NoSuchCategoryException;
162
163 public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
164 long categoryId, long companyId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.messageboards.NoSuchCategoryException;
168
169 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
170 long groupId, long parentCategoryId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
174 long groupId, long parentCategoryId, int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
178 long groupId, long parentCategoryId, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
183 long groupId, long parentCategoryId,
184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185 throws com.liferay.portal.kernel.exception.SystemException,
186 com.liferay.portlet.messageboards.NoSuchCategoryException;
187
188 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
189 long groupId, long parentCategoryId,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.kernel.exception.SystemException,
192 com.liferay.portlet.messageboards.NoSuchCategoryException;
193
194 public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
195 long categoryId, long groupId, long parentCategoryId,
196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197 throws com.liferay.portal.kernel.exception.SystemException,
198 com.liferay.portlet.messageboards.NoSuchCategoryException;
199
200 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
208 int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212 public void removeByUuid(java.lang.String uuid)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215 public void removeByUUID_G(java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException,
217 com.liferay.portlet.messageboards.NoSuchCategoryException;
218
219 public void removeByGroupId(long groupId)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public void removeByCompanyId(long companyId)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public void removeByG_P(long groupId, long parentCategoryId)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228 public void removeAll()
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231 public int countByUuid(java.lang.String uuid)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234 public int countByUUID_G(java.lang.String uuid, long groupId)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public int countByGroupId(long groupId)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public int countByCompanyId(long companyId)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 public int countByG_P(long groupId, long parentCategoryId)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246 public int countAll()
247 throws com.liferay.portal.kernel.exception.SystemException;
248 }