com.liferay.polls.service.base.PollsQuestionServiceBaseImpl Maven / Gradle / Ivy
/**
* 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.polls.service.base;
import com.liferay.polls.model.PollsQuestion;
import com.liferay.polls.service.PollsQuestionService;
import com.liferay.polls.service.persistence.PollsChoicePersistence;
import com.liferay.polls.service.persistence.PollsQuestionFinder;
import com.liferay.polls.service.persistence.PollsQuestionPersistence;
import com.liferay.polls.service.persistence.PollsVotePersistence;
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.SystemEventPersistence;
import com.liferay.portal.kernel.service.persistence.UserPersistence;
import com.liferay.portal.kernel.util.PortalUtil;
import com.liferay.portal.spring.extender.service.ServiceReference;
import javax.sql.DataSource;
/**
* Provides the base implementation for the polls question remote service.
*
*
* 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.polls.service.impl.PollsQuestionServiceImpl}.
*
*
* @author Brian Wing Shun Chan
* @see com.liferay.polls.service.impl.PollsQuestionServiceImpl
* @see com.liferay.polls.service.PollsQuestionServiceUtil
* @generated
*/
public abstract class PollsQuestionServiceBaseImpl extends BaseServiceImpl
implements PollsQuestionService, IdentifiableOSGiService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. Always use {@link com.liferay.polls.service.PollsQuestionServiceUtil} to access the polls question remote service.
*/
/**
* Returns the polls question local service.
*
* @return the polls question local service
*/
public com.liferay.polls.service.PollsQuestionLocalService getPollsQuestionLocalService() {
return pollsQuestionLocalService;
}
/**
* Sets the polls question local service.
*
* @param pollsQuestionLocalService the polls question local service
*/
public void setPollsQuestionLocalService(
com.liferay.polls.service.PollsQuestionLocalService pollsQuestionLocalService) {
this.pollsQuestionLocalService = pollsQuestionLocalService;
}
/**
* Returns the polls question remote service.
*
* @return the polls question remote service
*/
public PollsQuestionService getPollsQuestionService() {
return pollsQuestionService;
}
/**
* Sets the polls question remote service.
*
* @param pollsQuestionService the polls question remote service
*/
public void setPollsQuestionService(
PollsQuestionService pollsQuestionService) {
this.pollsQuestionService = pollsQuestionService;
}
/**
* Returns the polls question persistence.
*
* @return the polls question persistence
*/
public PollsQuestionPersistence getPollsQuestionPersistence() {
return pollsQuestionPersistence;
}
/**
* Sets the polls question persistence.
*
* @param pollsQuestionPersistence the polls question persistence
*/
public void setPollsQuestionPersistence(
PollsQuestionPersistence pollsQuestionPersistence) {
this.pollsQuestionPersistence = pollsQuestionPersistence;
}
/**
* Returns the polls question finder.
*
* @return the polls question finder
*/
public PollsQuestionFinder getPollsQuestionFinder() {
return pollsQuestionFinder;
}
/**
* Sets the polls question finder.
*
* @param pollsQuestionFinder the polls question finder
*/
public void setPollsQuestionFinder(PollsQuestionFinder pollsQuestionFinder) {
this.pollsQuestionFinder = pollsQuestionFinder;
}
/**
* 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 polls choice local service.
*
* @return the polls choice local service
*/
public com.liferay.polls.service.PollsChoiceLocalService getPollsChoiceLocalService() {
return pollsChoiceLocalService;
}
/**
* Sets the polls choice local service.
*
* @param pollsChoiceLocalService the polls choice local service
*/
public void setPollsChoiceLocalService(
com.liferay.polls.service.PollsChoiceLocalService pollsChoiceLocalService) {
this.pollsChoiceLocalService = pollsChoiceLocalService;
}
/**
* Returns the polls choice remote service.
*
* @return the polls choice remote service
*/
public com.liferay.polls.service.PollsChoiceService getPollsChoiceService() {
return pollsChoiceService;
}
/**
* Sets the polls choice remote service.
*
* @param pollsChoiceService the polls choice remote service
*/
public void setPollsChoiceService(
com.liferay.polls.service.PollsChoiceService pollsChoiceService) {
this.pollsChoiceService = pollsChoiceService;
}
/**
* Returns the polls choice persistence.
*
* @return the polls choice persistence
*/
public PollsChoicePersistence getPollsChoicePersistence() {
return pollsChoicePersistence;
}
/**
* Sets the polls choice persistence.
*
* @param pollsChoicePersistence the polls choice persistence
*/
public void setPollsChoicePersistence(
PollsChoicePersistence pollsChoicePersistence) {
this.pollsChoicePersistence = pollsChoicePersistence;
}
/**
* Returns the resource local service.
*
* @return the resource local service
*/
public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
return resourceLocalService;
}
/**
* Sets the resource local service.
*
* @param resourceLocalService the resource local service
*/
public void setResourceLocalService(
com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
this.resourceLocalService = resourceLocalService;
}
/**
* Returns the system event local service.
*
* @return the system event local service
*/
public com.liferay.portal.kernel.service.SystemEventLocalService getSystemEventLocalService() {
return systemEventLocalService;
}
/**
* Sets the system event local service.
*
* @param systemEventLocalService the system event local service
*/
public void setSystemEventLocalService(
com.liferay.portal.kernel.service.SystemEventLocalService systemEventLocalService) {
this.systemEventLocalService = systemEventLocalService;
}
/**
* Returns the system event persistence.
*
* @return the system event persistence
*/
public SystemEventPersistence getSystemEventPersistence() {
return systemEventPersistence;
}
/**
* Sets the system event persistence.
*
* @param systemEventPersistence the system event persistence
*/
public void setSystemEventPersistence(
SystemEventPersistence systemEventPersistence) {
this.systemEventPersistence = systemEventPersistence;
}
/**
* Returns the user local service.
*
* @return the user local service
*/
public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
return userLocalService;
}
/**
* Sets the user local service.
*
* @param userLocalService the user local service
*/
public void setUserLocalService(
com.liferay.portal.kernel.service.UserLocalService userLocalService) {
this.userLocalService = userLocalService;
}
/**
* Returns the user remote service.
*
* @return the user remote service
*/
public com.liferay.portal.kernel.service.UserService getUserService() {
return userService;
}
/**
* Sets the user remote service.
*
* @param userService the user remote service
*/
public void setUserService(
com.liferay.portal.kernel.service.UserService userService) {
this.userService = userService;
}
/**
* Returns the user persistence.
*
* @return the user persistence
*/
public UserPersistence getUserPersistence() {
return userPersistence;
}
/**
* Sets the user persistence.
*
* @param userPersistence the user persistence
*/
public void setUserPersistence(UserPersistence userPersistence) {
this.userPersistence = userPersistence;
}
/**
* Returns the polls vote local service.
*
* @return the polls vote local service
*/
public com.liferay.polls.service.PollsVoteLocalService getPollsVoteLocalService() {
return pollsVoteLocalService;
}
/**
* Sets the polls vote local service.
*
* @param pollsVoteLocalService the polls vote local service
*/
public void setPollsVoteLocalService(
com.liferay.polls.service.PollsVoteLocalService pollsVoteLocalService) {
this.pollsVoteLocalService = pollsVoteLocalService;
}
/**
* Returns the polls vote remote service.
*
* @return the polls vote remote service
*/
public com.liferay.polls.service.PollsVoteService getPollsVoteService() {
return pollsVoteService;
}
/**
* Sets the polls vote remote service.
*
* @param pollsVoteService the polls vote remote service
*/
public void setPollsVoteService(
com.liferay.polls.service.PollsVoteService pollsVoteService) {
this.pollsVoteService = pollsVoteService;
}
/**
* Returns the polls vote persistence.
*
* @return the polls vote persistence
*/
public PollsVotePersistence getPollsVotePersistence() {
return pollsVotePersistence;
}
/**
* Sets the polls vote persistence.
*
* @param pollsVotePersistence the polls vote persistence
*/
public void setPollsVotePersistence(
PollsVotePersistence pollsVotePersistence) {
this.pollsVotePersistence = pollsVotePersistence;
}
public void afterPropertiesSet() {
}
public void destroy() {
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
@Override
public String getOSGiServiceIdentifier() {
return PollsQuestionService.class.getName();
}
protected Class> getModelClass() {
return PollsQuestion.class;
}
protected String getModelClassName() {
return PollsQuestion.class.getName();
}
/**
* Performs a SQL query.
*
* @param sql the sql query
*/
protected void runSQL(String sql) {
try {
DataSource dataSource = pollsQuestionPersistence.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.polls.service.PollsQuestionLocalService.class)
protected com.liferay.polls.service.PollsQuestionLocalService pollsQuestionLocalService;
@BeanReference(type = PollsQuestionService.class)
protected PollsQuestionService pollsQuestionService;
@BeanReference(type = PollsQuestionPersistence.class)
protected PollsQuestionPersistence pollsQuestionPersistence;
@BeanReference(type = PollsQuestionFinder.class)
protected PollsQuestionFinder pollsQuestionFinder;
@ServiceReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
@BeanReference(type = com.liferay.polls.service.PollsChoiceLocalService.class)
protected com.liferay.polls.service.PollsChoiceLocalService pollsChoiceLocalService;
@BeanReference(type = com.liferay.polls.service.PollsChoiceService.class)
protected com.liferay.polls.service.PollsChoiceService pollsChoiceService;
@BeanReference(type = PollsChoicePersistence.class)
protected PollsChoicePersistence pollsChoicePersistence;
@ServiceReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
@ServiceReference(type = com.liferay.portal.kernel.service.SystemEventLocalService.class)
protected com.liferay.portal.kernel.service.SystemEventLocalService systemEventLocalService;
@ServiceReference(type = SystemEventPersistence.class)
protected SystemEventPersistence systemEventPersistence;
@ServiceReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
@ServiceReference(type = com.liferay.portal.kernel.service.UserService.class)
protected com.liferay.portal.kernel.service.UserService userService;
@ServiceReference(type = UserPersistence.class)
protected UserPersistence userPersistence;
@BeanReference(type = com.liferay.polls.service.PollsVoteLocalService.class)
protected com.liferay.polls.service.PollsVoteLocalService pollsVoteLocalService;
@BeanReference(type = com.liferay.polls.service.PollsVoteService.class)
protected com.liferay.polls.service.PollsVoteService pollsVoteService;
@BeanReference(type = PollsVotePersistence.class)
protected PollsVotePersistence pollsVotePersistence;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy