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