001
014
015 package com.liferay.portlet.expando.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
034 import com.liferay.portlet.expando.service.ExpandoColumnService;
035 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
036 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
037 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
038 import com.liferay.portlet.expando.service.ExpandoValueService;
039 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
040 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
041 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
042 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
043
044 import javax.sql.DataSource;
045
046
049 public abstract class ExpandoColumnServiceBaseImpl extends PrincipalBean
050 implements ExpandoColumnService {
051 public ExpandoColumnLocalService getExpandoColumnLocalService() {
052 return expandoColumnLocalService;
053 }
054
055 public void setExpandoColumnLocalService(
056 ExpandoColumnLocalService expandoColumnLocalService) {
057 this.expandoColumnLocalService = expandoColumnLocalService;
058 }
059
060 public ExpandoColumnService getExpandoColumnService() {
061 return expandoColumnService;
062 }
063
064 public void setExpandoColumnService(
065 ExpandoColumnService expandoColumnService) {
066 this.expandoColumnService = expandoColumnService;
067 }
068
069 public ExpandoColumnPersistence getExpandoColumnPersistence() {
070 return expandoColumnPersistence;
071 }
072
073 public void setExpandoColumnPersistence(
074 ExpandoColumnPersistence expandoColumnPersistence) {
075 this.expandoColumnPersistence = expandoColumnPersistence;
076 }
077
078 public ExpandoRowLocalService getExpandoRowLocalService() {
079 return expandoRowLocalService;
080 }
081
082 public void setExpandoRowLocalService(
083 ExpandoRowLocalService expandoRowLocalService) {
084 this.expandoRowLocalService = expandoRowLocalService;
085 }
086
087 public ExpandoRowPersistence getExpandoRowPersistence() {
088 return expandoRowPersistence;
089 }
090
091 public void setExpandoRowPersistence(
092 ExpandoRowPersistence expandoRowPersistence) {
093 this.expandoRowPersistence = expandoRowPersistence;
094 }
095
096 public ExpandoTableLocalService getExpandoTableLocalService() {
097 return expandoTableLocalService;
098 }
099
100 public void setExpandoTableLocalService(
101 ExpandoTableLocalService expandoTableLocalService) {
102 this.expandoTableLocalService = expandoTableLocalService;
103 }
104
105 public ExpandoTablePersistence getExpandoTablePersistence() {
106 return expandoTablePersistence;
107 }
108
109 public void setExpandoTablePersistence(
110 ExpandoTablePersistence expandoTablePersistence) {
111 this.expandoTablePersistence = expandoTablePersistence;
112 }
113
114 public ExpandoValueLocalService getExpandoValueLocalService() {
115 return expandoValueLocalService;
116 }
117
118 public void setExpandoValueLocalService(
119 ExpandoValueLocalService expandoValueLocalService) {
120 this.expandoValueLocalService = expandoValueLocalService;
121 }
122
123 public ExpandoValueService getExpandoValueService() {
124 return expandoValueService;
125 }
126
127 public void setExpandoValueService(ExpandoValueService expandoValueService) {
128 this.expandoValueService = expandoValueService;
129 }
130
131 public ExpandoValuePersistence getExpandoValuePersistence() {
132 return expandoValuePersistence;
133 }
134
135 public void setExpandoValuePersistence(
136 ExpandoValuePersistence expandoValuePersistence) {
137 this.expandoValuePersistence = expandoValuePersistence;
138 }
139
140 public CounterLocalService getCounterLocalService() {
141 return counterLocalService;
142 }
143
144 public void setCounterLocalService(CounterLocalService counterLocalService) {
145 this.counterLocalService = counterLocalService;
146 }
147
148 public ResourceLocalService getResourceLocalService() {
149 return resourceLocalService;
150 }
151
152 public void setResourceLocalService(
153 ResourceLocalService resourceLocalService) {
154 this.resourceLocalService = resourceLocalService;
155 }
156
157 public ResourceService getResourceService() {
158 return resourceService;
159 }
160
161 public void setResourceService(ResourceService resourceService) {
162 this.resourceService = resourceService;
163 }
164
165 public ResourcePersistence getResourcePersistence() {
166 return resourcePersistence;
167 }
168
169 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
170 this.resourcePersistence = resourcePersistence;
171 }
172
173 public ResourceFinder getResourceFinder() {
174 return resourceFinder;
175 }
176
177 public void setResourceFinder(ResourceFinder resourceFinder) {
178 this.resourceFinder = resourceFinder;
179 }
180
181 public UserLocalService getUserLocalService() {
182 return userLocalService;
183 }
184
185 public void setUserLocalService(UserLocalService userLocalService) {
186 this.userLocalService = userLocalService;
187 }
188
189 public UserService getUserService() {
190 return userService;
191 }
192
193 public void setUserService(UserService userService) {
194 this.userService = userService;
195 }
196
197 public UserPersistence getUserPersistence() {
198 return userPersistence;
199 }
200
201 public void setUserPersistence(UserPersistence userPersistence) {
202 this.userPersistence = userPersistence;
203 }
204
205 public UserFinder getUserFinder() {
206 return userFinder;
207 }
208
209 public void setUserFinder(UserFinder userFinder) {
210 this.userFinder = userFinder;
211 }
212
213 protected void runSQL(String sql) throws SystemException {
214 try {
215 DataSource dataSource = expandoColumnPersistence.getDataSource();
216
217 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
218 sql, new int[0]);
219
220 sqlUpdate.update();
221 }
222 catch (Exception e) {
223 throw new SystemException(e);
224 }
225 }
226
227 @BeanReference(type = ExpandoColumnLocalService.class)
228 protected ExpandoColumnLocalService expandoColumnLocalService;
229 @BeanReference(type = ExpandoColumnService.class)
230 protected ExpandoColumnService expandoColumnService;
231 @BeanReference(type = ExpandoColumnPersistence.class)
232 protected ExpandoColumnPersistence expandoColumnPersistence;
233 @BeanReference(type = ExpandoRowLocalService.class)
234 protected ExpandoRowLocalService expandoRowLocalService;
235 @BeanReference(type = ExpandoRowPersistence.class)
236 protected ExpandoRowPersistence expandoRowPersistence;
237 @BeanReference(type = ExpandoTableLocalService.class)
238 protected ExpandoTableLocalService expandoTableLocalService;
239 @BeanReference(type = ExpandoTablePersistence.class)
240 protected ExpandoTablePersistence expandoTablePersistence;
241 @BeanReference(type = ExpandoValueLocalService.class)
242 protected ExpandoValueLocalService expandoValueLocalService;
243 @BeanReference(type = ExpandoValueService.class)
244 protected ExpandoValueService expandoValueService;
245 @BeanReference(type = ExpandoValuePersistence.class)
246 protected ExpandoValuePersistence expandoValuePersistence;
247 @BeanReference(type = CounterLocalService.class)
248 protected CounterLocalService counterLocalService;
249 @BeanReference(type = ResourceLocalService.class)
250 protected ResourceLocalService resourceLocalService;
251 @BeanReference(type = ResourceService.class)
252 protected ResourceService resourceService;
253 @BeanReference(type = ResourcePersistence.class)
254 protected ResourcePersistence resourcePersistence;
255 @BeanReference(type = ResourceFinder.class)
256 protected ResourceFinder resourceFinder;
257 @BeanReference(type = UserLocalService.class)
258 protected UserLocalService userLocalService;
259 @BeanReference(type = UserService.class)
260 protected UserService userService;
261 @BeanReference(type = UserPersistence.class)
262 protected UserPersistence userPersistence;
263 @BeanReference(type = UserFinder.class)
264 protected UserFinder userFinder;
265 }