1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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.service.impl.PrincipalBean;
31  
32  import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
33  import com.liferay.portlet.expando.service.ExpandoColumnLocalServiceFactory;
34  import com.liferay.portlet.expando.service.ExpandoColumnService;
35  import com.liferay.portlet.expando.service.ExpandoColumnServiceFactory;
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.ExpandoTableLocalService;
40  import com.liferay.portlet.expando.service.ExpandoTableLocalServiceFactory;
41  import com.liferay.portlet.expando.service.ExpandoTableService;
42  import com.liferay.portlet.expando.service.ExpandoTableServiceFactory;
43  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
44  import com.liferay.portlet.expando.service.ExpandoValueLocalServiceFactory;
45  import com.liferay.portlet.expando.service.ExpandoValueService;
46  import com.liferay.portlet.expando.service.ExpandoValueServiceFactory;
47  import com.liferay.portlet.expando.service.persistence.ExpandoColumnFinder;
48  import com.liferay.portlet.expando.service.persistence.ExpandoColumnFinderUtil;
49  import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
50  import com.liferay.portlet.expando.service.persistence.ExpandoColumnUtil;
51  import com.liferay.portlet.expando.service.persistence.ExpandoRowFinder;
52  import com.liferay.portlet.expando.service.persistence.ExpandoRowFinderUtil;
53  import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
54  import com.liferay.portlet.expando.service.persistence.ExpandoRowUtil;
55  import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
56  import com.liferay.portlet.expando.service.persistence.ExpandoTableUtil;
57  import com.liferay.portlet.expando.service.persistence.ExpandoValueFinder;
58  import com.liferay.portlet.expando.service.persistence.ExpandoValueFinderUtil;
59  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
60  import com.liferay.portlet.expando.service.persistence.ExpandoValueUtil;
61  
62  import org.springframework.beans.factory.InitializingBean;
63  
64  /**
65   * <a href="ExpandoRowServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
66   *
67   * @author Brian Wing Shun Chan
68   *
69   */
70  public abstract class ExpandoRowServiceBaseImpl extends PrincipalBean
71      implements ExpandoRowService, InitializingBean {
72      public ExpandoColumnLocalService getExpandoColumnLocalService() {
73          return expandoColumnLocalService;
74      }
75  
76      public void setExpandoColumnLocalService(
77          ExpandoColumnLocalService expandoColumnLocalService) {
78          this.expandoColumnLocalService = expandoColumnLocalService;
79      }
80  
81      public ExpandoColumnService getExpandoColumnService() {
82          return expandoColumnService;
83      }
84  
85      public void setExpandoColumnService(
86          ExpandoColumnService expandoColumnService) {
87          this.expandoColumnService = expandoColumnService;
88      }
89  
90      public ExpandoColumnPersistence getExpandoColumnPersistence() {
91          return expandoColumnPersistence;
92      }
93  
94      public void setExpandoColumnPersistence(
95          ExpandoColumnPersistence expandoColumnPersistence) {
96          this.expandoColumnPersistence = expandoColumnPersistence;
97      }
98  
99      public ExpandoColumnFinder getExpandoColumnFinder() {
100         return expandoColumnFinder;
101     }
102 
103     public void setExpandoColumnFinder(ExpandoColumnFinder expandoColumnFinder) {
104         this.expandoColumnFinder = expandoColumnFinder;
105     }
106 
107     public ExpandoRowLocalService getExpandoRowLocalService() {
108         return expandoRowLocalService;
109     }
110 
111     public void setExpandoRowLocalService(
112         ExpandoRowLocalService expandoRowLocalService) {
113         this.expandoRowLocalService = expandoRowLocalService;
114     }
115 
116     public ExpandoRowPersistence getExpandoRowPersistence() {
117         return expandoRowPersistence;
118     }
119 
120     public void setExpandoRowPersistence(
121         ExpandoRowPersistence expandoRowPersistence) {
122         this.expandoRowPersistence = expandoRowPersistence;
123     }
124 
125     public ExpandoRowFinder getExpandoRowFinder() {
126         return expandoRowFinder;
127     }
128 
129     public void setExpandoRowFinder(ExpandoRowFinder expandoRowFinder) {
130         this.expandoRowFinder = expandoRowFinder;
131     }
132 
133     public ExpandoTableLocalService getExpandoTableLocalService() {
134         return expandoTableLocalService;
135     }
136 
137     public void setExpandoTableLocalService(
138         ExpandoTableLocalService expandoTableLocalService) {
139         this.expandoTableLocalService = expandoTableLocalService;
140     }
141 
142     public ExpandoTableService getExpandoTableService() {
143         return expandoTableService;
144     }
145 
146     public void setExpandoTableService(ExpandoTableService expandoTableService) {
147         this.expandoTableService = expandoTableService;
148     }
149 
150     public ExpandoTablePersistence getExpandoTablePersistence() {
151         return expandoTablePersistence;
152     }
153 
154     public void setExpandoTablePersistence(
155         ExpandoTablePersistence expandoTablePersistence) {
156         this.expandoTablePersistence = expandoTablePersistence;
157     }
158 
159     public ExpandoValueLocalService getExpandoValueLocalService() {
160         return expandoValueLocalService;
161     }
162 
163     public void setExpandoValueLocalService(
164         ExpandoValueLocalService expandoValueLocalService) {
165         this.expandoValueLocalService = expandoValueLocalService;
166     }
167 
168     public ExpandoValueService getExpandoValueService() {
169         return expandoValueService;
170     }
171 
172     public void setExpandoValueService(ExpandoValueService expandoValueService) {
173         this.expandoValueService = expandoValueService;
174     }
175 
176     public ExpandoValuePersistence getExpandoValuePersistence() {
177         return expandoValuePersistence;
178     }
179 
180     public void setExpandoValuePersistence(
181         ExpandoValuePersistence expandoValuePersistence) {
182         this.expandoValuePersistence = expandoValuePersistence;
183     }
184 
185     public ExpandoValueFinder getExpandoValueFinder() {
186         return expandoValueFinder;
187     }
188 
189     public void setExpandoValueFinder(ExpandoValueFinder expandoValueFinder) {
190         this.expandoValueFinder = expandoValueFinder;
191     }
192 
193     public CounterLocalService getCounterLocalService() {
194         return counterLocalService;
195     }
196 
197     public void setCounterLocalService(CounterLocalService counterLocalService) {
198         this.counterLocalService = counterLocalService;
199     }
200 
201     public CounterService getCounterService() {
202         return counterService;
203     }
204 
205     public void setCounterService(CounterService counterService) {
206         this.counterService = counterService;
207     }
208 
209     public void afterPropertiesSet() {
210         if (expandoColumnLocalService == null) {
211             expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getImpl();
212         }
213 
214         if (expandoColumnService == null) {
215             expandoColumnService = ExpandoColumnServiceFactory.getImpl();
216         }
217 
218         if (expandoColumnPersistence == null) {
219             expandoColumnPersistence = ExpandoColumnUtil.getPersistence();
220         }
221 
222         if (expandoColumnFinder == null) {
223             expandoColumnFinder = ExpandoColumnFinderUtil.getFinder();
224         }
225 
226         if (expandoRowLocalService == null) {
227             expandoRowLocalService = ExpandoRowLocalServiceFactory.getImpl();
228         }
229 
230         if (expandoRowPersistence == null) {
231             expandoRowPersistence = ExpandoRowUtil.getPersistence();
232         }
233 
234         if (expandoRowFinder == null) {
235             expandoRowFinder = ExpandoRowFinderUtil.getFinder();
236         }
237 
238         if (expandoTableLocalService == null) {
239             expandoTableLocalService = ExpandoTableLocalServiceFactory.getImpl();
240         }
241 
242         if (expandoTableService == null) {
243             expandoTableService = ExpandoTableServiceFactory.getImpl();
244         }
245 
246         if (expandoTablePersistence == null) {
247             expandoTablePersistence = ExpandoTableUtil.getPersistence();
248         }
249 
250         if (expandoValueLocalService == null) {
251             expandoValueLocalService = ExpandoValueLocalServiceFactory.getImpl();
252         }
253 
254         if (expandoValueService == null) {
255             expandoValueService = ExpandoValueServiceFactory.getImpl();
256         }
257 
258         if (expandoValuePersistence == null) {
259             expandoValuePersistence = ExpandoValueUtil.getPersistence();
260         }
261 
262         if (expandoValueFinder == null) {
263             expandoValueFinder = ExpandoValueFinderUtil.getFinder();
264         }
265 
266         if (counterLocalService == null) {
267             counterLocalService = CounterLocalServiceFactory.getImpl();
268         }
269 
270         if (counterService == null) {
271             counterService = CounterServiceFactory.getImpl();
272         }
273     }
274 
275     protected ExpandoColumnLocalService expandoColumnLocalService;
276     protected ExpandoColumnService expandoColumnService;
277     protected ExpandoColumnPersistence expandoColumnPersistence;
278     protected ExpandoColumnFinder expandoColumnFinder;
279     protected ExpandoRowLocalService expandoRowLocalService;
280     protected ExpandoRowPersistence expandoRowPersistence;
281     protected ExpandoRowFinder expandoRowFinder;
282     protected ExpandoTableLocalService expandoTableLocalService;
283     protected ExpandoTableService expandoTableService;
284     protected ExpandoTablePersistence expandoTablePersistence;
285     protected ExpandoValueLocalService expandoValueLocalService;
286     protected ExpandoValueService expandoValueService;
287     protected ExpandoValuePersistence expandoValuePersistence;
288     protected ExpandoValueFinder expandoValueFinder;
289     protected CounterLocalService counterLocalService;
290     protected CounterService counterService;
291 }