/** * Copyright (c) 2000-2013 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 org.liferay.jukebox.service.base; 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.BaseServiceImpl; import com.liferay.portal.service.persistence.CompanyPersistence; import com.liferay.portal.service.persistence.GroupPersistence; import com.liferay.portal.service.persistence.UserPersistence; import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence; import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence; import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence; import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence; import com.liferay.portlet.social.service.persistence.SocialActivityPersistence; import org.liferay.jukebox.model.Artist; import org.liferay.jukebox.service.ArtistService; import org.liferay.jukebox.service.persistence.AlbumPersistence; import org.liferay.jukebox.service.persistence.ArtistPersistence; import org.liferay.jukebox.service.persistence.SongPersistence; import javax.sql.DataSource; /** * Provides the base implementation for the artist 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 org.liferay.jukebox.service.impl.ArtistServiceImpl}. * </p> * * @author Julio Camarero * @see org.liferay.jukebox.service.impl.ArtistServiceImpl * @see org.liferay.jukebox.service.ArtistServiceUtil * @generated */ public abstract class ArtistServiceBaseImpl extends BaseServiceImpl implements ArtistService, IdentifiableBean { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this class directly. Always use {@link org.liferay.jukebox.service.ArtistServiceUtil} to access the artist remote service. */ /** * Returns the album local service. * * @return the album local service */ public org.liferay.jukebox.service.AlbumLocalService getAlbumLocalService() { return albumLocalService; } /** * Sets the album local service. * * @param albumLocalService the album local service */ public void setAlbumLocalService( org.liferay.jukebox.service.AlbumLocalService albumLocalService) { this.albumLocalService = albumLocalService; } /** * Returns the album remote service. * * @return the album remote service */ public org.liferay.jukebox.service.AlbumService getAlbumService() { return albumService; } /** * Sets the album remote service. * * @param albumService the album remote service */ public void setAlbumService( org.liferay.jukebox.service.AlbumService albumService) { this.albumService = albumService; } /** * Returns the album persistence. * * @return the album persistence */ public AlbumPersistence getAlbumPersistence() { return albumPersistence; } /** * Sets the album persistence. * * @param albumPersistence the album persistence */ public void setAlbumPersistence(AlbumPersistence albumPersistence) { this.albumPersistence = albumPersistence; } /** * Returns the artist local service. * * @return the artist local service */ public org.liferay.jukebox.service.ArtistLocalService getArtistLocalService() { return artistLocalService; } /** * Sets the artist local service. * * @param artistLocalService the artist local service */ public void setArtistLocalService( org.liferay.jukebox.service.ArtistLocalService artistLocalService) { this.artistLocalService = artistLocalService; } /** * Returns the artist remote service. * * @return the artist remote service */ public org.liferay.jukebox.service.ArtistService getArtistService() { return artistService; } /** * Sets the artist remote service. * * @param artistService the artist remote service */ public void setArtistService( org.liferay.jukebox.service.ArtistService artistService) { this.artistService = artistService; } /** * Returns the artist persistence. * * @return the artist persistence */ public ArtistPersistence getArtistPersistence() { return artistPersistence; } /** * Sets the artist persistence. * * @param artistPersistence the artist persistence */ public void setArtistPersistence(ArtistPersistence artistPersistence) { this.artistPersistence = artistPersistence; } /** * Returns the song local service. * * @return the song local service */ public org.liferay.jukebox.service.SongLocalService getSongLocalService() { return songLocalService; } /** * Sets the song local service. * * @param songLocalService the song local service */ public void setSongLocalService( org.liferay.jukebox.service.SongLocalService songLocalService) { this.songLocalService = songLocalService; } /** * Returns the song remote service. * * @return the song remote service */ public org.liferay.jukebox.service.SongService getSongService() { return songService; } /** * Sets the song remote service. * * @param songService the song remote service */ public void setSongService( org.liferay.jukebox.service.SongService songService) { this.songService = songService; } /** * Returns the song persistence. * * @return the song persistence */ public SongPersistence getSongPersistence() { return songPersistence; } /** * Sets the song persistence. * * @param songPersistence the song persistence */ public void setSongPersistence(SongPersistence songPersistence) { this.songPersistence = songPersistence; } /** * Returns the counter local service. * * @return the counter local service */ public com.liferay.counter.service.CounterLocalService getCounterLocalService() { return counterLocalService; } /** * Sets the counter local service. * * @param counterLocalService the counter local service */ public void setCounterLocalService( com.liferay.counter.service.CounterLocalService counterLocalService) { this.counterLocalService = counterLocalService; } /** * Returns the company local service. * * @return the company local service */ public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() { return companyLocalService; } /** * Sets the company local service. * * @param companyLocalService the company local service */ public void setCompanyLocalService( com.liferay.portal.service.CompanyLocalService companyLocalService) { this.companyLocalService = companyLocalService; } /** * Returns the company remote service. * * @return the company remote service */ public com.liferay.portal.service.CompanyService getCompanyService() { return companyService; } /** * Sets the company remote service. * * @param companyService the company remote service */ public void setCompanyService( com.liferay.portal.service.CompanyService companyService) { this.companyService = companyService; } /** * Returns the company persistence. * * @return the company persistence */ public CompanyPersistence getCompanyPersistence() { return companyPersistence; } /** * Sets the company persistence. * * @param companyPersistence the company persistence */ public void setCompanyPersistence(CompanyPersistence companyPersistence) { this.companyPersistence = companyPersistence; } /** * Returns the group local service. * * @return the group local service */ public com.liferay.portal.service.GroupLocalService getGroupLocalService() { return groupLocalService; } /** * Sets the group local service. * * @param groupLocalService the group local service */ public void setGroupLocalService( com.liferay.portal.service.GroupLocalService groupLocalService) { this.groupLocalService = groupLocalService; } /** * Returns the group remote service. * * @return the group remote service */ public com.liferay.portal.service.GroupService getGroupService() { return groupService; } /** * Sets the group remote service. * * @param groupService the group remote service */ public void setGroupService( com.liferay.portal.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 resource local service. * * @return the resource local service */ public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { return resourceLocalService; } /** * Sets the resource local service. * * @param resourceLocalService the resource local service */ public void setResourceLocalService( com.liferay.portal.service.ResourceLocalService resourceLocalService) { this.resourceLocalService = resourceLocalService; } /** * Returns the user local service. * * @return the user local service */ public com.liferay.portal.service.UserLocalService getUserLocalService() { return userLocalService; } /** * Sets the user local service. * * @param userLocalService the user local service */ public void setUserLocalService( com.liferay.portal.service.UserLocalService userLocalService) { this.userLocalService = userLocalService; } /** * Returns the user remote service. * * @return the user remote service */ public com.liferay.portal.service.UserService getUserService() { return userService; } /** * Sets the user remote service. * * @param userService the user remote service */ public void setUserService( com.liferay.portal.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 asset entry local service. * * @return the asset entry local service */ public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() { return assetEntryLocalService; } /** * Sets the asset entry local service. * * @param assetEntryLocalService the asset entry local service */ public void setAssetEntryLocalService( com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) { this.assetEntryLocalService = assetEntryLocalService; } /** * Returns the asset entry remote service. * * @return the asset entry remote service */ public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() { return assetEntryService; } /** * Sets the asset entry remote service. * * @param assetEntryService the asset entry remote service */ public void setAssetEntryService( com.liferay.portlet.asset.service.AssetEntryService assetEntryService) { this.assetEntryService = assetEntryService; } /** * Returns the asset entry persistence. * * @return the asset entry persistence */ public AssetEntryPersistence getAssetEntryPersistence() { return assetEntryPersistence; } /** * Sets the asset entry persistence. * * @param assetEntryPersistence the asset entry persistence */ public void setAssetEntryPersistence( AssetEntryPersistence assetEntryPersistence) { this.assetEntryPersistence = assetEntryPersistence; } /** * Returns the asset link local service. * * @return the asset link local service */ public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() { return assetLinkLocalService; } /** * Sets the asset link local service. * * @param assetLinkLocalService the asset link local service */ public void setAssetLinkLocalService( com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) { this.assetLinkLocalService = assetLinkLocalService; } /** * Returns the asset link persistence. * * @return the asset link persistence */ public AssetLinkPersistence getAssetLinkPersistence() { return assetLinkPersistence; } /** * Sets the asset link persistence. * * @param assetLinkPersistence the asset link persistence */ public void setAssetLinkPersistence( AssetLinkPersistence assetLinkPersistence) { this.assetLinkPersistence = assetLinkPersistence; } /** * Returns the expando value local service. * * @return the expando value local service */ public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() { return expandoValueLocalService; } /** * Sets the expando value local service. * * @param expandoValueLocalService the expando value local service */ public void setExpandoValueLocalService( com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) { this.expandoValueLocalService = expandoValueLocalService; } /** * Returns the expando value remote service. * * @return the expando value remote service */ public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() { return expandoValueService; } /** * Sets the expando value remote service. * * @param expandoValueService the expando value remote service */ public void setExpandoValueService( com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) { this.expandoValueService = expandoValueService; } /** * Returns 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; } /** * Returns the message-boards message local service. * * @return the message-boards message local service */ public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() { return mbMessageLocalService; } /** * Sets the message-boards message local service. * * @param mbMessageLocalService the message-boards message local service */ public void setMBMessageLocalService( com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) { this.mbMessageLocalService = mbMessageLocalService; } /** * Returns the message-boards message remote service. * * @return the message-boards message remote service */ public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() { return mbMessageService; } /** * Sets the message-boards message remote service. * * @param mbMessageService the message-boards message remote service */ public void setMBMessageService( com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) { this.mbMessageService = mbMessageService; } /** * Returns the message-boards message persistence. * * @return the message-boards message persistence */ public MBMessagePersistence getMBMessagePersistence() { return mbMessagePersistence; } /** * Sets the message-boards message persistence. * * @param mbMessagePersistence the message-boards message persistence */ public void setMBMessagePersistence( MBMessagePersistence mbMessagePersistence) { this.mbMessagePersistence = mbMessagePersistence; } /** * Returns the social activity local service. * * @return the social activity local service */ public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() { return socialActivityLocalService; } /** * Sets the social activity local service. * * @param socialActivityLocalService the social activity local service */ public void setSocialActivityLocalService( com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) { this.socialActivityLocalService = socialActivityLocalService; } /** * Returns the social activity remote service. * * @return the social activity remote service */ public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() { return socialActivityService; } /** * Sets the social activity remote service. * * @param socialActivityService the social activity remote service */ public void setSocialActivityService( com.liferay.portlet.social.service.SocialActivityService socialActivityService) { this.socialActivityService = socialActivityService; } /** * Returns the social activity persistence. * * @return the social activity persistence */ public SocialActivityPersistence getSocialActivityPersistence() { return socialActivityPersistence; } /** * Sets the social activity persistence. * * @param socialActivityPersistence the social activity persistence */ public void setSocialActivityPersistence( SocialActivityPersistence socialActivityPersistence) { this.socialActivityPersistence = socialActivityPersistence; } public void afterPropertiesSet() { Class<?> clazz = getClass(); _classLoader = clazz.getClassLoader(); } public void destroy() { } /** * Returns the Spring bean ID for this bean. * * @return the Spring bean ID for this bean */ @Override public String getBeanIdentifier() { return _beanIdentifier; } /** * Sets the Spring bean ID for this bean. * * @param beanIdentifier the Spring bean ID for this bean */ @Override public void setBeanIdentifier(String beanIdentifier) { _beanIdentifier = beanIdentifier; } @Override public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { Thread currentThread = Thread.currentThread(); ClassLoader contextClassLoader = currentThread.getContextClassLoader(); if (contextClassLoader != _classLoader) { currentThread.setContextClassLoader(_classLoader); } try { return _clpInvoker.invokeMethod(name, parameterTypes, arguments); } finally { if (contextClassLoader != _classLoader) { currentThread.setContextClassLoader(contextClassLoader); } } } protected Class<?> getModelClass() { return Artist.class; } protected String getModelClassName() { return Artist.class.getName(); } /** * Performs an SQL query. * * @param sql the sql query */ protected void runSQL(String sql) throws SystemException { try { DataSource dataSource = artistPersistence.getDataSource(); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql, new int[0]); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } } @BeanReference(type = org.liferay.jukebox.service.AlbumLocalService.class) protected org.liferay.jukebox.service.AlbumLocalService albumLocalService; @BeanReference(type = org.liferay.jukebox.service.AlbumService.class) protected org.liferay.jukebox.service.AlbumService albumService; @BeanReference(type = AlbumPersistence.class) protected AlbumPersistence albumPersistence; @BeanReference(type = org.liferay.jukebox.service.ArtistLocalService.class) protected org.liferay.jukebox.service.ArtistLocalService artistLocalService; @BeanReference(type = org.liferay.jukebox.service.ArtistService.class) protected org.liferay.jukebox.service.ArtistService artistService; @BeanReference(type = ArtistPersistence.class) protected ArtistPersistence artistPersistence; @BeanReference(type = org.liferay.jukebox.service.SongLocalService.class) protected org.liferay.jukebox.service.SongLocalService songLocalService; @BeanReference(type = org.liferay.jukebox.service.SongService.class) protected org.liferay.jukebox.service.SongService songService; @BeanReference(type = SongPersistence.class) protected SongPersistence songPersistence; @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) protected com.liferay.counter.service.CounterLocalService counterLocalService; @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class) protected com.liferay.portal.service.CompanyLocalService companyLocalService; @BeanReference(type = com.liferay.portal.service.CompanyService.class) protected com.liferay.portal.service.CompanyService companyService; @BeanReference(type = CompanyPersistence.class) protected CompanyPersistence companyPersistence; @BeanReference(type = com.liferay.portal.service.GroupLocalService.class) protected com.liferay.portal.service.GroupLocalService groupLocalService; @BeanReference(type = com.liferay.portal.service.GroupService.class) protected com.liferay.portal.service.GroupService groupService; @BeanReference(type = GroupPersistence.class) protected GroupPersistence groupPersistence; @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) protected com.liferay.portal.service.ResourceLocalService resourceLocalService; @BeanReference(type = com.liferay.portal.service.UserLocalService.class) protected com.liferay.portal.service.UserLocalService userLocalService; @BeanReference(type = com.liferay.portal.service.UserService.class) protected com.liferay.portal.service.UserService userService; @BeanReference(type = UserPersistence.class) protected UserPersistence userPersistence; @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class) protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService; @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class) protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService; @BeanReference(type = AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence; @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class) protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService; @BeanReference(type = AssetLinkPersistence.class) protected AssetLinkPersistence assetLinkPersistence; @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class) protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService; @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class) protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService; @BeanReference(type = ExpandoValuePersistence.class) protected ExpandoValuePersistence expandoValuePersistence; @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class) protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService; @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class) protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService; @BeanReference(type = MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence; @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class) protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService; @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class) protected com.liferay.portlet.social.service.SocialActivityService socialActivityService; @BeanReference(type = SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence; private String _beanIdentifier; private ClassLoader _classLoader; private ArtistServiceClpInvoker _clpInvoker = new ArtistServiceClpInvoker(); }