001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.bean.IdentifiableBean;
019 import com.liferay.portal.kernel.dao.db.DB;
020 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.persistence.UserFinder;
026 import com.liferay.portal.service.persistence.UserPersistence;
027 import com.liferay.portal.util.PortalUtil;
028
029 import com.liferay.portlet.asset.model.AssetTagProperty;
030 import com.liferay.portlet.asset.service.AssetTagPropertyService;
031 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
032 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
033 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
034
035 import javax.sql.DataSource;
036
037
049 public abstract class AssetTagPropertyServiceBaseImpl extends BaseServiceImpl
050 implements AssetTagPropertyService, IdentifiableBean {
051
056
057
062 public com.liferay.portlet.asset.service.AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
063 return assetTagPropertyLocalService;
064 }
065
066
071 public void setAssetTagPropertyLocalService(
072 com.liferay.portlet.asset.service.AssetTagPropertyLocalService assetTagPropertyLocalService) {
073 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
074 }
075
076
081 public com.liferay.portlet.asset.service.AssetTagPropertyService getAssetTagPropertyService() {
082 return assetTagPropertyService;
083 }
084
085
090 public void setAssetTagPropertyService(
091 com.liferay.portlet.asset.service.AssetTagPropertyService assetTagPropertyService) {
092 this.assetTagPropertyService = assetTagPropertyService;
093 }
094
095
100 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
101 return assetTagPropertyPersistence;
102 }
103
104
109 public void setAssetTagPropertyPersistence(
110 AssetTagPropertyPersistence assetTagPropertyPersistence) {
111 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
112 }
113
114
119 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
120 return assetTagPropertyFinder;
121 }
122
123
128 public void setAssetTagPropertyFinder(
129 AssetTagPropertyFinder assetTagPropertyFinder) {
130 this.assetTagPropertyFinder = assetTagPropertyFinder;
131 }
132
133
138 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
139 return counterLocalService;
140 }
141
142
147 public void setCounterLocalService(
148 com.liferay.counter.service.CounterLocalService counterLocalService) {
149 this.counterLocalService = counterLocalService;
150 }
151
152
157 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
158 return resourceLocalService;
159 }
160
161
166 public void setResourceLocalService(
167 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
168 this.resourceLocalService = resourceLocalService;
169 }
170
171
176 public com.liferay.portal.service.UserLocalService getUserLocalService() {
177 return userLocalService;
178 }
179
180
185 public void setUserLocalService(
186 com.liferay.portal.service.UserLocalService userLocalService) {
187 this.userLocalService = userLocalService;
188 }
189
190
195 public com.liferay.portal.service.UserService getUserService() {
196 return userService;
197 }
198
199
204 public void setUserService(
205 com.liferay.portal.service.UserService userService) {
206 this.userService = userService;
207 }
208
209
214 public UserPersistence getUserPersistence() {
215 return userPersistence;
216 }
217
218
223 public void setUserPersistence(UserPersistence userPersistence) {
224 this.userPersistence = userPersistence;
225 }
226
227
232 public UserFinder getUserFinder() {
233 return userFinder;
234 }
235
236
241 public void setUserFinder(UserFinder userFinder) {
242 this.userFinder = userFinder;
243 }
244
245
250 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
251 return assetTagPropertyKeyFinder;
252 }
253
254
259 public void setAssetTagPropertyKeyFinder(
260 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
261 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
262 }
263
264 public void afterPropertiesSet() {
265 }
266
267 public void destroy() {
268 }
269
270
275 @Override
276 public String getBeanIdentifier() {
277 return _beanIdentifier;
278 }
279
280
285 @Override
286 public void setBeanIdentifier(String beanIdentifier) {
287 _beanIdentifier = beanIdentifier;
288 }
289
290 protected Class<?> getModelClass() {
291 return AssetTagProperty.class;
292 }
293
294 protected String getModelClassName() {
295 return AssetTagProperty.class.getName();
296 }
297
298
303 protected void runSQL(String sql) {
304 try {
305 DataSource dataSource = assetTagPropertyPersistence.getDataSource();
306
307 DB db = DBFactoryUtil.getDB();
308
309 sql = db.buildSQL(sql);
310 sql = PortalUtil.transformSQL(sql);
311
312 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
313 sql, new int[0]);
314
315 sqlUpdate.update();
316 }
317 catch (Exception e) {
318 throw new SystemException(e);
319 }
320 }
321
322 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagPropertyLocalService.class)
323 protected com.liferay.portlet.asset.service.AssetTagPropertyLocalService assetTagPropertyLocalService;
324 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagPropertyService.class)
325 protected com.liferay.portlet.asset.service.AssetTagPropertyService assetTagPropertyService;
326 @BeanReference(type = AssetTagPropertyPersistence.class)
327 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
328 @BeanReference(type = AssetTagPropertyFinder.class)
329 protected AssetTagPropertyFinder assetTagPropertyFinder;
330 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
331 protected com.liferay.counter.service.CounterLocalService counterLocalService;
332 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
333 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
334 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
335 protected com.liferay.portal.service.UserLocalService userLocalService;
336 @BeanReference(type = com.liferay.portal.service.UserService.class)
337 protected com.liferay.portal.service.UserService userService;
338 @BeanReference(type = UserPersistence.class)
339 protected UserPersistence userPersistence;
340 @BeanReference(type = UserFinder.class)
341 protected UserFinder userFinder;
342 @BeanReference(type = AssetTagPropertyKeyFinder.class)
343 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
344 private String _beanIdentifier;
345 }