1
19
20 package com.liferay.portlet.blogs.service.base;
21
22 import com.liferay.counter.service.CounterLocalService;
23 import com.liferay.counter.service.CounterService;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29 import com.liferay.portal.service.GroupLocalService;
30 import com.liferay.portal.service.GroupService;
31 import com.liferay.portal.service.persistence.GroupFinder;
32 import com.liferay.portal.service.persistence.GroupPersistence;
33 import com.liferay.portal.util.PortalUtil;
34
35 import com.liferay.portlet.blogs.model.BlogsStatsUser;
36 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
37 import com.liferay.portlet.blogs.service.BlogsEntryService;
38 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
39 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
40 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
41 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
42 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
43
44 import java.util.List;
45
46
52 public abstract class BlogsStatsUserLocalServiceBaseImpl
53 implements BlogsStatsUserLocalService {
54 public BlogsStatsUser addBlogsStatsUser(BlogsStatsUser blogsStatsUser)
55 throws SystemException {
56 blogsStatsUser.setNew(true);
57
58 return blogsStatsUserPersistence.update(blogsStatsUser, false);
59 }
60
61 public BlogsStatsUser createBlogsStatsUser(long statsUserId) {
62 return blogsStatsUserPersistence.create(statsUserId);
63 }
64
65 public void deleteBlogsStatsUser(long statsUserId)
66 throws PortalException, SystemException {
67 blogsStatsUserPersistence.remove(statsUserId);
68 }
69
70 public void deleteBlogsStatsUser(BlogsStatsUser blogsStatsUser)
71 throws SystemException {
72 blogsStatsUserPersistence.remove(blogsStatsUser);
73 }
74
75 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
76 throws SystemException {
77 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
78 }
79
80 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
81 int end) throws SystemException {
82 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
83 start, end);
84 }
85
86 public BlogsStatsUser getBlogsStatsUser(long statsUserId)
87 throws PortalException, SystemException {
88 return blogsStatsUserPersistence.findByPrimaryKey(statsUserId);
89 }
90
91 public List<BlogsStatsUser> getBlogsStatsUsers(int start, int end)
92 throws SystemException {
93 return blogsStatsUserPersistence.findAll(start, end);
94 }
95
96 public int getBlogsStatsUsersCount() throws SystemException {
97 return blogsStatsUserPersistence.countAll();
98 }
99
100 public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser)
101 throws SystemException {
102 blogsStatsUser.setNew(false);
103
104 return blogsStatsUserPersistence.update(blogsStatsUser, true);
105 }
106
107 public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser,
108 boolean merge) throws SystemException {
109 blogsStatsUser.setNew(false);
110
111 return blogsStatsUserPersistence.update(blogsStatsUser, merge);
112 }
113
114 public BlogsEntryLocalService getBlogsEntryLocalService() {
115 return blogsEntryLocalService;
116 }
117
118 public void setBlogsEntryLocalService(
119 BlogsEntryLocalService blogsEntryLocalService) {
120 this.blogsEntryLocalService = blogsEntryLocalService;
121 }
122
123 public BlogsEntryService getBlogsEntryService() {
124 return blogsEntryService;
125 }
126
127 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
128 this.blogsEntryService = blogsEntryService;
129 }
130
131 public BlogsEntryPersistence getBlogsEntryPersistence() {
132 return blogsEntryPersistence;
133 }
134
135 public void setBlogsEntryPersistence(
136 BlogsEntryPersistence blogsEntryPersistence) {
137 this.blogsEntryPersistence = blogsEntryPersistence;
138 }
139
140 public BlogsEntryFinder getBlogsEntryFinder() {
141 return blogsEntryFinder;
142 }
143
144 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
145 this.blogsEntryFinder = blogsEntryFinder;
146 }
147
148 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
149 return blogsStatsUserLocalService;
150 }
151
152 public void setBlogsStatsUserLocalService(
153 BlogsStatsUserLocalService blogsStatsUserLocalService) {
154 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
155 }
156
157 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
158 return blogsStatsUserPersistence;
159 }
160
161 public void setBlogsStatsUserPersistence(
162 BlogsStatsUserPersistence blogsStatsUserPersistence) {
163 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
164 }
165
166 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
167 return blogsStatsUserFinder;
168 }
169
170 public void setBlogsStatsUserFinder(
171 BlogsStatsUserFinder blogsStatsUserFinder) {
172 this.blogsStatsUserFinder = blogsStatsUserFinder;
173 }
174
175 public CounterLocalService getCounterLocalService() {
176 return counterLocalService;
177 }
178
179 public void setCounterLocalService(CounterLocalService counterLocalService) {
180 this.counterLocalService = counterLocalService;
181 }
182
183 public CounterService getCounterService() {
184 return counterService;
185 }
186
187 public void setCounterService(CounterService counterService) {
188 this.counterService = counterService;
189 }
190
191 public GroupLocalService getGroupLocalService() {
192 return groupLocalService;
193 }
194
195 public void setGroupLocalService(GroupLocalService groupLocalService) {
196 this.groupLocalService = groupLocalService;
197 }
198
199 public GroupService getGroupService() {
200 return groupService;
201 }
202
203 public void setGroupService(GroupService groupService) {
204 this.groupService = groupService;
205 }
206
207 public GroupPersistence getGroupPersistence() {
208 return groupPersistence;
209 }
210
211 public void setGroupPersistence(GroupPersistence groupPersistence) {
212 this.groupPersistence = groupPersistence;
213 }
214
215 public GroupFinder getGroupFinder() {
216 return groupFinder;
217 }
218
219 public void setGroupFinder(GroupFinder groupFinder) {
220 this.groupFinder = groupFinder;
221 }
222
223 protected void runSQL(String sql) throws SystemException {
224 try {
225 PortalUtil.runSQL(sql);
226 }
227 catch (Exception e) {
228 throw new SystemException(e);
229 }
230 }
231
232 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryLocalService.impl")
233 protected BlogsEntryLocalService blogsEntryLocalService;
234 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryService.impl")
235 protected BlogsEntryService blogsEntryService;
236 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence.impl")
237 protected BlogsEntryPersistence blogsEntryPersistence;
238 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder.impl")
239 protected BlogsEntryFinder blogsEntryFinder;
240 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.impl")
241 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
242 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence.impl")
243 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
244 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder.impl")
245 protected BlogsStatsUserFinder blogsStatsUserFinder;
246 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
247 protected CounterLocalService counterLocalService;
248 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
249 protected CounterService counterService;
250 @BeanReference(name = "com.liferay.portal.service.GroupLocalService.impl")
251 protected GroupLocalService groupLocalService;
252 @BeanReference(name = "com.liferay.portal.service.GroupService.impl")
253 protected GroupService groupService;
254 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
255 protected GroupPersistence groupPersistence;
256 @BeanReference(name = "com.liferay.portal.service.persistence.GroupFinder.impl")
257 protected GroupFinder groupFinder;
258 }