001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
038     * Provides the base implementation for the asset tag property remote service.
039     *
040     * <p>
041     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl}.
042     * </p>
043     *
044     * @author Brian Wing Shun Chan
045     * @see com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl
046     * @see com.liferay.portlet.asset.service.AssetTagPropertyServiceUtil
047     * @generated
048     */
049    public abstract class AssetTagPropertyServiceBaseImpl extends BaseServiceImpl
050            implements AssetTagPropertyService, IdentifiableBean {
051            /*
052             * NOTE FOR DEVELOPERS:
053             *
054             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetTagPropertyServiceUtil} to access the asset tag property remote service.
055             */
056    
057            /**
058             * Returns the asset tag property local service.
059             *
060             * @return the asset tag property local service
061             */
062            public com.liferay.portlet.asset.service.AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
063                    return assetTagPropertyLocalService;
064            }
065    
066            /**
067             * Sets the asset tag property local service.
068             *
069             * @param assetTagPropertyLocalService the asset tag property local service
070             */
071            public void setAssetTagPropertyLocalService(
072                    com.liferay.portlet.asset.service.AssetTagPropertyLocalService assetTagPropertyLocalService) {
073                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
074            }
075    
076            /**
077             * Returns the asset tag property remote service.
078             *
079             * @return the asset tag property remote service
080             */
081            public com.liferay.portlet.asset.service.AssetTagPropertyService getAssetTagPropertyService() {
082                    return assetTagPropertyService;
083            }
084    
085            /**
086             * Sets the asset tag property remote service.
087             *
088             * @param assetTagPropertyService the asset tag property remote service
089             */
090            public void setAssetTagPropertyService(
091                    com.liferay.portlet.asset.service.AssetTagPropertyService assetTagPropertyService) {
092                    this.assetTagPropertyService = assetTagPropertyService;
093            }
094    
095            /**
096             * Returns the asset tag property persistence.
097             *
098             * @return the asset tag property persistence
099             */
100            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
101                    return assetTagPropertyPersistence;
102            }
103    
104            /**
105             * Sets the asset tag property persistence.
106             *
107             * @param assetTagPropertyPersistence the asset tag property persistence
108             */
109            public void setAssetTagPropertyPersistence(
110                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
111                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
112            }
113    
114            /**
115             * Returns the asset tag property finder.
116             *
117             * @return the asset tag property finder
118             */
119            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
120                    return assetTagPropertyFinder;
121            }
122    
123            /**
124             * Sets the asset tag property finder.
125             *
126             * @param assetTagPropertyFinder the asset tag property finder
127             */
128            public void setAssetTagPropertyFinder(
129                    AssetTagPropertyFinder assetTagPropertyFinder) {
130                    this.assetTagPropertyFinder = assetTagPropertyFinder;
131            }
132    
133            /**
134             * Returns the counter local service.
135             *
136             * @return the counter local service
137             */
138            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
139                    return counterLocalService;
140            }
141    
142            /**
143             * Sets the counter local service.
144             *
145             * @param counterLocalService the counter local service
146             */
147            public void setCounterLocalService(
148                    com.liferay.counter.service.CounterLocalService counterLocalService) {
149                    this.counterLocalService = counterLocalService;
150            }
151    
152            /**
153             * Returns the resource local service.
154             *
155             * @return the resource local service
156             */
157            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
158                    return resourceLocalService;
159            }
160    
161            /**
162             * Sets the resource local service.
163             *
164             * @param resourceLocalService the resource local service
165             */
166            public void setResourceLocalService(
167                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
168                    this.resourceLocalService = resourceLocalService;
169            }
170    
171            /**
172             * Returns the user local service.
173             *
174             * @return the user local service
175             */
176            public com.liferay.portal.service.UserLocalService getUserLocalService() {
177                    return userLocalService;
178            }
179    
180            /**
181             * Sets the user local service.
182             *
183             * @param userLocalService the user local service
184             */
185            public void setUserLocalService(
186                    com.liferay.portal.service.UserLocalService userLocalService) {
187                    this.userLocalService = userLocalService;
188            }
189    
190            /**
191             * Returns the user remote service.
192             *
193             * @return the user remote service
194             */
195            public com.liferay.portal.service.UserService getUserService() {
196                    return userService;
197            }
198    
199            /**
200             * Sets the user remote service.
201             *
202             * @param userService the user remote service
203             */
204            public void setUserService(
205                    com.liferay.portal.service.UserService userService) {
206                    this.userService = userService;
207            }
208    
209            /**
210             * Returns the user persistence.
211             *
212             * @return the user persistence
213             */
214            public UserPersistence getUserPersistence() {
215                    return userPersistence;
216            }
217    
218            /**
219             * Sets the user persistence.
220             *
221             * @param userPersistence the user persistence
222             */
223            public void setUserPersistence(UserPersistence userPersistence) {
224                    this.userPersistence = userPersistence;
225            }
226    
227            /**
228             * Returns the user finder.
229             *
230             * @return the user finder
231             */
232            public UserFinder getUserFinder() {
233                    return userFinder;
234            }
235    
236            /**
237             * Sets the user finder.
238             *
239             * @param userFinder the user finder
240             */
241            public void setUserFinder(UserFinder userFinder) {
242                    this.userFinder = userFinder;
243            }
244    
245            /**
246             * Returns the asset tag property key finder.
247             *
248             * @return the asset tag property key finder
249             */
250            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
251                    return assetTagPropertyKeyFinder;
252            }
253    
254            /**
255             * Sets the asset tag property key finder.
256             *
257             * @param assetTagPropertyKeyFinder the asset tag property key finder
258             */
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            /**
271             * Returns the Spring bean ID for this bean.
272             *
273             * @return the Spring bean ID for this bean
274             */
275            @Override
276            public String getBeanIdentifier() {
277                    return _beanIdentifier;
278            }
279    
280            /**
281             * Sets the Spring bean ID for this bean.
282             *
283             * @param beanIdentifier the Spring bean ID for this bean
284             */
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            /**
299             * Performs a SQL query.
300             *
301             * @param sql the sql query
302             */
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    }