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.ExpandoTable;
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.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 ExpandoTableLocalServiceBaseImpl
74 implements ExpandoTableLocalService, InitializingBean {
75 public ExpandoTable addExpandoTable(ExpandoTable expandoTable)
76 throws SystemException {
77 expandoTable.setNew(true);
78
79 return expandoTablePersistence.update(expandoTable, false);
80 }
81
82 public void deleteExpandoTable(long tableId)
83 throws PortalException, SystemException {
84 expandoTablePersistence.remove(tableId);
85 }
86
87 public void deleteExpandoTable(ExpandoTable expandoTable)
88 throws PortalException, SystemException {
89 expandoTablePersistence.remove(expandoTable);
90 }
91
92 public List<ExpandoTable> dynamicQuery(
93 DynamicQueryInitializer queryInitializer) throws SystemException {
94 return expandoTablePersistence.findWithDynamicQuery(queryInitializer);
95 }
96
97 public List<ExpandoTable> dynamicQuery(
98 DynamicQueryInitializer queryInitializer, int begin, int end)
99 throws SystemException {
100 return expandoTablePersistence.findWithDynamicQuery(queryInitializer,
101 begin, end);
102 }
103
104 public ExpandoTable updateExpandoTable(ExpandoTable expandoTable)
105 throws SystemException {
106 expandoTable.setNew(false);
107
108 return expandoTablePersistence.update(expandoTable, 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 ExpandoTablePersistence getExpandoTablePersistence() {
181 return expandoTablePersistence;
182 }
183
184 public void setExpandoTablePersistence(
185 ExpandoTablePersistence expandoTablePersistence) {
186 this.expandoTablePersistence = expandoTablePersistence;
187 }
188
189 public ExpandoValueLocalService getExpandoValueLocalService() {
190 return expandoValueLocalService;
191 }
192
193 public void setExpandoValueLocalService(
194 ExpandoValueLocalService expandoValueLocalService) {
195 this.expandoValueLocalService = expandoValueLocalService;
196 }
197
198 public ExpandoValueService getExpandoValueService() {
199 return expandoValueService;
200 }
201
202 public void setExpandoValueService(ExpandoValueService expandoValueService) {
203 this.expandoValueService = expandoValueService;
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 (expandoTablePersistence == null) {
273 expandoTablePersistence = ExpandoTableUtil.getPersistence();
274 }
275
276 if (expandoValueLocalService == null) {
277 expandoValueLocalService = ExpandoValueLocalServiceFactory.getImpl();
278 }
279
280 if (expandoValueService == null) {
281 expandoValueService = ExpandoValueServiceFactory.getImpl();
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 ExpandoTablePersistence expandoTablePersistence;
310 protected ExpandoValueLocalService expandoValueLocalService;
311 protected ExpandoValueService expandoValueService;
312 protected ExpandoValuePersistence expandoValuePersistence;
313 protected ExpandoValueFinder expandoValueFinder;
314 protected CounterLocalService counterLocalService;
315 protected CounterService counterService;
316 }