1
22
23 package com.liferay.portlet.expando.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterLocalServiceFactory;
27 import com.liferay.counter.service.CounterService;
28 import com.liferay.counter.service.CounterServiceFactory;
29
30 import com.liferay.portal.PortalException;
31 import com.liferay.portal.SystemException;
32 import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
33
34 import com.liferay.portlet.expando.model.ExpandoValue;
35 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
36 import com.liferay.portlet.expando.service.ExpandoColumnLocalServiceFactory;
37 import com.liferay.portlet.expando.service.ExpandoColumnService;
38 import com.liferay.portlet.expando.service.ExpandoColumnServiceFactory;
39 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
40 import com.liferay.portlet.expando.service.ExpandoRowLocalServiceFactory;
41 import com.liferay.portlet.expando.service.ExpandoRowService;
42 import com.liferay.portlet.expando.service.ExpandoRowServiceFactory;
43 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
44 import com.liferay.portlet.expando.service.ExpandoTableLocalServiceFactory;
45 import com.liferay.portlet.expando.service.ExpandoTableService;
46 import com.liferay.portlet.expando.service.ExpandoTableServiceFactory;
47 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
48 import com.liferay.portlet.expando.service.persistence.ExpandoColumnFinder;
49 import com.liferay.portlet.expando.service.persistence.ExpandoColumnFinderUtil;
50 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
51 import com.liferay.portlet.expando.service.persistence.ExpandoColumnUtil;
52 import com.liferay.portlet.expando.service.persistence.ExpandoRowFinder;
53 import com.liferay.portlet.expando.service.persistence.ExpandoRowFinderUtil;
54 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
55 import com.liferay.portlet.expando.service.persistence.ExpandoRowUtil;
56 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
57 import com.liferay.portlet.expando.service.persistence.ExpandoTableUtil;
58 import com.liferay.portlet.expando.service.persistence.ExpandoValueFinder;
59 import com.liferay.portlet.expando.service.persistence.ExpandoValueFinderUtil;
60 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
61 import com.liferay.portlet.expando.service.persistence.ExpandoValueUtil;
62
63 import org.springframework.beans.factory.InitializingBean;
64
65 import java.util.List;
66
67
73 public abstract class ExpandoValueLocalServiceBaseImpl
74 implements ExpandoValueLocalService, InitializingBean {
75 public ExpandoValue addExpandoValue(ExpandoValue expandoValue)
76 throws SystemException {
77 expandoValue.setNew(true);
78
79 return expandoValuePersistence.update(expandoValue, false);
80 }
81
82 public void deleteExpandoValue(long valueId)
83 throws PortalException, SystemException {
84 expandoValuePersistence.remove(valueId);
85 }
86
87 public void deleteExpandoValue(ExpandoValue expandoValue)
88 throws PortalException, SystemException {
89 expandoValuePersistence.remove(expandoValue);
90 }
91
92 public List<ExpandoValue> dynamicQuery(
93 DynamicQueryInitializer queryInitializer) throws SystemException {
94 return expandoValuePersistence.findWithDynamicQuery(queryInitializer);
95 }
96
97 public List<ExpandoValue> dynamicQuery(
98 DynamicQueryInitializer queryInitializer, int begin, int end)
99 throws SystemException {
100 return expandoValuePersistence.findWithDynamicQuery(queryInitializer,
101 begin, end);
102 }
103
104 public ExpandoValue updateExpandoValue(ExpandoValue expandoValue)
105 throws SystemException {
106 expandoValue.setNew(false);
107
108 return expandoValuePersistence.update(expandoValue, true);
109 }
110
111 public ExpandoColumnLocalService getExpandoColumnLocalService() {
112 return expandoColumnLocalService;
113 }
114
115 public void setExpandoColumnLocalService(
116 ExpandoColumnLocalService expandoColumnLocalService) {
117 this.expandoColumnLocalService = expandoColumnLocalService;
118 }
119
120 public ExpandoColumnService getExpandoColumnService() {
121 return expandoColumnService;
122 }
123
124 public void setExpandoColumnService(
125 ExpandoColumnService expandoColumnService) {
126 this.expandoColumnService = expandoColumnService;
127 }
128
129 public ExpandoColumnPersistence getExpandoColumnPersistence() {
130 return expandoColumnPersistence;
131 }
132
133 public void setExpandoColumnPersistence(
134 ExpandoColumnPersistence expandoColumnPersistence) {
135 this.expandoColumnPersistence = expandoColumnPersistence;
136 }
137
138 public ExpandoColumnFinder getExpandoColumnFinder() {
139 return expandoColumnFinder;
140 }
141
142 public void setExpandoColumnFinder(ExpandoColumnFinder expandoColumnFinder) {
143 this.expandoColumnFinder = expandoColumnFinder;
144 }
145
146 public ExpandoRowLocalService getExpandoRowLocalService() {
147 return expandoRowLocalService;
148 }
149
150 public void setExpandoRowLocalService(
151 ExpandoRowLocalService expandoRowLocalService) {
152 this.expandoRowLocalService = expandoRowLocalService;
153 }
154
155 public ExpandoRowService getExpandoRowService() {
156 return expandoRowService;
157 }
158
159 public void setExpandoRowService(ExpandoRowService expandoRowService) {
160 this.expandoRowService = expandoRowService;
161 }
162
163 public ExpandoRowPersistence getExpandoRowPersistence() {
164 return expandoRowPersistence;
165 }
166
167 public void setExpandoRowPersistence(
168 ExpandoRowPersistence expandoRowPersistence) {
169 this.expandoRowPersistence = expandoRowPersistence;
170 }
171
172 public ExpandoRowFinder getExpandoRowFinder() {
173 return expandoRowFinder;
174 }
175
176 public void setExpandoRowFinder(ExpandoRowFinder expandoRowFinder) {
177 this.expandoRowFinder = expandoRowFinder;
178 }
179
180 public ExpandoTableLocalService getExpandoTableLocalService() {
181 return expandoTableLocalService;
182 }
183
184 public void setExpandoTableLocalService(
185 ExpandoTableLocalService expandoTableLocalService) {
186 this.expandoTableLocalService = expandoTableLocalService;
187 }
188
189 public ExpandoTableService getExpandoTableService() {
190 return expandoTableService;
191 }
192
193 public void setExpandoTableService(ExpandoTableService expandoTableService) {
194 this.expandoTableService = expandoTableService;
195 }
196
197 public ExpandoTablePersistence getExpandoTablePersistence() {
198 return expandoTablePersistence;
199 }
200
201 public void setExpandoTablePersistence(
202 ExpandoTablePersistence expandoTablePersistence) {
203 this.expandoTablePersistence = expandoTablePersistence;
204 }
205
206 public ExpandoValuePersistence getExpandoValuePersistence() {
207 return expandoValuePersistence;
208 }
209
210 public void setExpandoValuePersistence(
211 ExpandoValuePersistence expandoValuePersistence) {
212 this.expandoValuePersistence = expandoValuePersistence;
213 }
214
215 public ExpandoValueFinder getExpandoValueFinder() {
216 return expandoValueFinder;
217 }
218
219 public void setExpandoValueFinder(ExpandoValueFinder expandoValueFinder) {
220 this.expandoValueFinder = expandoValueFinder;
221 }
222
223 public CounterLocalService getCounterLocalService() {
224 return counterLocalService;
225 }
226
227 public void setCounterLocalService(CounterLocalService counterLocalService) {
228 this.counterLocalService = counterLocalService;
229 }
230
231 public CounterService getCounterService() {
232 return counterService;
233 }
234
235 public void setCounterService(CounterService counterService) {
236 this.counterService = counterService;
237 }
238
239 public void afterPropertiesSet() {
240 if (expandoColumnLocalService == null) {
241 expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getImpl();
242 }
243
244 if (expandoColumnService == null) {
245 expandoColumnService = ExpandoColumnServiceFactory.getImpl();
246 }
247
248 if (expandoColumnPersistence == null) {
249 expandoColumnPersistence = ExpandoColumnUtil.getPersistence();
250 }
251
252 if (expandoColumnFinder == null) {
253 expandoColumnFinder = ExpandoColumnFinderUtil.getFinder();
254 }
255
256 if (expandoRowLocalService == null) {
257 expandoRowLocalService = ExpandoRowLocalServiceFactory.getImpl();
258 }
259
260 if (expandoRowService == null) {
261 expandoRowService = ExpandoRowServiceFactory.getImpl();
262 }
263
264 if (expandoRowPersistence == null) {
265 expandoRowPersistence = ExpandoRowUtil.getPersistence();
266 }
267
268 if (expandoRowFinder == null) {
269 expandoRowFinder = ExpandoRowFinderUtil.getFinder();
270 }
271
272 if (expandoTableLocalService == null) {
273 expandoTableLocalService = ExpandoTableLocalServiceFactory.getImpl();
274 }
275
276 if (expandoTableService == null) {
277 expandoTableService = ExpandoTableServiceFactory.getImpl();
278 }
279
280 if (expandoTablePersistence == null) {
281 expandoTablePersistence = ExpandoTableUtil.getPersistence();
282 }
283
284 if (expandoValuePersistence == null) {
285 expandoValuePersistence = ExpandoValueUtil.getPersistence();
286 }
287
288 if (expandoValueFinder == null) {
289 expandoValueFinder = ExpandoValueFinderUtil.getFinder();
290 }
291
292 if (counterLocalService == null) {
293 counterLocalService = CounterLocalServiceFactory.getImpl();
294 }
295
296 if (counterService == null) {
297 counterService = CounterServiceFactory.getImpl();
298 }
299 }
300
301 protected ExpandoColumnLocalService expandoColumnLocalService;
302 protected ExpandoColumnService expandoColumnService;
303 protected ExpandoColumnPersistence expandoColumnPersistence;
304 protected ExpandoColumnFinder expandoColumnFinder;
305 protected ExpandoRowLocalService expandoRowLocalService;
306 protected ExpandoRowService expandoRowService;
307 protected ExpandoRowPersistence expandoRowPersistence;
308 protected ExpandoRowFinder expandoRowFinder;
309 protected ExpandoTableLocalService expandoTableLocalService;
310 protected ExpandoTableService expandoTableService;
311 protected ExpandoTablePersistence expandoTablePersistence;
312 protected ExpandoValuePersistence expandoValuePersistence;
313 protected ExpandoValueFinder expandoValueFinder;
314 protected CounterLocalService counterLocalService;
315 protected CounterService counterService;
316 }