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