Liferay 7.0-ce-b4

com.liferay.portlet.ratings.service
Class RatingsStatsLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.ratings.service.RatingsStatsLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<RatingsStatsLocalService>, RatingsStatsLocalService

@ProviderType
public class RatingsStatsLocalServiceWrapper
extends Object
implements RatingsStatsLocalService, ServiceWrapper<RatingsStatsLocalService>

Provides a wrapper for RatingsStatsLocalService.

See Also:
RatingsStatsLocalService

Constructor Summary
RatingsStatsLocalServiceWrapper(RatingsStatsLocalService ratingsStatsLocalService)
           
 
Method Summary
 RatingsStats addRatingsStats(RatingsStats ratingsStats)
          Adds the ratings stats to the database.
 RatingsStats addStats(long classNameId, long classPK)
           
 RatingsStats createRatingsStats(long statsId)
          Creates a new ratings stats with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 RatingsStats deleteRatingsStats(long statsId)
          Deletes the ratings stats with the primary key from the database.
 RatingsStats deleteRatingsStats(RatingsStats ratingsStats)
          Deletes the ratings stats from the database.
 void deleteStats(String className, long classPK)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 RatingsStats fetchRatingsStats(long statsId)
           
 RatingsStats fetchStats(String className, long classPK)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 RatingsStats getRatingsStats(long statsId)
          Returns the ratings stats with the primary key.
 List<RatingsStats> getRatingsStatses(int start, int end)
          Returns a range of all the ratings statses.
 int getRatingsStatsesCount()
          Returns the number of ratings statses.
 RatingsStats getStats(long statsId)
           
 List<RatingsStats> getStats(String className, List<Long> classPKs)
           
 RatingsStats getStats(String className, long classPK)
           
 RatingsStatsLocalService getWrappedService()
           
 void setWrappedService(RatingsStatsLocalService ratingsStatsLocalService)
           
 RatingsStats updateRatingsStats(RatingsStats ratingsStats)
          Updates the ratings stats in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatingsStatsLocalServiceWrapper

public RatingsStatsLocalServiceWrapper(RatingsStatsLocalService ratingsStatsLocalService)
Method Detail

addRatingsStats

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

Specified by:
addRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats
Returns:
the ratings stats that was added

addStats

public RatingsStats addStats(long classNameId,
                             long classPK)
Specified by:
addStats in interface RatingsStatsLocalService

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

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface RatingsStatsLocalService
Throws:
PortalException

deleteRatingsStats

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

Specified by:
deleteRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats
Returns:
the ratings stats that was removed

deleteRatingsStats

public RatingsStats deleteRatingsStats(long statsId)
                                throws PortalException
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
Returns:
the ratings stats that was removed
Throws:
PortalException - if a ratings stats with the primary key could not be found

deleteStats

public void deleteStats(String className,
                        long classPK)
Specified by:
deleteStats in interface RatingsStatsLocalService

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface RatingsStatsLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface RatingsStatsLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchRatingsStats

public RatingsStats fetchRatingsStats(long statsId)
Specified by:
fetchRatingsStats in interface RatingsStatsLocalService

fetchStats

public RatingsStats fetchStats(String className,
                               long classPK)
Specified by:
fetchStats in interface RatingsStatsLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface RatingsStatsLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface RatingsStatsLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface RatingsStatsLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface RatingsStatsLocalService
Throws:
PortalException

getRatingsStats

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

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

getRatingsStatses

public List<RatingsStats> getRatingsStatses(int start,
                                            int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getRatingsStatses in interface RatingsStatsLocalService
Parameters:
start - the lower bound of the range of ratings statses
end - the upper bound of the range of ratings statses (not inclusive)
Returns:
the range of ratings statses

getRatingsStatsesCount

public int getRatingsStatsesCount()
Returns the number of ratings statses.

Specified by:
getRatingsStatsesCount in interface RatingsStatsLocalService
Returns:
the number of ratings statses

getStats

public RatingsStats getStats(String className,
                             long classPK)
Specified by:
getStats in interface RatingsStatsLocalService

getStats

public List<RatingsStats> getStats(String className,
                                   List<Long> classPKs)
Specified by:
getStats in interface RatingsStatsLocalService

getStats

public RatingsStats getStats(long statsId)
                      throws PortalException
Specified by:
getStats in interface RatingsStatsLocalService
Throws:
PortalException

updateRatingsStats

public RatingsStats updateRatingsStats(RatingsStats ratingsStats)
Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateRatingsStats in interface RatingsStatsLocalService
Parameters:
ratingsStats - the ratings stats
Returns:
the ratings stats that was updated

getWrappedService

public RatingsStatsLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<RatingsStatsLocalService>

setWrappedService

public void setWrappedService(RatingsStatsLocalService ratingsStatsLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<RatingsStatsLocalService>

Liferay 7.0-ce-b4