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.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
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.kernel.module.framework.service.IdentifiableOSGiService;
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 IdentifiableOSGiService {
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 getOSGiServiceIdentifier() {
239 return AssetCategoryPropertyService.class.getName();
240 }
241
242 protected Class<?> getModelClass() {
243 return AssetCategoryProperty.class;
244 }
245
246 protected String getModelClassName() {
247 return AssetCategoryProperty.class.getName();
248 }
249
250
255 protected void runSQL(String sql) {
256 try {
257 DataSource dataSource = assetCategoryPropertyPersistence.getDataSource();
258
259 DB db = DBManagerUtil.getDB();
260
261 sql = db.buildSQL(sql);
262 sql = PortalUtil.transformSQL(sql);
263
264 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
265 sql, new int[0]);
266
267 sqlUpdate.update();
268 }
269 catch (Exception e) {
270 throw new SystemException(e);
271 }
272 }
273
274 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService.class)
275 protected com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
276 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyService.class)
277 protected AssetCategoryPropertyService assetCategoryPropertyService;
278 @BeanReference(type = AssetCategoryPropertyPersistence.class)
279 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
280 @BeanReference(type = AssetCategoryPropertyFinder.class)
281 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
282 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
283 protected com.liferay.counter.service.CounterLocalService counterLocalService;
284 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
285 protected com.liferay.portal.service.UserLocalService userLocalService;
286 @BeanReference(type = com.liferay.portal.service.UserService.class)
287 protected com.liferay.portal.service.UserService userService;
288 @BeanReference(type = UserPersistence.class)
289 protected UserPersistence userPersistence;
290 @BeanReference(type = UserFinder.class)
291 protected UserFinder userFinder;
292 }