Liferay 6.0.5

com.liferay.portlet.ratings.service.base
Class RatingsStatsLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portlet.ratings.service.base.RatingsStatsLocalServiceBaseImpl
All Implemented Interfaces:
RatingsStatsLocalService
Direct Known Subclasses:
RatingsStatsLocalServiceImpl

public abstract class RatingsStatsLocalServiceBaseImpl
extends Object
implements RatingsStatsLocalService

The base implementation of the ratings stats local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in RatingsStatsLocalServiceImpl.

Never modify or reference this class directly. Always use RatingsStatsLocalServiceUtil to access the ratings stats local service.

See Also:
RatingsStatsLocalServiceImpl, RatingsStatsLocalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
protected  CounterLocalService counterLocalService
           
protected  RatingsEntryFinder ratingsEntryFinder
           
protected  RatingsEntryLocalService ratingsEntryLocalService
           
protected  RatingsEntryPersistence ratingsEntryPersistence
           
protected  RatingsEntryService ratingsEntryService
           
protected  RatingsStatsFinder ratingsStatsFinder
           
protected  RatingsStatsLocalService ratingsStatsLocalService
           
protected  RatingsStatsPersistence ratingsStatsPersistence
           
protected  ResourceFinder resourceFinder
           
protected  ResourceLocalService resourceLocalService
           
protected  ResourcePersistence resourcePersistence
           
protected  ResourceService resourceService
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  UserService userService
           
 
Constructor Summary
RatingsStatsLocalServiceBaseImpl()
           
 
Method Summary
 RatingsStats addRatingsStats(RatingsStats ratingsStats)
          Adds the ratings stats to the database.
 RatingsStats createRatingsStats(long statsId)
          Creates a new ratings stats with the primary key.
 void deleteRatingsStats(long statsId)
          Deletes the ratings stats with the primary key from the database.
 void deleteRatingsStats(RatingsStats ratingsStats)
          Deletes the ratings stats from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 CounterLocalService getCounterLocalService()
          Gets the counter local service.
 RatingsEntryFinder getRatingsEntryFinder()
          Gets the ratings entry finder.
 RatingsEntryLocalService getRatingsEntryLocalService()
          Gets the ratings entry local service.
 RatingsEntryPersistence getRatingsEntryPersistence()
          Gets the ratings entry persistence.
 RatingsEntryService getRatingsEntryService()
          Gets the ratings entry remote service.
 RatingsStats getRatingsStats(long statsId)
          Gets the ratings stats with the primary key.
 List<RatingsStats> getRatingsStatses(int start, int end)
          Gets a range of all the ratings statses.
 int getRatingsStatsesCount()
          Gets the number of ratings statses.
 RatingsStatsFinder getRatingsStatsFinder()
          Gets the ratings stats finder.
 RatingsStatsLocalService getRatingsStatsLocalService()
          Gets the ratings stats local service.
 RatingsStatsPersistence getRatingsStatsPersistence()
          Gets the ratings stats persistence.
 ResourceFinder getResourceFinder()
          Gets the resource finder.
 ResourceLocalService getResourceLocalService()
          Gets the resource local service.
 ResourcePersistence getResourcePersistence()
          Gets the resource persistence.
 ResourceService getResourceService()
          Gets the resource remote service.
 UserFinder getUserFinder()
          Gets the user finder.
 UserLocalService getUserLocalService()
          Gets the user local service.
 UserPersistence getUserPersistence()
          Gets the user persistence.
 UserService getUserService()
          Gets the user remote service.
protected  void runSQL(String sql)
          Performs an SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder)
          Sets the ratings entry finder.
 void setRatingsEntryLocalService(RatingsEntryLocalService ratingsEntryLocalService)
          Sets the ratings entry local service.
 void setRatingsEntryPersistence(RatingsEntryPersistence ratingsEntryPersistence)
          Sets the ratings entry persistence.
 void setRatingsEntryService(RatingsEntryService ratingsEntryService)
          Sets the ratings entry remote service.
 void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder)
          Sets the ratings stats finder.
 void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)
          Sets the ratings stats local service.
 void setRatingsStatsPersistence(RatingsStatsPersistence ratingsStatsPersistence)
          Sets the ratings stats persistence.
 void setResourceFinder(ResourceFinder resourceFinder)
          Sets the resource finder.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setResourcePersistence(ResourcePersistence resourcePersistence)
          Sets the resource persistence.
 void setResourceService(ResourceService resourceService)
          Sets the resource remote service.
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 void setUserService(UserService userService)
          Sets the user remote service.
 RatingsStats updateRatingsStats(RatingsStats ratingsStats)
          Updates the ratings stats in the database.
 RatingsStats updateRatingsStats(RatingsStats ratingsStats, boolean merge)
          Updates the ratings stats in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.ratings.service.RatingsStatsLocalService
addStats, deleteStats, getStats, getStats, getStats
 

Field Detail

ratingsEntryLocalService

@BeanReference(type=RatingsEntryLocalService.class)
protected RatingsEntryLocalService ratingsEntryLocalService

ratingsEntryService

@BeanReference(type=RatingsEntryService.class)
protected RatingsEntryService ratingsEntryService

ratingsEntryPersistence

@BeanReference(type=RatingsEntryPersistence.class)
protected RatingsEntryPersistence ratingsEntryPersistence

ratingsEntryFinder

@BeanReference(type=RatingsEntryFinder.class)
protected RatingsEntryFinder ratingsEntryFinder

ratingsStatsLocalService

@BeanReference(type=RatingsStatsLocalService.class)
protected RatingsStatsLocalService ratingsStatsLocalService

ratingsStatsPersistence

@BeanReference(type=RatingsStatsPersistence.class)
protected RatingsStatsPersistence ratingsStatsPersistence

ratingsStatsFinder

@BeanReference(type=RatingsStatsFinder.class)
protected RatingsStatsFinder ratingsStatsFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

resourceService

@BeanReference(type=ResourceService.class)
protected ResourceService resourceService

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

resourceFinder

@BeanReference(type=ResourceFinder.class)
protected ResourceFinder resourceFinder

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userService

@BeanReference(type=UserService.class)
protected UserService userService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder
Constructor Detail

RatingsStatsLocalServiceBaseImpl

public RatingsStatsLocalServiceBaseImpl()
Method Detail

addRatingsStats

public RatingsStats addRatingsStats(RatingsStats ratingsStats)
                             throws SystemException
Adds the ratings stats to the database. Also notifies the appropriate model listeners.

Specified by:
addRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats to add
Returns:
the ratings stats that was added
Throws:
SystemException - if a system exception occurred

createRatingsStats

public RatingsStats createRatingsStats(long statsId)
Creates a new ratings stats with the primary key. Does not add the ratings stats to the database.

Specified by:
createRatingsStats in interface RatingsStatsLocalService
Parameters:
statsId - the primary key for the new ratings stats
Returns:
the new ratings stats

deleteRatingsStats

public void deleteRatingsStats(long statsId)
                        throws PortalException,
                               SystemException
Deletes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteRatingsStats in interface RatingsStatsLocalService
Parameters:
statsId - the primary key of the ratings stats to delete
Throws:
PortalException - if a ratings stats with the primary key could not be found
SystemException - if a system exception occurred

deleteRatingsStats

public void deleteRatingsStats(RatingsStats ratingsStats)
                        throws SystemException
Deletes the ratings stats from the database. Also notifies the appropriate model listeners.

Specified by:
deleteRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getRatingsStats

public RatingsStats getRatingsStats(long statsId)
                             throws PortalException,
                                    SystemException
Gets the ratings stats with the primary key.

Specified by:
getRatingsStats in interface RatingsStatsLocalService
Parameters:
statsId - the primary key of the ratings stats to get
Returns:
the ratings stats
Throws:
PortalException - if a ratings stats with the primary key could not be found
SystemException - if a system exception occurred

getRatingsStatses

public List<RatingsStats> getRatingsStatses(int start,
                                            int end)
                                     throws SystemException
Gets a range of all the ratings statses.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getRatingsStatses in interface RatingsStatsLocalService
Parameters:
start - the lower bound of the range of ratings statses to return
end - the upper bound of the range of ratings statses to return (not inclusive)
Returns:
the range of ratings statses
Throws:
SystemException - if a system exception occurred

getRatingsStatsesCount

public int getRatingsStatsesCount()
                           throws SystemException
Gets the number of ratings statses.

Specified by:
getRatingsStatsesCount in interface RatingsStatsLocalService
Returns:
the number of ratings statses
Throws:
SystemException - if a system exception occurred

updateRatingsStats

public RatingsStats updateRatingsStats(RatingsStats ratingsStats)
                                throws SystemException
Updates the ratings stats in the database. Also notifies the appropriate model listeners.

Specified by:
updateRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats to update
Returns:
the ratings stats that was updated
Throws:
SystemException - if a system exception occurred

updateRatingsStats

public RatingsStats updateRatingsStats(RatingsStats ratingsStats,
                                       boolean merge)
                                throws SystemException
Updates the ratings stats in the database. Also notifies the appropriate model listeners.

Specified by:
updateRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats to update
merge - whether to merge the ratings stats with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the ratings stats that was updated
Throws:
SystemException - if a system exception occurred

getRatingsEntryLocalService

public RatingsEntryLocalService getRatingsEntryLocalService()
Gets the ratings entry local service.

Returns:
the ratings entry local service

setRatingsEntryLocalService

public void setRatingsEntryLocalService(RatingsEntryLocalService ratingsEntryLocalService)
Sets the ratings entry local service.

Parameters:
ratingsEntryLocalService - the ratings entry local service

getRatingsEntryService

public RatingsEntryService getRatingsEntryService()
Gets the ratings entry remote service.

Returns:
the ratings entry remote service

setRatingsEntryService

public void setRatingsEntryService(RatingsEntryService ratingsEntryService)
Sets the ratings entry remote service.

Parameters:
ratingsEntryService - the ratings entry remote service

getRatingsEntryPersistence

public RatingsEntryPersistence getRatingsEntryPersistence()
Gets the ratings entry persistence.

Returns:
the ratings entry persistence

setRatingsEntryPersistence

public void setRatingsEntryPersistence(RatingsEntryPersistence ratingsEntryPersistence)
Sets the ratings entry persistence.

Parameters:
ratingsEntryPersistence - the ratings entry persistence

getRatingsEntryFinder

public RatingsEntryFinder getRatingsEntryFinder()
Gets the ratings entry finder.

Returns:
the ratings entry finder

setRatingsEntryFinder

public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder)
Sets the ratings entry finder.

Parameters:
ratingsEntryFinder - the ratings entry finder

getRatingsStatsLocalService

public RatingsStatsLocalService getRatingsStatsLocalService()
Gets the ratings stats local service.

Returns:
the ratings stats local service

setRatingsStatsLocalService

public void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)
Sets the ratings stats local service.

Parameters:
ratingsStatsLocalService - the ratings stats local service

getRatingsStatsPersistence

public RatingsStatsPersistence getRatingsStatsPersistence()
Gets the ratings stats persistence.

Returns:
the ratings stats persistence

setRatingsStatsPersistence

public void setRatingsStatsPersistence(RatingsStatsPersistence ratingsStatsPersistence)
Sets the ratings stats persistence.

Parameters:
ratingsStatsPersistence - the ratings stats persistence

getRatingsStatsFinder

public RatingsStatsFinder getRatingsStatsFinder()
Gets the ratings stats finder.

Returns:
the ratings stats finder

setRatingsStatsFinder

public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder)
Sets the ratings stats finder.

Parameters:
ratingsStatsFinder - the ratings stats finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Gets the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Gets the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getResourceService

public ResourceService getResourceService()
Gets the resource remote service.

Returns:
the resource remote service

setResourceService

public void setResourceService(ResourceService resourceService)
Sets the resource remote service.

Parameters:
resourceService - the resource remote service

getResourcePersistence

public ResourcePersistence getResourcePersistence()
Gets the resource persistence.

Returns:
the resource persistence

setResourcePersistence

public void setResourcePersistence(ResourcePersistence resourcePersistence)
Sets the resource persistence.

Parameters:
resourcePersistence - the resource persistence

getResourceFinder

public ResourceFinder getResourceFinder()
Gets the resource finder.

Returns:
the resource finder

setResourceFinder

public void setResourceFinder(ResourceFinder resourceFinder)
Sets the resource finder.

Parameters:
resourceFinder - the resource finder

getUserLocalService

public UserLocalService getUserLocalService()
Gets the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserService

public UserService getUserService()
Gets the user remote service.

Returns:
the user remote service

setUserService

public void setUserService(UserService userService)
Sets the user remote service.

Parameters:
userService - the user remote service

getUserPersistence

public UserPersistence getUserPersistence()
Gets the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Gets the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

runSQL

protected void runSQL(String sql)
               throws SystemException
Performs an SQL query.

Parameters:
sql - the sql query to perform
Throws:
SystemException

Liferay 6.0.5