/portal-impl/src/com/liferay/portlet/expando/service/base/ExpandoValueServiceBaseImpl.java
https://github.com/viktorkovacs/liferay-portal-trunk · Java · 494 lines · 210 code · 50 blank · 234 comment · 0 complexity · ba7e40d9e75d47c7dd989ef028ad80c3 MD5 · raw file
- /**
- * Copyright (c) 2000-2011 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.expando.service.base;
- import com.liferay.counter.service.CounterLocalService;
- import com.liferay.portal.kernel.bean.BeanReference;
- import com.liferay.portal.kernel.bean.IdentifiableBean;
- 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.service.ResourceLocalService;
- import com.liferay.portal.service.ResourceService;
- import com.liferay.portal.service.UserLocalService;
- import com.liferay.portal.service.UserService;
- import com.liferay.portal.service.base.PrincipalBean;
- import com.liferay.portal.service.persistence.ResourceFinder;
- import com.liferay.portal.service.persistence.ResourcePersistence;
- import com.liferay.portal.service.persistence.UserFinder;
- import com.liferay.portal.service.persistence.UserPersistence;
- import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
- import com.liferay.portlet.expando.service.ExpandoColumnService;
- import com.liferay.portlet.expando.service.ExpandoRowLocalService;
- import com.liferay.portlet.expando.service.ExpandoTableLocalService;
- import com.liferay.portlet.expando.service.ExpandoValueLocalService;
- import com.liferay.portlet.expando.service.ExpandoValueService;
- import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
- import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
- import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
- import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
- import javax.sql.DataSource;
- /**
- * The base implementation of the expando value 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.expando.service.impl.ExpandoValueServiceImpl}.
- *
- * @author Brian Wing Shun Chan
- * @see com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl
- * @see com.liferay.portlet.expando.service.ExpandoValueServiceUtil
- * @generated
- */
- public abstract class ExpandoValueServiceBaseImpl extends PrincipalBean
- implements ExpandoValueService, IdentifiableBean {
- /*
- * NOTE FOR DEVELOPERS:
- *
- * Never modify or reference this class directly. Always use {@link com.liferay.portlet.expando.service.ExpandoValueServiceUtil} to access the expando value remote service.
- */
- /**
- * Gets the expando column local service.
- *
- * @return the expando column local service
- */
- public ExpandoColumnLocalService getExpandoColumnLocalService() {
- return expandoColumnLocalService;
- }
- /**
- * Sets the expando column local service.
- *
- * @param expandoColumnLocalService the expando column local service
- */
- public void setExpandoColumnLocalService(
- ExpandoColumnLocalService expandoColumnLocalService) {
- this.expandoColumnLocalService = expandoColumnLocalService;
- }
- /**
- * Gets the expando column remote service.
- *
- * @return the expando column remote service
- */
- public ExpandoColumnService getExpandoColumnService() {
- return expandoColumnService;
- }
- /**
- * Sets the expando column remote service.
- *
- * @param expandoColumnService the expando column remote service
- */
- public void setExpandoColumnService(
- ExpandoColumnService expandoColumnService) {
- this.expandoColumnService = expandoColumnService;
- }
- /**
- * Gets the expando column persistence.
- *
- * @return the expando column persistence
- */
- public ExpandoColumnPersistence getExpandoColumnPersistence() {
- return expandoColumnPersistence;
- }
- /**
- * Sets the expando column persistence.
- *
- * @param expandoColumnPersistence the expando column persistence
- */
- public void setExpandoColumnPersistence(
- ExpandoColumnPersistence expandoColumnPersistence) {
- this.expandoColumnPersistence = expandoColumnPersistence;
- }
- /**
- * Gets the expando row local service.
- *
- * @return the expando row local service
- */
- public ExpandoRowLocalService getExpandoRowLocalService() {
- return expandoRowLocalService;
- }
- /**
- * Sets the expando row local service.
- *
- * @param expandoRowLocalService the expando row local service
- */
- public void setExpandoRowLocalService(
- ExpandoRowLocalService expandoRowLocalService) {
- this.expandoRowLocalService = expandoRowLocalService;
- }
- /**
- * Gets the expando row persistence.
- *
- * @return the expando row persistence
- */
- public ExpandoRowPersistence getExpandoRowPersistence() {
- return expandoRowPersistence;
- }
- /**
- * Sets the expando row persistence.
- *
- * @param expandoRowPersistence the expando row persistence
- */
- public void setExpandoRowPersistence(
- ExpandoRowPersistence expandoRowPersistence) {
- this.expandoRowPersistence = expandoRowPersistence;
- }
- /**
- * Gets the expando table local service.
- *
- * @return the expando table local service
- */
- public ExpandoTableLocalService getExpandoTableLocalService() {
- return expandoTableLocalService;
- }
- /**
- * Sets the expando table local service.
- *
- * @param expandoTableLocalService the expando table local service
- */
- public void setExpandoTableLocalService(
- ExpandoTableLocalService expandoTableLocalService) {
- this.expandoTableLocalService = expandoTableLocalService;
- }
- /**
- * Gets the expando table persistence.
- *
- * @return the expando table persistence
- */
- public ExpandoTablePersistence getExpandoTablePersistence() {
- return expandoTablePersistence;
- }
- /**
- * Sets the expando table persistence.
- *
- * @param expandoTablePersistence the expando table persistence
- */
- public void setExpandoTablePersistence(
- ExpandoTablePersistence expandoTablePersistence) {
- this.expandoTablePersistence = expandoTablePersistence;
- }
- /**
- * Gets the expando value local service.
- *
- * @return the expando value local service
- */
- public ExpandoValueLocalService getExpandoValueLocalService() {
- return expandoValueLocalService;
- }
- /**
- * Sets the expando value local service.
- *
- * @param expandoValueLocalService the expando value local service
- */
- public void setExpandoValueLocalService(
- ExpandoValueLocalService expandoValueLocalService) {
- this.expandoValueLocalService = expandoValueLocalService;
- }
- /**
- * Gets the expando value remote service.
- *
- * @return the expando value remote service
- */
- public ExpandoValueService getExpandoValueService() {
- return expandoValueService;
- }
- /**
- * Sets the expando value remote service.
- *
- * @param expandoValueService the expando value remote service
- */
- public void setExpandoValueService(ExpandoValueService expandoValueService) {
- this.expandoValueService = expandoValueService;
- }
- /**
- * Gets the expando value persistence.
- *
- * @return the expando value persistence
- */
- public ExpandoValuePersistence getExpandoValuePersistence() {
- return expandoValuePersistence;
- }
- /**
- * Sets the expando value persistence.
- *
- * @param expandoValuePersistence the expando value persistence
- */
- public void setExpandoValuePersistence(
- ExpandoValuePersistence expandoValuePersistence) {
- this.expandoValuePersistence = expandoValuePersistence;
- }
- /**
- * Gets the counter local service.
- *
- * @return the counter local service
- */
- public CounterLocalService getCounterLocalService() {
- return counterLocalService;
- }
- /**
- * Sets the counter local service.
- *
- * @param counterLocalService the counter local service
- */
- public void setCounterLocalService(CounterLocalService counterLocalService) {
- this.counterLocalService = counterLocalService;
- }
- /**
- * Gets the resource local service.
- *
- * @return the resource local service
- */
- public ResourceLocalService getResourceLocalService() {
- return resourceLocalService;
- }
- /**
- * Sets the resource local service.
- *
- * @param resourceLocalService the resource local service
- */
- public void setResourceLocalService(
- ResourceLocalService resourceLocalService) {
- this.resourceLocalService = resourceLocalService;
- }
- /**
- * Gets the resource remote service.
- *
- * @return the resource remote service
- */
- public ResourceService getResourceService() {
- return resourceService;
- }
- /**
- * Sets the resource remote service.
- *
- * @param resourceService the resource remote service
- */
- public void setResourceService(ResourceService resourceService) {
- this.resourceService = resourceService;
- }
- /**
- * Gets the resource persistence.
- *
- * @return the resource persistence
- */
- public ResourcePersistence getResourcePersistence() {
- return resourcePersistence;
- }
- /**
- * Sets the resource persistence.
- *
- * @param resourcePersistence the resource persistence
- */
- public void setResourcePersistence(ResourcePersistence resourcePersistence) {
- this.resourcePersistence = resourcePersistence;
- }
- /**
- * Gets the resource finder.
- *
- * @return the resource finder
- */
- public ResourceFinder getResourceFinder() {
- return resourceFinder;
- }
- /**
- * Sets the resource finder.
- *
- * @param resourceFinder the resource finder
- */
- public void setResourceFinder(ResourceFinder resourceFinder) {
- this.resourceFinder = resourceFinder;
- }
- /**
- * Gets the user local service.
- *
- * @return the user local service
- */
- public UserLocalService getUserLocalService() {
- return userLocalService;
- }
- /**
- * Sets the user local service.
- *
- * @param userLocalService the user local service
- */
- public void setUserLocalService(UserLocalService userLocalService) {
- this.userLocalService = userLocalService;
- }
- /**
- * Gets the user remote service.
- *
- * @return the user remote service
- */
- public UserService getUserService() {
- return userService;
- }
- /**
- * Sets the user remote service.
- *
- * @param userService the user remote service
- */
- public void setUserService(UserService userService) {
- this.userService = userService;
- }
- /**
- * Gets 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;
- }
- /**
- * Gets the user finder.
- *
- * @return the user finder
- */
- public UserFinder getUserFinder() {
- return userFinder;
- }
- /**
- * Sets the user finder.
- *
- * @param userFinder the user finder
- */
- public void setUserFinder(UserFinder userFinder) {
- this.userFinder = userFinder;
- }
- /**
- * Gets the Spring bean ID for this bean.
- *
- * @return the Spring bean ID for this bean
- */
- public String getBeanIdentifier() {
- return _beanIdentifier;
- }
- /**
- * Sets the Spring bean ID for this bean.
- *
- * @param beanIdentifier the Spring bean ID for this bean
- */
- public void setBeanIdentifier(String beanIdentifier) {
- _beanIdentifier = beanIdentifier;
- }
- /**
- * Performs an SQL query.
- *
- * @param sql the sql query to perform
- */
- protected void runSQL(String sql) throws SystemException {
- try {
- DataSource dataSource = expandoValuePersistence.getDataSource();
- SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
- sql, new int[0]);
- sqlUpdate.update();
- }
- catch (Exception e) {
- throw new SystemException(e);
- }
- }
- @BeanReference(type = ExpandoColumnLocalService.class)
- protected ExpandoColumnLocalService expandoColumnLocalService;
- @BeanReference(type = ExpandoColumnService.class)
- protected ExpandoColumnService expandoColumnService;
- @BeanReference(type = ExpandoColumnPersistence.class)
- protected ExpandoColumnPersistence expandoColumnPersistence;
- @BeanReference(type = ExpandoRowLocalService.class)
- protected ExpandoRowLocalService expandoRowLocalService;
- @BeanReference(type = ExpandoRowPersistence.class)
- protected ExpandoRowPersistence expandoRowPersistence;
- @BeanReference(type = ExpandoTableLocalService.class)
- protected ExpandoTableLocalService expandoTableLocalService;
- @BeanReference(type = ExpandoTablePersistence.class)
- protected ExpandoTablePersistence expandoTablePersistence;
- @BeanReference(type = ExpandoValueLocalService.class)
- protected ExpandoValueLocalService expandoValueLocalService;
- @BeanReference(type = ExpandoValueService.class)
- protected ExpandoValueService expandoValueService;
- @BeanReference(type = ExpandoValuePersistence.class)
- protected ExpandoValuePersistence expandoValuePersistence;
- @BeanReference(type = CounterLocalService.class)
- protected CounterLocalService counterLocalService;
- @BeanReference(type = ResourceLocalService.class)
- protected ResourceLocalService resourceLocalService;
- @BeanReference(type = ResourceService.class)
- protected ResourceService resourceService;
- @BeanReference(type = ResourcePersistence.class)
- protected ResourcePersistence resourcePersistence;
- @BeanReference(type = ResourceFinder.class)
- protected ResourceFinder resourceFinder;
- @BeanReference(type = UserLocalService.class)
- protected UserLocalService userLocalService;
- @BeanReference(type = UserService.class)
- protected UserService userService;
- @BeanReference(type = UserPersistence.class)
- protected UserPersistence userPersistence;
- @BeanReference(type = UserFinder.class)
- protected UserFinder userFinder;
- private String _beanIdentifier;
- }