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.AssetCategoryProperty;
030 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
031 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
032 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
033
034 import javax.sql.DataSource;
035
036
048 public abstract class AssetCategoryPropertyServiceBaseImpl
049 extends BaseServiceImpl implements AssetCategoryPropertyService,
050 IdentifiableBean {
051
056
057
062 public com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
063 return assetCategoryPropertyLocalService;
064 }
065
066
071 public void setAssetCategoryPropertyLocalService(
072 com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
073 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
074 }
075
076
081 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
082 return assetCategoryPropertyService;
083 }
084
085
090 public void setAssetCategoryPropertyService(
091 AssetCategoryPropertyService assetCategoryPropertyService) {
092 this.assetCategoryPropertyService = assetCategoryPropertyService;
093 }
094
095
100 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
101 return assetCategoryPropertyPersistence;
102 }
103
104
109 public void setAssetCategoryPropertyPersistence(
110 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
111 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
112 }
113
114
119 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
120 return assetCategoryPropertyFinder;
121 }
122
123
128 public void setAssetCategoryPropertyFinder(
129 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
130 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
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.UserLocalService getUserLocalService() {
158 return userLocalService;
159 }
160
161
166 public void setUserLocalService(
167 com.liferay.portal.service.UserLocalService userLocalService) {
168 this.userLocalService = userLocalService;
169 }
170
171
176 public com.liferay.portal.service.UserService getUserService() {
177 return userService;
178 }
179
180
185 public void setUserService(
186 com.liferay.portal.service.UserService userService) {
187 this.userService = userService;
188 }
189
190
195 public UserPersistence getUserPersistence() {
196 return userPersistence;
197 }
198
199
204 public void setUserPersistence(UserPersistence userPersistence) {
205 this.userPersistence = userPersistence;
206 }
207
208
213 public UserFinder getUserFinder() {
214 return userFinder;
215 }
216
217
222 public void setUserFinder(UserFinder userFinder) {
223 this.userFinder = userFinder;
224 }
225
226 public void afterPropertiesSet() {
227 }
228
229 public void destroy() {
230 }
231
232
237 @Override
238 public String getBeanIdentifier() {
239 return _beanIdentifier;
240 }
241
242
247 @Override
248 public void setBeanIdentifier(String beanIdentifier) {
249 _beanIdentifier = beanIdentifier;
250 }
251
252 protected Class<?> getModelClass() {
253 return AssetCategoryProperty.class;
254 }
255
256 protected String getModelClassName() {
257 return AssetCategoryProperty.class.getName();
258 }
259
260
265 protected void runSQL(String sql) {
266 try {
267 DataSource dataSource = assetCategoryPropertyPersistence.getDataSource();
268
269 DB db = DBFactoryUtil.getDB();
270
271 sql = db.buildSQL(sql);
272 sql = PortalUtil.transformSQL(sql);
273
274 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
275 sql, new int[0]);
276
277 sqlUpdate.update();
278 }
279 catch (Exception e) {
280 throw new SystemException(e);
281 }
282 }
283
284 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService.class)
285 protected com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
286 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyService.class)
287 protected AssetCategoryPropertyService assetCategoryPropertyService;
288 @BeanReference(type = AssetCategoryPropertyPersistence.class)
289 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
290 @BeanReference(type = AssetCategoryPropertyFinder.class)
291 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
292 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
293 protected com.liferay.counter.service.CounterLocalService counterLocalService;
294 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
295 protected com.liferay.portal.service.UserLocalService userLocalService;
296 @BeanReference(type = com.liferay.portal.service.UserService.class)
297 protected com.liferay.portal.service.UserService userService;
298 @BeanReference(type = UserPersistence.class)
299 protected UserPersistence userPersistence;
300 @BeanReference(type = UserFinder.class)
301 protected UserFinder userFinder;
302 private String _beanIdentifier;
303 }