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