Class SocialActivityAchievementLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<SocialActivityAchievement>
,PersistedModelLocalService
,ServiceWrapper<SocialActivityAchievementLocalService>
,SocialActivityAchievementLocalService
SocialActivityAchievementLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionSocialActivityAchievementLocalServiceWrapper
(SocialActivityAchievementLocalService socialActivityAchievementLocalService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActivityAchievement
(long userId, long groupId, SocialAchievement achievement) addSocialActivityAchievement
(SocialActivityAchievement socialActivityAchievement) Adds the social activity achievement to the database.createPersistedModel
(Serializable primaryKeyObj) createSocialActivityAchievement
(long activityAchievementId) Creates a new social activity achievement with the primary key.deletePersistedModel
(PersistedModel persistedModel) deleteSocialActivityAchievement
(long activityAchievementId) Deletes the social activity achievement with the primary key from the database.deleteSocialActivityAchievement
(SocialActivityAchievement socialActivityAchievement) Deletes the social activity achievement from the database.<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <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.fetchSocialActivityAchievement
(long activityAchievementId) fetchUserAchievement
(long userId, long groupId, String name) getGroupAchievements
(long groupId) getGroupAchievements
(long groupId, String name) int
getGroupAchievementsCount
(long groupId) int
getGroupAchievementsCount
(long groupId, String name) getGroupFirstAchievements
(long groupId) int
getGroupFirstAchievementsCount
(long groupId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getSocialActivityAchievement
(long activityAchievementId) Returns the social activity achievement with the primary key.getSocialActivityAchievements
(int start, int end) Returns a range of all the social activity achievements.int
Returns the number of social activity achievements.getUserAchievements
(long userId, long groupId) int
getUserAchievementsCount
(long userId, long groupId) void
setWrappedService
(SocialActivityAchievementLocalService socialActivityAchievementLocalService) updateSocialActivityAchievement
(SocialActivityAchievement socialActivityAchievement) Updates the social activity achievement in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivityAchievement>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
SocialActivityAchievementLocalServiceWrapper
public SocialActivityAchievementLocalServiceWrapper() -
SocialActivityAchievementLocalServiceWrapper
public SocialActivityAchievementLocalServiceWrapper(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
-
-
Method Details
-
addActivityAchievement
public void addActivityAchievement(long userId, long groupId, SocialAchievement achievement) throws PortalException - Specified by:
addActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Throws:
PortalException
-
addSocialActivityAchievement
public SocialActivityAchievement addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Adds the social activity achievement to the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
socialActivityAchievement
- the social activity achievement- Returns:
- the social activity achievement that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceSocialActivityAchievementLocalService
- Throws:
PortalException
PortalException
-
createSocialActivityAchievement
Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.- Specified by:
createSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
activityAchievementId
- the primary key for the new social activity achievement- Returns:
- the new social activity achievement
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceSocialActivityAchievementLocalService
- Throws:
PortalException
PortalException
-
deleteSocialActivityAchievement
public SocialActivityAchievement deleteSocialActivityAchievement(long activityAchievementId) throws PortalException Deletes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
activityAchievementId
- the primary key of the social activity achievement- Returns:
- the social activity achievement that was removed
- Throws:
PortalException
- if a social activity achievement with the primary key could not be foundPortalException
-
deleteSocialActivityAchievement
public SocialActivityAchievement deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Deletes the social activity achievement from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
socialActivityAchievement
- the social activity achievement- Returns:
- the social activity achievement that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceSocialActivityAchievementLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceSocialActivityAchievementLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceSocialActivityAchievementLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceSocialActivityAchievementLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.- Specified by:
dynamicQuery
in interfaceSocialActivityAchievementLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.- Specified by:
dynamicQuery
in interfaceSocialActivityAchievementLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceSocialActivityAchievementLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceSocialActivityAchievementLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSocialActivityAchievement
- Specified by:
fetchSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
-
fetchUserAchievement
- Specified by:
fetchUserAchievement
in interfaceSocialActivityAchievementLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceSocialActivityAchievementLocalService
-
getGroupAchievements
- Specified by:
getGroupAchievements
in interfaceSocialActivityAchievementLocalService
-
getGroupAchievements
- Specified by:
getGroupAchievements
in interfaceSocialActivityAchievementLocalService
-
getGroupAchievementsCount
public int getGroupAchievementsCount(long groupId) - Specified by:
getGroupAchievementsCount
in interfaceSocialActivityAchievementLocalService
-
getGroupAchievementsCount
- Specified by:
getGroupAchievementsCount
in interfaceSocialActivityAchievementLocalService
-
getGroupFirstAchievements
- Specified by:
getGroupFirstAchievements
in interfaceSocialActivityAchievementLocalService
-
getGroupFirstAchievementsCount
public int getGroupFirstAchievementsCount(long groupId) - Specified by:
getGroupFirstAchievementsCount
in interfaceSocialActivityAchievementLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceSocialActivityAchievementLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceSocialActivityAchievementLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceSocialActivityAchievementLocalService
- Throws:
PortalException
PortalException
-
getSocialActivityAchievement
public SocialActivityAchievement getSocialActivityAchievement(long activityAchievementId) throws PortalException Returns the social activity achievement with the primary key.- Specified by:
getSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
activityAchievementId
- the primary key of the social activity achievement- Returns:
- the social activity achievement
- Throws:
PortalException
- if a social activity achievement with the primary key could not be foundPortalException
-
getSocialActivityAchievements
Returns a range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.- Specified by:
getSocialActivityAchievements
in interfaceSocialActivityAchievementLocalService
- Parameters:
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of social activity achievements
-
getSocialActivityAchievementsCount
public int getSocialActivityAchievementsCount()Returns the number of social activity achievements.- Specified by:
getSocialActivityAchievementsCount
in interfaceSocialActivityAchievementLocalService
- Returns:
- the number of social activity achievements
-
getUserAchievements
- Specified by:
getUserAchievements
in interfaceSocialActivityAchievementLocalService
-
getUserAchievementsCount
public int getUserAchievementsCount(long userId, long groupId) - Specified by:
getUserAchievementsCount
in interfaceSocialActivityAchievementLocalService
-
updateSocialActivityAchievement
public SocialActivityAchievement updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Updates the social activity achievement in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateSocialActivityAchievement
in interfaceSocialActivityAchievementLocalService
- Parameters:
socialActivityAchievement
- the social activity achievement- Returns:
- the social activity achievement that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<SocialActivityAchievement>
- Specified by:
getCTPersistence
in interfaceSocialActivityAchievementLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<SocialActivityAchievement>
- Specified by:
getModelClass
in interfaceSocialActivityAchievementLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivityAchievement>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<SocialActivityAchievement>
- Specified by:
updateWithUnsafeFunction
in interfaceSocialActivityAchievementLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<SocialActivityAchievementLocalService>
-
setWrappedService
public void setWrappedService(SocialActivityAchievementLocalService socialActivityAchievementLocalService) - Specified by:
setWrappedService
in interfaceServiceWrapper<SocialActivityAchievementLocalService>
-