1
14
15 package com.liferay.portlet.blogs.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18 import com.liferay.counter.service.CounterService;
19
20 import com.liferay.portal.PortalException;
21 import com.liferay.portal.SystemException;
22 import com.liferay.portal.kernel.annotation.BeanReference;
23 import com.liferay.portal.kernel.dao.db.DB;
24 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
25 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
26 import com.liferay.portal.kernel.util.OrderByComparator;
27 import com.liferay.portal.service.GroupLocalService;
28 import com.liferay.portal.service.GroupService;
29 import com.liferay.portal.service.ResourceLocalService;
30 import com.liferay.portal.service.ResourceService;
31 import com.liferay.portal.service.UserLocalService;
32 import com.liferay.portal.service.UserService;
33 import com.liferay.portal.service.persistence.GroupFinder;
34 import com.liferay.portal.service.persistence.GroupPersistence;
35 import com.liferay.portal.service.persistence.ResourceFinder;
36 import com.liferay.portal.service.persistence.ResourcePersistence;
37 import com.liferay.portal.service.persistence.UserFinder;
38 import com.liferay.portal.service.persistence.UserPersistence;
39
40 import com.liferay.portlet.blogs.model.BlogsStatsUser;
41 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
42 import com.liferay.portlet.blogs.service.BlogsEntryService;
43 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
44 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
45 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
46 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
47 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
48
49 import java.util.List;
50
51
57 public abstract class BlogsStatsUserLocalServiceBaseImpl
58 implements BlogsStatsUserLocalService {
59 public BlogsStatsUser addBlogsStatsUser(BlogsStatsUser blogsStatsUser)
60 throws SystemException {
61 blogsStatsUser.setNew(true);
62
63 return blogsStatsUserPersistence.update(blogsStatsUser, false);
64 }
65
66 public BlogsStatsUser createBlogsStatsUser(long statsUserId) {
67 return blogsStatsUserPersistence.create(statsUserId);
68 }
69
70 public void deleteBlogsStatsUser(long statsUserId)
71 throws PortalException, SystemException {
72 blogsStatsUserPersistence.remove(statsUserId);
73 }
74
75 public void deleteBlogsStatsUser(BlogsStatsUser blogsStatsUser)
76 throws SystemException {
77 blogsStatsUserPersistence.remove(blogsStatsUser);
78 }
79
80 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
81 throws SystemException {
82 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
83 }
84
85 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
86 int end) throws SystemException {
87 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
88 start, end);
89 }
90
91 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
92 int end, OrderByComparator orderByComparator) throws SystemException {
93 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
94 start, end, orderByComparator);
95 }
96
97 public int dynamicQueryCount(DynamicQuery dynamicQuery)
98 throws SystemException {
99 return blogsStatsUserPersistence.countWithDynamicQuery(dynamicQuery);
100 }
101
102 public BlogsStatsUser getBlogsStatsUser(long statsUserId)
103 throws PortalException, SystemException {
104 return blogsStatsUserPersistence.findByPrimaryKey(statsUserId);
105 }
106
107 public List<BlogsStatsUser> getBlogsStatsUsers(int start, int end)
108 throws SystemException {
109 return blogsStatsUserPersistence.findAll(start, end);
110 }
111
112 public int getBlogsStatsUsersCount() throws SystemException {
113 return blogsStatsUserPersistence.countAll();
114 }
115
116 public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser)
117 throws SystemException {
118 blogsStatsUser.setNew(false);
119
120 return blogsStatsUserPersistence.update(blogsStatsUser, true);
121 }
122
123 public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser,
124 boolean merge) throws SystemException {
125 blogsStatsUser.setNew(false);
126
127 return blogsStatsUserPersistence.update(blogsStatsUser, merge);
128 }
129
130 public BlogsEntryLocalService getBlogsEntryLocalService() {
131 return blogsEntryLocalService;
132 }
133
134 public void setBlogsEntryLocalService(
135 BlogsEntryLocalService blogsEntryLocalService) {
136 this.blogsEntryLocalService = blogsEntryLocalService;
137 }
138
139 public BlogsEntryService getBlogsEntryService() {
140 return blogsEntryService;
141 }
142
143 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
144 this.blogsEntryService = blogsEntryService;
145 }
146
147 public BlogsEntryPersistence getBlogsEntryPersistence() {
148 return blogsEntryPersistence;
149 }
150
151 public void setBlogsEntryPersistence(
152 BlogsEntryPersistence blogsEntryPersistence) {
153 this.blogsEntryPersistence = blogsEntryPersistence;
154 }
155
156 public BlogsEntryFinder getBlogsEntryFinder() {
157 return blogsEntryFinder;
158 }
159
160 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
161 this.blogsEntryFinder = blogsEntryFinder;
162 }
163
164 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
165 return blogsStatsUserLocalService;
166 }
167
168 public void setBlogsStatsUserLocalService(
169 BlogsStatsUserLocalService blogsStatsUserLocalService) {
170 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
171 }
172
173 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
174 return blogsStatsUserPersistence;
175 }
176
177 public void setBlogsStatsUserPersistence(
178 BlogsStatsUserPersistence blogsStatsUserPersistence) {
179 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
180 }
181
182 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
183 return blogsStatsUserFinder;
184 }
185
186 public void setBlogsStatsUserFinder(
187 BlogsStatsUserFinder blogsStatsUserFinder) {
188 this.blogsStatsUserFinder = blogsStatsUserFinder;
189 }
190
191 public CounterLocalService getCounterLocalService() {
192 return counterLocalService;
193 }
194
195 public void setCounterLocalService(CounterLocalService counterLocalService) {
196 this.counterLocalService = counterLocalService;
197 }
198
199 public CounterService getCounterService() {
200 return counterService;
201 }
202
203 public void setCounterService(CounterService counterService) {
204 this.counterService = counterService;
205 }
206
207 public GroupLocalService getGroupLocalService() {
208 return groupLocalService;
209 }
210
211 public void setGroupLocalService(GroupLocalService groupLocalService) {
212 this.groupLocalService = groupLocalService;
213 }
214
215 public GroupService getGroupService() {
216 return groupService;
217 }
218
219 public void setGroupService(GroupService groupService) {
220 this.groupService = groupService;
221 }
222
223 public GroupPersistence getGroupPersistence() {
224 return groupPersistence;
225 }
226
227 public void setGroupPersistence(GroupPersistence groupPersistence) {
228 this.groupPersistence = groupPersistence;
229 }
230
231 public GroupFinder getGroupFinder() {
232 return groupFinder;
233 }
234
235 public void setGroupFinder(GroupFinder groupFinder) {
236 this.groupFinder = groupFinder;
237 }
238
239 public ResourceLocalService getResourceLocalService() {
240 return resourceLocalService;
241 }
242
243 public void setResourceLocalService(
244 ResourceLocalService resourceLocalService) {
245 this.resourceLocalService = resourceLocalService;
246 }
247
248 public ResourceService getResourceService() {
249 return resourceService;
250 }
251
252 public void setResourceService(ResourceService resourceService) {
253 this.resourceService = resourceService;
254 }
255
256 public ResourcePersistence getResourcePersistence() {
257 return resourcePersistence;
258 }
259
260 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
261 this.resourcePersistence = resourcePersistence;
262 }
263
264 public ResourceFinder getResourceFinder() {
265 return resourceFinder;
266 }
267
268 public void setResourceFinder(ResourceFinder resourceFinder) {
269 this.resourceFinder = resourceFinder;
270 }
271
272 public UserLocalService getUserLocalService() {
273 return userLocalService;
274 }
275
276 public void setUserLocalService(UserLocalService userLocalService) {
277 this.userLocalService = userLocalService;
278 }
279
280 public UserService getUserService() {
281 return userService;
282 }
283
284 public void setUserService(UserService userService) {
285 this.userService = userService;
286 }
287
288 public UserPersistence getUserPersistence() {
289 return userPersistence;
290 }
291
292 public void setUserPersistence(UserPersistence userPersistence) {
293 this.userPersistence = userPersistence;
294 }
295
296 public UserFinder getUserFinder() {
297 return userFinder;
298 }
299
300 public void setUserFinder(UserFinder userFinder) {
301 this.userFinder = userFinder;
302 }
303
304 protected void runSQL(String sql) throws SystemException {
305 try {
306 DB db = DBFactoryUtil.getDB();
307
308 db.runSQL(sql);
309 }
310 catch (Exception e) {
311 throw new SystemException(e);
312 }
313 }
314
315 @BeanReference(type = BlogsEntryLocalService.class)
316 protected BlogsEntryLocalService blogsEntryLocalService;
317 @BeanReference(type = BlogsEntryService.class)
318 protected BlogsEntryService blogsEntryService;
319 @BeanReference(type = BlogsEntryPersistence.class)
320 protected BlogsEntryPersistence blogsEntryPersistence;
321 @BeanReference(type = BlogsEntryFinder.class)
322 protected BlogsEntryFinder blogsEntryFinder;
323 @BeanReference(type = BlogsStatsUserLocalService.class)
324 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
325 @BeanReference(type = BlogsStatsUserPersistence.class)
326 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
327 @BeanReference(type = BlogsStatsUserFinder.class)
328 protected BlogsStatsUserFinder blogsStatsUserFinder;
329 @BeanReference(type = CounterLocalService.class)
330 protected CounterLocalService counterLocalService;
331 @BeanReference(type = CounterService.class)
332 protected CounterService counterService;
333 @BeanReference(type = GroupLocalService.class)
334 protected GroupLocalService groupLocalService;
335 @BeanReference(type = GroupService.class)
336 protected GroupService groupService;
337 @BeanReference(type = GroupPersistence.class)
338 protected GroupPersistence groupPersistence;
339 @BeanReference(type = GroupFinder.class)
340 protected GroupFinder groupFinder;
341 @BeanReference(type = ResourceLocalService.class)
342 protected ResourceLocalService resourceLocalService;
343 @BeanReference(type = ResourceService.class)
344 protected ResourceService resourceService;
345 @BeanReference(type = ResourcePersistence.class)
346 protected ResourcePersistence resourcePersistence;
347 @BeanReference(type = ResourceFinder.class)
348 protected ResourceFinder resourceFinder;
349 @BeanReference(type = UserLocalService.class)
350 protected UserLocalService userLocalService;
351 @BeanReference(type = UserService.class)
352 protected UserService userService;
353 @BeanReference(type = UserPersistence.class)
354 protected UserPersistence userPersistence;
355 @BeanReference(type = UserFinder.class)
356 protected UserFinder userFinder;
357 }