/tools/tests/com.liferay.ide.gradle.core.tests/projects/testWorkspace/modules/apps/roster/roster-api/src/main/java/com/liferay/roster/service/RosterLocalServiceWrapper.java

https://gitlab.com/4615833/liferay-ide · Java · 288 lines · 133 code · 29 blank · 126 comment · 0 complexity · 4aaa7b4abdfd2492a1ebc796ed4eeea9 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.roster.service;
  15. import aQute.bnd.annotation.ProviderType;
  16. import com.liferay.portal.kernel.service.ServiceWrapper;
  17. /**
  18. * Provides a wrapper for {@link RosterLocalService}.
  19. *
  20. * @author Brian Wing Shun Chan
  21. * @see RosterLocalService
  22. * @generated
  23. */
  24. @ProviderType
  25. public class RosterLocalServiceWrapper implements RosterLocalService,
  26. ServiceWrapper<RosterLocalService> {
  27. public RosterLocalServiceWrapper(RosterLocalService rosterLocalService) {
  28. _rosterLocalService = rosterLocalService;
  29. }
  30. @Override
  31. public com.liferay.roster.model.Roster addRoster(long clubId,
  32. java.lang.String name,
  33. com.liferay.portal.kernel.service.ServiceContext serviceContext) {
  34. return _rosterLocalService.addRoster(clubId, name, serviceContext);
  35. }
  36. /**
  37. * Adds the roster to the database. Also notifies the appropriate model listeners.
  38. *
  39. * @param roster the roster
  40. * @return the roster that was added
  41. */
  42. @Override
  43. public com.liferay.roster.model.Roster addRoster(
  44. com.liferay.roster.model.Roster roster) {
  45. return _rosterLocalService.addRoster(roster);
  46. }
  47. /**
  48. * Creates a new roster with the primary key. Does not add the roster to the database.
  49. *
  50. * @param rosterId the primary key for the new roster
  51. * @return the new roster
  52. */
  53. @Override
  54. public com.liferay.roster.model.Roster createRoster(long rosterId) {
  55. return _rosterLocalService.createRoster(rosterId);
  56. }
  57. /**
  58. * @throws PortalException
  59. */
  60. @Override
  61. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  62. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  63. throws com.liferay.portal.kernel.exception.PortalException {
  64. return _rosterLocalService.deletePersistedModel(persistedModel);
  65. }
  66. /**
  67. * Deletes the roster from the database. Also notifies the appropriate model listeners.
  68. *
  69. * @param roster the roster
  70. * @return the roster that was removed
  71. */
  72. @Override
  73. public com.liferay.roster.model.Roster deleteRoster(
  74. com.liferay.roster.model.Roster roster) {
  75. return _rosterLocalService.deleteRoster(roster);
  76. }
  77. /**
  78. * Deletes the roster with the primary key from the database. Also notifies the appropriate model listeners.
  79. *
  80. * @param rosterId the primary key of the roster
  81. * @return the roster that was removed
  82. * @throws PortalException if a roster with the primary key could not be found
  83. */
  84. @Override
  85. public com.liferay.roster.model.Roster deleteRoster(long rosterId)
  86. throws com.liferay.portal.kernel.exception.PortalException {
  87. return _rosterLocalService.deleteRoster(rosterId);
  88. }
  89. @Override
  90. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  91. return _rosterLocalService.dynamicQuery();
  92. }
  93. /**
  94. * Performs a dynamic query on the database and returns the matching rows.
  95. *
  96. * @param dynamicQuery the dynamic query
  97. * @return the matching rows
  98. */
  99. @Override
  100. public <T> java.util.List<T> dynamicQuery(
  101. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  102. return _rosterLocalService.dynamicQuery(dynamicQuery);
  103. }
  104. /**
  105. * Performs a dynamic query on the database and returns a range of the matching rows.
  106. *
  107. * <p>
  108. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.roster.model.impl.RosterModelImpl}. If both <code>orderByComparator</code> 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.
  109. * </p>
  110. *
  111. * @param dynamicQuery the dynamic query
  112. * @param start the lower bound of the range of model instances
  113. * @param end the upper bound of the range of model instances (not inclusive)
  114. * @return the range of matching rows
  115. */
  116. @Override
  117. public <T> java.util.List<T> dynamicQuery(
  118. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  119. int end) {
  120. return _rosterLocalService.dynamicQuery(dynamicQuery, start, end);
  121. }
  122. /**
  123. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  124. *
  125. * <p>
  126. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.roster.model.impl.RosterModelImpl}. If both <code>orderByComparator</code> 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.
  127. * </p>
  128. *
  129. * @param dynamicQuery the dynamic query
  130. * @param start the lower bound of the range of model instances
  131. * @param end the upper bound of the range of model instances (not inclusive)
  132. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  133. * @return the ordered range of matching rows
  134. */
  135. @Override
  136. public <T> java.util.List<T> dynamicQuery(
  137. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  138. int end,
  139. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  140. return _rosterLocalService.dynamicQuery(dynamicQuery, start, end,
  141. orderByComparator);
  142. }
  143. /**
  144. * Returns the number of rows matching the dynamic query.
  145. *
  146. * @param dynamicQuery the dynamic query
  147. * @return the number of rows matching the dynamic query
  148. */
  149. @Override
  150. public long dynamicQueryCount(
  151. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  152. return _rosterLocalService.dynamicQueryCount(dynamicQuery);
  153. }
  154. /**
  155. * Returns the number of rows matching the dynamic query.
  156. *
  157. * @param dynamicQuery the dynamic query
  158. * @param projection the projection to apply to the query
  159. * @return the number of rows matching the dynamic query
  160. */
  161. @Override
  162. public long dynamicQueryCount(
  163. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  164. com.liferay.portal.kernel.dao.orm.Projection projection) {
  165. return _rosterLocalService.dynamicQueryCount(dynamicQuery, projection);
  166. }
  167. @Override
  168. public com.liferay.roster.model.Roster fetchRoster(long rosterId) {
  169. return _rosterLocalService.fetchRoster(rosterId);
  170. }
  171. @Override
  172. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
  173. return _rosterLocalService.getActionableDynamicQuery();
  174. }
  175. @Override
  176. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
  177. return _rosterLocalService.getIndexableActionableDynamicQuery();
  178. }
  179. /**
  180. * Returns the OSGi service identifier.
  181. *
  182. * @return the OSGi service identifier
  183. */
  184. @Override
  185. public java.lang.String getOSGiServiceIdentifier() {
  186. return _rosterLocalService.getOSGiServiceIdentifier();
  187. }
  188. @Override
  189. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  190. java.io.Serializable primaryKeyObj)
  191. throws com.liferay.portal.kernel.exception.PortalException {
  192. return _rosterLocalService.getPersistedModel(primaryKeyObj);
  193. }
  194. /**
  195. * Returns the roster with the primary key.
  196. *
  197. * @param rosterId the primary key of the roster
  198. * @return the roster
  199. * @throws PortalException if a roster with the primary key could not be found
  200. */
  201. @Override
  202. public com.liferay.roster.model.Roster getRoster(long rosterId)
  203. throws com.liferay.portal.kernel.exception.PortalException {
  204. return _rosterLocalService.getRoster(rosterId);
  205. }
  206. /**
  207. * Returns a range of all the rosters.
  208. *
  209. * <p>
  210. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.roster.model.impl.RosterModelImpl}. If both <code>orderByComparator</code> 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.
  211. * </p>
  212. *
  213. * @param start the lower bound of the range of rosters
  214. * @param end the upper bound of the range of rosters (not inclusive)
  215. * @return the range of rosters
  216. */
  217. @Override
  218. public java.util.List<com.liferay.roster.model.Roster> getRosters(
  219. int start, int end) {
  220. return _rosterLocalService.getRosters(start, end);
  221. }
  222. /**
  223. * Returns the number of rosters.
  224. *
  225. * @return the number of rosters
  226. */
  227. @Override
  228. public int getRostersCount() {
  229. return _rosterLocalService.getRostersCount();
  230. }
  231. /**
  232. * Updates the roster in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  233. *
  234. * @param roster the roster
  235. * @return the roster that was updated
  236. */
  237. @Override
  238. public com.liferay.roster.model.Roster updateRoster(
  239. com.liferay.roster.model.Roster roster) {
  240. return _rosterLocalService.updateRoster(roster);
  241. }
  242. @Override
  243. public com.liferay.roster.model.Roster updateRoster(long rosterId,
  244. long clubId, java.lang.String name,
  245. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  246. throws com.liferay.portal.kernel.exception.PortalException {
  247. return _rosterLocalService.updateRoster(rosterId, clubId, name,
  248. serviceContext);
  249. }
  250. @Override
  251. public RosterLocalService getWrappedService() {
  252. return _rosterLocalService;
  253. }
  254. @Override
  255. public void setWrappedService(RosterLocalService rosterLocalService) {
  256. _rosterLocalService = rosterLocalService;
  257. }
  258. private RosterLocalService _rosterLocalService;
  259. }