1   /**
2    * Copyright (c) 2000-2009 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.CounterService;
27  
28  import com.liferay.portal.SystemException;
29  import com.liferay.portal.kernel.annotation.BeanReference;
30  import com.liferay.portal.kernel.dao.db.DB;
31  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.base.PrincipalBean;
37  import com.liferay.portal.service.persistence.ResourceFinder;
38  import com.liferay.portal.service.persistence.ResourcePersistence;
39  import com.liferay.portal.service.persistence.UserFinder;
40  import com.liferay.portal.service.persistence.UserPersistence;
41  
42  import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
43  import com.liferay.portlet.expando.service.ExpandoColumnService;
44  import com.liferay.portlet.expando.service.ExpandoRowLocalService;
45  import com.liferay.portlet.expando.service.ExpandoTableLocalService;
46  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
47  import com.liferay.portlet.expando.service.ExpandoValueService;
48  import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
49  import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
50  import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
51  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
52  
53  /**
54   * <a href="ExpandoColumnServiceBaseImpl.java.html"><b><i>View Source</i></b>
55   * </a>
56   *
57   * @author Brian Wing Shun Chan
58   */
59  public abstract class ExpandoColumnServiceBaseImpl extends PrincipalBean
60      implements ExpandoColumnService {
61      public ExpandoColumnLocalService getExpandoColumnLocalService() {
62          return expandoColumnLocalService;
63      }
64  
65      public void setExpandoColumnLocalService(
66          ExpandoColumnLocalService expandoColumnLocalService) {
67          this.expandoColumnLocalService = expandoColumnLocalService;
68      }
69  
70      public ExpandoColumnService getExpandoColumnService() {
71          return expandoColumnService;
72      }
73  
74      public void setExpandoColumnService(
75          ExpandoColumnService expandoColumnService) {
76          this.expandoColumnService = expandoColumnService;
77      }
78  
79      public ExpandoColumnPersistence getExpandoColumnPersistence() {
80          return expandoColumnPersistence;
81      }
82  
83      public void setExpandoColumnPersistence(
84          ExpandoColumnPersistence expandoColumnPersistence) {
85          this.expandoColumnPersistence = expandoColumnPersistence;
86      }
87  
88      public ExpandoRowLocalService getExpandoRowLocalService() {
89          return expandoRowLocalService;
90      }
91  
92      public void setExpandoRowLocalService(
93          ExpandoRowLocalService expandoRowLocalService) {
94          this.expandoRowLocalService = expandoRowLocalService;
95      }
96  
97      public ExpandoRowPersistence getExpandoRowPersistence() {
98          return expandoRowPersistence;
99      }
100 
101     public void setExpandoRowPersistence(
102         ExpandoRowPersistence expandoRowPersistence) {
103         this.expandoRowPersistence = expandoRowPersistence;
104     }
105 
106     public ExpandoTableLocalService getExpandoTableLocalService() {
107         return expandoTableLocalService;
108     }
109 
110     public void setExpandoTableLocalService(
111         ExpandoTableLocalService expandoTableLocalService) {
112         this.expandoTableLocalService = expandoTableLocalService;
113     }
114 
115     public ExpandoTablePersistence getExpandoTablePersistence() {
116         return expandoTablePersistence;
117     }
118 
119     public void setExpandoTablePersistence(
120         ExpandoTablePersistence expandoTablePersistence) {
121         this.expandoTablePersistence = expandoTablePersistence;
122     }
123 
124     public ExpandoValueLocalService getExpandoValueLocalService() {
125         return expandoValueLocalService;
126     }
127 
128     public void setExpandoValueLocalService(
129         ExpandoValueLocalService expandoValueLocalService) {
130         this.expandoValueLocalService = expandoValueLocalService;
131     }
132 
133     public ExpandoValueService getExpandoValueService() {
134         return expandoValueService;
135     }
136 
137     public void setExpandoValueService(ExpandoValueService expandoValueService) {
138         this.expandoValueService = expandoValueService;
139     }
140 
141     public ExpandoValuePersistence getExpandoValuePersistence() {
142         return expandoValuePersistence;
143     }
144 
145     public void setExpandoValuePersistence(
146         ExpandoValuePersistence expandoValuePersistence) {
147         this.expandoValuePersistence = expandoValuePersistence;
148     }
149 
150     public CounterLocalService getCounterLocalService() {
151         return counterLocalService;
152     }
153 
154     public void setCounterLocalService(CounterLocalService counterLocalService) {
155         this.counterLocalService = counterLocalService;
156     }
157 
158     public CounterService getCounterService() {
159         return counterService;
160     }
161 
162     public void setCounterService(CounterService counterService) {
163         this.counterService = counterService;
164     }
165 
166     public ResourceLocalService getResourceLocalService() {
167         return resourceLocalService;
168     }
169 
170     public void setResourceLocalService(
171         ResourceLocalService resourceLocalService) {
172         this.resourceLocalService = resourceLocalService;
173     }
174 
175     public ResourceService getResourceService() {
176         return resourceService;
177     }
178 
179     public void setResourceService(ResourceService resourceService) {
180         this.resourceService = resourceService;
181     }
182 
183     public ResourcePersistence getResourcePersistence() {
184         return resourcePersistence;
185     }
186 
187     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
188         this.resourcePersistence = resourcePersistence;
189     }
190 
191     public ResourceFinder getResourceFinder() {
192         return resourceFinder;
193     }
194 
195     public void setResourceFinder(ResourceFinder resourceFinder) {
196         this.resourceFinder = resourceFinder;
197     }
198 
199     public UserLocalService getUserLocalService() {
200         return userLocalService;
201     }
202 
203     public void setUserLocalService(UserLocalService userLocalService) {
204         this.userLocalService = userLocalService;
205     }
206 
207     public UserService getUserService() {
208         return userService;
209     }
210 
211     public void setUserService(UserService userService) {
212         this.userService = userService;
213     }
214 
215     public UserPersistence getUserPersistence() {
216         return userPersistence;
217     }
218 
219     public void setUserPersistence(UserPersistence userPersistence) {
220         this.userPersistence = userPersistence;
221     }
222 
223     public UserFinder getUserFinder() {
224         return userFinder;
225     }
226 
227     public void setUserFinder(UserFinder userFinder) {
228         this.userFinder = userFinder;
229     }
230 
231     protected void runSQL(String sql) throws SystemException {
232         try {
233             DB db = DBFactoryUtil.getDB();
234 
235             db.runSQL(sql);
236         }
237         catch (Exception e) {
238             throw new SystemException(e);
239         }
240     }
241 
242     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnLocalService")
243     protected ExpandoColumnLocalService expandoColumnLocalService;
244     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnService")
245     protected ExpandoColumnService expandoColumnService;
246     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence")
247     protected ExpandoColumnPersistence expandoColumnPersistence;
248     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoRowLocalService")
249     protected ExpandoRowLocalService expandoRowLocalService;
250     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence")
251     protected ExpandoRowPersistence expandoRowPersistence;
252     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoTableLocalService")
253     protected ExpandoTableLocalService expandoTableLocalService;
254     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence")
255     protected ExpandoTablePersistence expandoTablePersistence;
256     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService")
257     protected ExpandoValueLocalService expandoValueLocalService;
258     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService")
259     protected ExpandoValueService expandoValueService;
260     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence")
261     protected ExpandoValuePersistence expandoValuePersistence;
262     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
263     protected CounterLocalService counterLocalService;
264     @BeanReference(name = "com.liferay.counter.service.CounterService")
265     protected CounterService counterService;
266     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
267     protected ResourceLocalService resourceLocalService;
268     @BeanReference(name = "com.liferay.portal.service.ResourceService")
269     protected ResourceService resourceService;
270     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
271     protected ResourcePersistence resourcePersistence;
272     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
273     protected ResourceFinder resourceFinder;
274     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
275     protected UserLocalService userLocalService;
276     @BeanReference(name = "com.liferay.portal.service.UserService")
277     protected UserService userService;
278     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
279     protected UserPersistence userPersistence;
280     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
281     protected UserFinder userFinder;
282 }