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