1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.expando.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.portal.kernel.annotation.BeanReference;
21  import com.liferay.portal.kernel.dao.db.DB;
22  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
23  import com.liferay.portal.kernel.exception.SystemException;
24  import com.liferay.portal.service.ResourceLocalService;
25  import com.liferay.portal.service.ResourceService;
26  import com.liferay.portal.service.UserLocalService;
27  import com.liferay.portal.service.UserService;
28  import com.liferay.portal.service.base.PrincipalBean;
29  import com.liferay.portal.service.persistence.ResourceFinder;
30  import com.liferay.portal.service.persistence.ResourcePersistence;
31  import com.liferay.portal.service.persistence.UserFinder;
32  import com.liferay.portal.service.persistence.UserPersistence;
33  
34  import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
35  import com.liferay.portlet.expando.service.ExpandoColumnService;
36  import com.liferay.portlet.expando.service.ExpandoRowLocalService;
37  import com.liferay.portlet.expando.service.ExpandoTableLocalService;
38  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
39  import com.liferay.portlet.expando.service.ExpandoValueService;
40  import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
41  import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
42  import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
43  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
44  
45  /**
46   * <a href="ExpandoColumnServiceBaseImpl.java.html"><b><i>View Source</i></b>
47   * </a>
48   *
49   * @author Brian Wing Shun Chan
50   */
51  public abstract class ExpandoColumnServiceBaseImpl extends PrincipalBean
52      implements ExpandoColumnService {
53      public ExpandoColumnLocalService getExpandoColumnLocalService() {
54          return expandoColumnLocalService;
55      }
56  
57      public void setExpandoColumnLocalService(
58          ExpandoColumnLocalService expandoColumnLocalService) {
59          this.expandoColumnLocalService = expandoColumnLocalService;
60      }
61  
62      public ExpandoColumnService getExpandoColumnService() {
63          return expandoColumnService;
64      }
65  
66      public void setExpandoColumnService(
67          ExpandoColumnService expandoColumnService) {
68          this.expandoColumnService = expandoColumnService;
69      }
70  
71      public ExpandoColumnPersistence getExpandoColumnPersistence() {
72          return expandoColumnPersistence;
73      }
74  
75      public void setExpandoColumnPersistence(
76          ExpandoColumnPersistence expandoColumnPersistence) {
77          this.expandoColumnPersistence = expandoColumnPersistence;
78      }
79  
80      public ExpandoRowLocalService getExpandoRowLocalService() {
81          return expandoRowLocalService;
82      }
83  
84      public void setExpandoRowLocalService(
85          ExpandoRowLocalService expandoRowLocalService) {
86          this.expandoRowLocalService = expandoRowLocalService;
87      }
88  
89      public ExpandoRowPersistence getExpandoRowPersistence() {
90          return expandoRowPersistence;
91      }
92  
93      public void setExpandoRowPersistence(
94          ExpandoRowPersistence expandoRowPersistence) {
95          this.expandoRowPersistence = expandoRowPersistence;
96      }
97  
98      public ExpandoTableLocalService getExpandoTableLocalService() {
99          return expandoTableLocalService;
100     }
101 
102     public void setExpandoTableLocalService(
103         ExpandoTableLocalService expandoTableLocalService) {
104         this.expandoTableLocalService = expandoTableLocalService;
105     }
106 
107     public ExpandoTablePersistence getExpandoTablePersistence() {
108         return expandoTablePersistence;
109     }
110 
111     public void setExpandoTablePersistence(
112         ExpandoTablePersistence expandoTablePersistence) {
113         this.expandoTablePersistence = expandoTablePersistence;
114     }
115 
116     public ExpandoValueLocalService getExpandoValueLocalService() {
117         return expandoValueLocalService;
118     }
119 
120     public void setExpandoValueLocalService(
121         ExpandoValueLocalService expandoValueLocalService) {
122         this.expandoValueLocalService = expandoValueLocalService;
123     }
124 
125     public ExpandoValueService getExpandoValueService() {
126         return expandoValueService;
127     }
128 
129     public void setExpandoValueService(ExpandoValueService expandoValueService) {
130         this.expandoValueService = expandoValueService;
131     }
132 
133     public ExpandoValuePersistence getExpandoValuePersistence() {
134         return expandoValuePersistence;
135     }
136 
137     public void setExpandoValuePersistence(
138         ExpandoValuePersistence expandoValuePersistence) {
139         this.expandoValuePersistence = expandoValuePersistence;
140     }
141 
142     public CounterLocalService getCounterLocalService() {
143         return counterLocalService;
144     }
145 
146     public void setCounterLocalService(CounterLocalService counterLocalService) {
147         this.counterLocalService = counterLocalService;
148     }
149 
150     public CounterService getCounterService() {
151         return counterService;
152     }
153 
154     public void setCounterService(CounterService counterService) {
155         this.counterService = counterService;
156     }
157 
158     public ResourceLocalService getResourceLocalService() {
159         return resourceLocalService;
160     }
161 
162     public void setResourceLocalService(
163         ResourceLocalService resourceLocalService) {
164         this.resourceLocalService = resourceLocalService;
165     }
166 
167     public ResourceService getResourceService() {
168         return resourceService;
169     }
170 
171     public void setResourceService(ResourceService resourceService) {
172         this.resourceService = resourceService;
173     }
174 
175     public ResourcePersistence getResourcePersistence() {
176         return resourcePersistence;
177     }
178 
179     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
180         this.resourcePersistence = resourcePersistence;
181     }
182 
183     public ResourceFinder getResourceFinder() {
184         return resourceFinder;
185     }
186 
187     public void setResourceFinder(ResourceFinder resourceFinder) {
188         this.resourceFinder = resourceFinder;
189     }
190 
191     public UserLocalService getUserLocalService() {
192         return userLocalService;
193     }
194 
195     public void setUserLocalService(UserLocalService userLocalService) {
196         this.userLocalService = userLocalService;
197     }
198 
199     public UserService getUserService() {
200         return userService;
201     }
202 
203     public void setUserService(UserService userService) {
204         this.userService = userService;
205     }
206 
207     public UserPersistence getUserPersistence() {
208         return userPersistence;
209     }
210 
211     public void setUserPersistence(UserPersistence userPersistence) {
212         this.userPersistence = userPersistence;
213     }
214 
215     public UserFinder getUserFinder() {
216         return userFinder;
217     }
218 
219     public void setUserFinder(UserFinder userFinder) {
220         this.userFinder = userFinder;
221     }
222 
223     protected void runSQL(String sql) throws SystemException {
224         try {
225             DB db = DBFactoryUtil.getDB();
226 
227             db.runSQL(sql);
228         }
229         catch (Exception e) {
230             throw new SystemException(e);
231         }
232     }
233 
234     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnLocalService")
235     protected ExpandoColumnLocalService expandoColumnLocalService;
236     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnService")
237     protected ExpandoColumnService expandoColumnService;
238     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence")
239     protected ExpandoColumnPersistence expandoColumnPersistence;
240     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoRowLocalService")
241     protected ExpandoRowLocalService expandoRowLocalService;
242     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence")
243     protected ExpandoRowPersistence expandoRowPersistence;
244     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoTableLocalService")
245     protected ExpandoTableLocalService expandoTableLocalService;
246     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence")
247     protected ExpandoTablePersistence expandoTablePersistence;
248     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService")
249     protected ExpandoValueLocalService expandoValueLocalService;
250     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService")
251     protected ExpandoValueService expandoValueService;
252     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence")
253     protected ExpandoValuePersistence expandoValuePersistence;
254     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
255     protected CounterLocalService counterLocalService;
256     @BeanReference(name = "com.liferay.counter.service.CounterService")
257     protected CounterService counterService;
258     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
259     protected ResourceLocalService resourceLocalService;
260     @BeanReference(name = "com.liferay.portal.service.ResourceService")
261     protected ResourceService resourceService;
262     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
263     protected ResourcePersistence resourcePersistence;
264     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
265     protected ResourceFinder resourceFinder;
266     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
267     protected UserLocalService userLocalService;
268     @BeanReference(name = "com.liferay.portal.service.UserService")
269     protected UserService userService;
270     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
271     protected UserPersistence userPersistence;
272     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
273     protected UserFinder userFinder;
274 }