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