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