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