Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Class MBStatsUserLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<MBStatsUserLocalService>, MBStatsUserLocalService

@ProviderType
public class MBStatsUserLocalServiceWrapper
extends Object
implements MBStatsUserLocalService, ServiceWrapper<MBStatsUserLocalService>

Provides a wrapper for MBStatsUserLocalService.

See Also:
MBStatsUserLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBStatsUserLocalServiceWrapper(MBStatsUserLocalService mbStatsUserLocalService)
           
 
Method Summary
 MBStatsUser addMBStatsUser(MBStatsUser mbStatsUser)
          Adds the message boards stats user to the database.
 MBStatsUser addStatsUser(long groupId, long userId)
           
 MBStatsUser createMBStatsUser(long statsUserId)
          Creates a new message boards stats user with the primary key.
 MBStatsUser deleteMBStatsUser(long statsUserId)
          Deletes the message boards stats user with the primary key from the database.
 MBStatsUser deleteMBStatsUser(MBStatsUser mbStatsUser)
          Deletes the message boards stats user from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteStatsUser(long statsUserId)
           
 void deleteStatsUser(MBStatsUser statsUser)
           
 void deleteStatsUsersByGroupId(long groupId)
           
 void deleteStatsUsersByUserId(long userId)
           
 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.
 MBStatsUser fetchMBStatsUser(long statsUserId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 Date getLastPostDateByUserId(long groupId, long userId)
           
 MBStatsUser getMBStatsUser(long statsUserId)
          Returns the message boards stats user with the primary key.
 List<MBStatsUser> getMBStatsUsers(int start, int end)
          Returns a range of all the message boards stats users.
 int getMBStatsUsersCount()
          Returns the number of message boards stats users.
 long getMessageCountByGroupId(long groupId)
           
 long getMessageCountByUserId(long userId)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 MBStatsUser getStatsUser(long groupId, long userId)
           
 List<MBStatsUser> getStatsUsersByGroupId(long groupId, int start, int end)
           
 int getStatsUsersByGroupIdCount(long groupId)
           
 List<MBStatsUser> getStatsUsersByUserId(long userId)
           
 MBStatsUserLocalService getWrappedService()
           
 void setWrappedService(MBStatsUserLocalService mbStatsUserLocalService)
           
 MBStatsUser updateMBStatsUser(MBStatsUser mbStatsUser)
          Updates the message boards stats user in the database or adds it if it does not yet exist.
 MBStatsUser updateStatsUser(long groupId, long userId)
           
 MBStatsUser updateStatsUser(long groupId, long userId, Date lastPostDate)
           
 MBStatsUser updateStatsUser(long groupId, long userId, int messageCount, Date lastPostDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBStatsUserLocalServiceWrapper

public MBStatsUserLocalServiceWrapper(MBStatsUserLocalService mbStatsUserLocalService)
Method Detail

addMBStatsUser

public MBStatsUser addMBStatsUser(MBStatsUser mbStatsUser)
Adds the message boards stats user to the database. Also notifies the appropriate model listeners.

Specified by:
addMBStatsUser in interface MBStatsUserLocalService
Parameters:
mbStatsUser - the message boards stats user
Returns:
the message boards stats user that was added

addStatsUser

public MBStatsUser addStatsUser(long groupId,
                                long userId)
Specified by:
addStatsUser in interface MBStatsUserLocalService

createMBStatsUser

public MBStatsUser createMBStatsUser(long statsUserId)
Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.

Specified by:
createMBStatsUser in interface MBStatsUserLocalService
Parameters:
statsUserId - the primary key for the new message boards stats user
Returns:
the new message boards stats user

deleteMBStatsUser

public MBStatsUser deleteMBStatsUser(MBStatsUser mbStatsUser)
Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMBStatsUser in interface MBStatsUserLocalService
Parameters:
mbStatsUser - the message boards stats user
Returns:
the message boards stats user that was removed

deleteMBStatsUser

public MBStatsUser deleteMBStatsUser(long statsUserId)
                              throws PortalException
Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMBStatsUser in interface MBStatsUserLocalService
Parameters:
statsUserId - the primary key of the message boards stats user
Returns:
the message boards stats user that was removed
Throws:
PortalException - if a message boards stats user with the primary key could not be found

deletePersistedModel

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

deleteStatsUser

public void deleteStatsUser(MBStatsUser statsUser)
Specified by:
deleteStatsUser in interface MBStatsUserLocalService

deleteStatsUser

public void deleteStatsUser(long statsUserId)
                     throws PortalException
Specified by:
deleteStatsUser in interface MBStatsUserLocalService
Throws:
PortalException

deleteStatsUsersByGroupId

public void deleteStatsUsersByGroupId(long groupId)
Specified by:
deleteStatsUsersByGroupId in interface MBStatsUserLocalService

deleteStatsUsersByUserId

public void deleteStatsUsersByUserId(long userId)
Specified by:
deleteStatsUsersByUserId in interface MBStatsUserLocalService

dynamicQuery

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

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 MBStatsUserLocalService
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 MBStatsUserModelImpl. 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 MBStatsUserLocalService
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 MBStatsUserModelImpl. 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 MBStatsUserLocalService
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 MBStatsUserLocalService
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 MBStatsUserLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchMBStatsUser

public MBStatsUser fetchMBStatsUser(long statsUserId)
Specified by:
fetchMBStatsUser in interface MBStatsUserLocalService

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

getLastPostDateByUserId

public Date getLastPostDateByUserId(long groupId,
                                    long userId)
Specified by:
getLastPostDateByUserId in interface MBStatsUserLocalService

getMBStatsUser

public MBStatsUser getMBStatsUser(long statsUserId)
                           throws PortalException
Returns the message boards stats user with the primary key.

Specified by:
getMBStatsUser in interface MBStatsUserLocalService
Parameters:
statsUserId - the primary key of the message boards stats user
Returns:
the message boards stats user
Throws:
PortalException - if a message boards stats user with the primary key could not be found

getMBStatsUsers

public List<MBStatsUser> getMBStatsUsers(int start,
                                         int end)
Returns a range of all the message boards stats users.

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 MBStatsUserModelImpl. 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:
getMBStatsUsers in interface MBStatsUserLocalService
Parameters:
start - the lower bound of the range of message boards stats users
end - the upper bound of the range of message boards stats users (not inclusive)
Returns:
the range of message boards stats users

getMBStatsUsersCount

public int getMBStatsUsersCount()
Returns the number of message boards stats users.

Specified by:
getMBStatsUsersCount in interface MBStatsUserLocalService
Returns:
the number of message boards stats users

getMessageCountByGroupId

public long getMessageCountByGroupId(long groupId)
Specified by:
getMessageCountByGroupId in interface MBStatsUserLocalService

getMessageCountByUserId

public long getMessageCountByUserId(long userId)
Specified by:
getMessageCountByUserId in interface MBStatsUserLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

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

getPersistedModel

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

getStatsUser

public MBStatsUser getStatsUser(long groupId,
                                long userId)
Specified by:
getStatsUser in interface MBStatsUserLocalService

getStatsUsersByGroupId

public List<MBStatsUser> getStatsUsersByGroupId(long groupId,
                                                int start,
                                                int end)
                                         throws PortalException
Specified by:
getStatsUsersByGroupId in interface MBStatsUserLocalService
Throws:
PortalException

getStatsUsersByGroupIdCount

public int getStatsUsersByGroupIdCount(long groupId)
                                throws PortalException
Specified by:
getStatsUsersByGroupIdCount in interface MBStatsUserLocalService
Throws:
PortalException

getStatsUsersByUserId

public List<MBStatsUser> getStatsUsersByUserId(long userId)
Specified by:
getStatsUsersByUserId in interface MBStatsUserLocalService

updateMBStatsUser

public MBStatsUser updateMBStatsUser(MBStatsUser mbStatsUser)
Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateMBStatsUser in interface MBStatsUserLocalService
Parameters:
mbStatsUser - the message boards stats user
Returns:
the message boards stats user that was updated

updateStatsUser

public MBStatsUser updateStatsUser(long groupId,
                                   long userId)
Specified by:
updateStatsUser in interface MBStatsUserLocalService

updateStatsUser

public MBStatsUser updateStatsUser(long groupId,
                                   long userId,
                                   Date lastPostDate)
Specified by:
updateStatsUser in interface MBStatsUserLocalService

updateStatsUser

public MBStatsUser updateStatsUser(long groupId,
                                   long userId,
                                   int messageCount,
                                   Date lastPostDate)
Specified by:
updateStatsUser in interface MBStatsUserLocalService

getWrappedService

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

setWrappedService

public void setWrappedService(MBStatsUserLocalService mbStatsUserLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<MBStatsUserLocalService>

Liferay 7.0-ce-b4