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.service.base.PrincipalBean;
31  import com.liferay.portal.util.PortalUtil;
32  
33  import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
34  import com.liferay.portlet.expando.service.ExpandoColumnService;
35  import com.liferay.portlet.expando.service.ExpandoRowLocalService;
36  import com.liferay.portlet.expando.service.ExpandoTableLocalService;
37  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
38  import com.liferay.portlet.expando.service.ExpandoValueService;
39  import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
40  import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
41  import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
42  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
43  
44  /**
45   * <a href="ExpandoValueServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   */
50  public abstract class ExpandoValueServiceBaseImpl extends PrincipalBean
51      implements ExpandoValueService {
52      public ExpandoColumnLocalService getExpandoColumnLocalService() {
53          return expandoColumnLocalService;
54      }
55  
56      public void setExpandoColumnLocalService(
57          ExpandoColumnLocalService expandoColumnLocalService) {
58          this.expandoColumnLocalService = expandoColumnLocalService;
59      }
60  
61      public ExpandoColumnService getExpandoColumnService() {
62          return expandoColumnService;
63      }
64  
65      public void setExpandoColumnService(
66          ExpandoColumnService expandoColumnService) {
67          this.expandoColumnService = expandoColumnService;
68      }
69  
70      public ExpandoColumnPersistence getExpandoColumnPersistence() {
71          return expandoColumnPersistence;
72      }
73  
74      public void setExpandoColumnPersistence(
75          ExpandoColumnPersistence expandoColumnPersistence) {
76          this.expandoColumnPersistence = expandoColumnPersistence;
77      }
78  
79      public ExpandoRowLocalService getExpandoRowLocalService() {
80          return expandoRowLocalService;
81      }
82  
83      public void setExpandoRowLocalService(
84          ExpandoRowLocalService expandoRowLocalService) {
85          this.expandoRowLocalService = expandoRowLocalService;
86      }
87  
88      public ExpandoRowPersistence getExpandoRowPersistence() {
89          return expandoRowPersistence;
90      }
91  
92      public void setExpandoRowPersistence(
93          ExpandoRowPersistence expandoRowPersistence) {
94          this.expandoRowPersistence = expandoRowPersistence;
95      }
96  
97      public ExpandoTableLocalService getExpandoTableLocalService() {
98          return expandoTableLocalService;
99      }
100 
101     public void setExpandoTableLocalService(
102         ExpandoTableLocalService expandoTableLocalService) {
103         this.expandoTableLocalService = expandoTableLocalService;
104     }
105 
106     public ExpandoTablePersistence getExpandoTablePersistence() {
107         return expandoTablePersistence;
108     }
109 
110     public void setExpandoTablePersistence(
111         ExpandoTablePersistence expandoTablePersistence) {
112         this.expandoTablePersistence = expandoTablePersistence;
113     }
114 
115     public ExpandoValueLocalService getExpandoValueLocalService() {
116         return expandoValueLocalService;
117     }
118 
119     public void setExpandoValueLocalService(
120         ExpandoValueLocalService expandoValueLocalService) {
121         this.expandoValueLocalService = expandoValueLocalService;
122     }
123 
124     public ExpandoValueService getExpandoValueService() {
125         return expandoValueService;
126     }
127 
128     public void setExpandoValueService(ExpandoValueService expandoValueService) {
129         this.expandoValueService = expandoValueService;
130     }
131 
132     public ExpandoValuePersistence getExpandoValuePersistence() {
133         return expandoValuePersistence;
134     }
135 
136     public void setExpandoValuePersistence(
137         ExpandoValuePersistence expandoValuePersistence) {
138         this.expandoValuePersistence = expandoValuePersistence;
139     }
140 
141     public CounterLocalService getCounterLocalService() {
142         return counterLocalService;
143     }
144 
145     public void setCounterLocalService(CounterLocalService counterLocalService) {
146         this.counterLocalService = counterLocalService;
147     }
148 
149     public CounterService getCounterService() {
150         return counterService;
151     }
152 
153     public void setCounterService(CounterService counterService) {
154         this.counterService = counterService;
155     }
156 
157     protected void runSQL(String sql) throws SystemException {
158         try {
159             PortalUtil.runSQL(sql);
160         }
161         catch (Exception e) {
162             throw new SystemException(e);
163         }
164     }
165 
166     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnLocalService.impl")
167     protected ExpandoColumnLocalService expandoColumnLocalService;
168     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnService.impl")
169     protected ExpandoColumnService expandoColumnService;
170     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence.impl")
171     protected ExpandoColumnPersistence expandoColumnPersistence;
172     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoRowLocalService.impl")
173     protected ExpandoRowLocalService expandoRowLocalService;
174     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence.impl")
175     protected ExpandoRowPersistence expandoRowPersistence;
176     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoTableLocalService.impl")
177     protected ExpandoTableLocalService expandoTableLocalService;
178     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence.impl")
179     protected ExpandoTablePersistence expandoTablePersistence;
180     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService.impl")
181     protected ExpandoValueLocalService expandoValueLocalService;
182     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService.impl")
183     protected ExpandoValueService expandoValueService;
184     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence.impl")
185     protected ExpandoValuePersistence expandoValuePersistence;
186     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
187     protected CounterLocalService counterLocalService;
188     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
189     protected CounterService counterService;
190 }