/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portlet.social.service.base; import com.liferay.portal.kernel.bean.BeanReference; import com.liferay.portal.kernel.dao.db.DB; import com.liferay.portal.kernel.dao.db.DBManagerUtil; import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService; import com.liferay.portal.kernel.service.BaseServiceImpl; import com.liferay.portal.kernel.service.persistence.ClassNamePersistence; import com.liferay.portal.kernel.service.persistence.GroupFinder; import com.liferay.portal.kernel.service.persistence.GroupPersistence; import com.liferay.portal.kernel.util.PortalUtil; import com.liferay.social.kernel.model.SocialActivitySetting; import com.liferay.social.kernel.service.SocialActivitySettingService; import com.liferay.social.kernel.service.persistence.SocialActivitySettingPersistence; import javax.sql.DataSource; /** * Provides the base implementation for the social activity setting remote service. * * <p> * 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.social.service.impl.SocialActivitySettingServiceImpl}. * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl * @see com.liferay.social.kernel.service.SocialActivitySettingServiceUtil * @generated */ public abstract class SocialActivitySettingServiceBaseImpl extends BaseServiceImpl implements SocialActivitySettingService, IdentifiableOSGiService { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this class directly. Always use {@link com.liferay.social.kernel.service.SocialActivitySettingServiceUtil} to access the social activity setting remote service. */ /** * Returns the social activity setting local service. * * @return the social activity setting local service */ public com.liferay.social.kernel.service.SocialActivitySettingLocalService getSocialActivitySettingLocalService() { return socialActivitySettingLocalService; } /** * Sets the social activity setting local service. * * @param socialActivitySettingLocalService the social activity setting local service */ public void setSocialActivitySettingLocalService( com.liferay.social.kernel.service.SocialActivitySettingLocalService socialActivitySettingLocalService) { this.socialActivitySettingLocalService = socialActivitySettingLocalService; } /** * Returns the social activity setting remote service. * * @return the social activity setting remote service */ public SocialActivitySettingService getSocialActivitySettingService() { return socialActivitySettingService; } /** * Sets the social activity setting remote service. * * @param socialActivitySettingService the social activity setting remote service */ public void setSocialActivitySettingService( SocialActivitySettingService socialActivitySettingService) { this.socialActivitySettingService = socialActivitySettingService; } /** * Returns the social activity setting persistence. * * @return the social activity setting persistence */ public SocialActivitySettingPersistence getSocialActivitySettingPersistence() { return socialActivitySettingPersistence; } /** * Sets the social activity setting persistence. * * @param socialActivitySettingPersistence the social activity setting persistence */ public void setSocialActivitySettingPersistence( SocialActivitySettingPersistence socialActivitySettingPersistence) { this.socialActivitySettingPersistence = socialActivitySettingPersistence; } /** * Returns the counter local service. * * @return the counter local service */ public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() { return counterLocalService; } /** * Sets the counter local service. * * @param counterLocalService the counter local service */ public void setCounterLocalService( com.liferay.counter.kernel.service.CounterLocalService counterLocalService) { this.counterLocalService = counterLocalService; } /** * Returns the class name local service. * * @return the class name local service */ public com.liferay.portal.kernel.service.ClassNameLocalService getClassNameLocalService() { return classNameLocalService; } /** * Sets the class name local service. * * @param classNameLocalService the class name local service */ public void setClassNameLocalService( com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) { this.classNameLocalService = classNameLocalService; } /** * Returns the class name remote service. * * @return the class name remote service */ public com.liferay.portal.kernel.service.ClassNameService getClassNameService() { return classNameService; } /** * Sets the class name remote service. * * @param classNameService the class name remote service */ public void setClassNameService( com.liferay.portal.kernel.service.ClassNameService classNameService) { this.classNameService = classNameService; } /** * Returns the class name persistence. * * @return the class name persistence */ public ClassNamePersistence getClassNamePersistence() { return classNamePersistence; } /** * Sets the class name persistence. * * @param classNamePersistence the class name persistence */ public void setClassNamePersistence( ClassNamePersistence classNamePersistence) { this.classNamePersistence = classNamePersistence; } /** * Returns the group local service. * * @return the group local service */ public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() { return groupLocalService; } /** * Sets the group local service. * * @param groupLocalService the group local service */ public void setGroupLocalService( com.liferay.portal.kernel.service.GroupLocalService groupLocalService) { this.groupLocalService = groupLocalService; } /** * Returns the group remote service. * * @return the group remote service */ public com.liferay.portal.kernel.service.GroupService getGroupService() { return groupService; } /** * Sets the group remote service. * * @param groupService the group remote service */ public void setGroupService( com.liferay.portal.kernel.service.GroupService groupService) { this.groupService = groupService; } /** * Returns the group persistence. * * @return the group persistence */ public GroupPersistence getGroupPersistence() { return groupPersistence; } /** * Sets the group persistence. * * @param groupPersistence the group persistence */ public void setGroupPersistence(GroupPersistence groupPersistence) { this.groupPersistence = groupPersistence; } /** * Returns the group finder. * * @return the group finder */ public GroupFinder getGroupFinder() { return groupFinder; } /** * Sets the group finder. * * @param groupFinder the group finder */ public void setGroupFinder(GroupFinder groupFinder) { this.groupFinder = groupFinder; } public void afterPropertiesSet() { } public void destroy() { } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ @Override public String getOSGiServiceIdentifier() { return SocialActivitySettingService.class.getName(); } protected Class<?> getModelClass() { return SocialActivitySetting.class; } protected String getModelClassName() { return SocialActivitySetting.class.getName(); } /** * Performs a SQL query. * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = socialActivitySettingPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } } @BeanReference(type = com.liferay.social.kernel.service.SocialActivitySettingLocalService.class) protected com.liferay.social.kernel.service.SocialActivitySettingLocalService socialActivitySettingLocalService; @BeanReference(type = SocialActivitySettingService.class) protected SocialActivitySettingService socialActivitySettingService; @BeanReference(type = SocialActivitySettingPersistence.class) protected SocialActivitySettingPersistence socialActivitySettingPersistence; @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService; @BeanReference(type = com.liferay.portal.kernel.service.ClassNameLocalService.class) protected com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService; @BeanReference(type = com.liferay.portal.kernel.service.ClassNameService.class) protected com.liferay.portal.kernel.service.ClassNameService classNameService; @BeanReference(type = ClassNamePersistence.class) protected ClassNamePersistence classNamePersistence; @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class) protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService; @BeanReference(type = com.liferay.portal.kernel.service.GroupService.class) protected com.liferay.portal.kernel.service.GroupService groupService; @BeanReference(type = GroupPersistence.class) protected GroupPersistence groupPersistence; @BeanReference(type = GroupFinder.class) protected GroupFinder groupFinder; }