/modules/apps/changeset/changeset-api/src/main/java/com/liferay/changeset/service/ChangesetCollectionLocalServiceWrapper.java

https://github.com/danielreuther/liferay-portal · Java · 401 lines · 192 code · 61 blank · 148 comment · 0 complexity · 1728507baef9ef3cb5d7cb14b2c88e3b 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.changeset.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link ChangesetCollectionLocalService}.
  18. *
  19. * @author Brian Wing Shun Chan
  20. * @see ChangesetCollectionLocalService
  21. * @generated
  22. */
  23. public class ChangesetCollectionLocalServiceWrapper
  24. implements ChangesetCollectionLocalService,
  25. ServiceWrapper<ChangesetCollectionLocalService> {
  26. public ChangesetCollectionLocalServiceWrapper() {
  27. this(null);
  28. }
  29. public ChangesetCollectionLocalServiceWrapper(
  30. ChangesetCollectionLocalService changesetCollectionLocalService) {
  31. _changesetCollectionLocalService = changesetCollectionLocalService;
  32. }
  33. /**
  34. * Adds the changeset collection to the database. Also notifies the appropriate model listeners.
  35. *
  36. * <p>
  37. * <strong>Important:</strong> Inspect ChangesetCollectionLocalServiceImpl 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.
  38. * </p>
  39. *
  40. * @param changesetCollection the changeset collection
  41. * @return the changeset collection that was added
  42. */
  43. @Override
  44. public com.liferay.changeset.model.ChangesetCollection
  45. addChangesetCollection(
  46. com.liferay.changeset.model.ChangesetCollection
  47. changesetCollection) {
  48. return _changesetCollectionLocalService.addChangesetCollection(
  49. changesetCollection);
  50. }
  51. @Override
  52. public com.liferay.changeset.model.ChangesetCollection
  53. addChangesetCollection(
  54. long userId, long groupId, String name, String description)
  55. throws com.liferay.portal.kernel.exception.PortalException {
  56. return _changesetCollectionLocalService.addChangesetCollection(
  57. userId, groupId, name, description);
  58. }
  59. /**
  60. * Creates a new changeset collection with the primary key. Does not add the changeset collection to the database.
  61. *
  62. * @param changesetCollectionId the primary key for the new changeset collection
  63. * @return the new changeset collection
  64. */
  65. @Override
  66. public com.liferay.changeset.model.ChangesetCollection
  67. createChangesetCollection(long changesetCollectionId) {
  68. return _changesetCollectionLocalService.createChangesetCollection(
  69. changesetCollectionId);
  70. }
  71. /**
  72. * @throws PortalException
  73. */
  74. @Override
  75. public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(
  76. java.io.Serializable primaryKeyObj)
  77. throws com.liferay.portal.kernel.exception.PortalException {
  78. return _changesetCollectionLocalService.createPersistedModel(
  79. primaryKeyObj);
  80. }
  81. /**
  82. * Deletes the changeset collection from the database. Also notifies the appropriate model listeners.
  83. *
  84. * <p>
  85. * <strong>Important:</strong> Inspect ChangesetCollectionLocalServiceImpl 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.
  86. * </p>
  87. *
  88. * @param changesetCollection the changeset collection
  89. * @return the changeset collection that was removed
  90. */
  91. @Override
  92. public com.liferay.changeset.model.ChangesetCollection
  93. deleteChangesetCollection(
  94. com.liferay.changeset.model.ChangesetCollection
  95. changesetCollection) {
  96. return _changesetCollectionLocalService.deleteChangesetCollection(
  97. changesetCollection);
  98. }
  99. /**
  100. * Deletes the changeset collection with the primary key from the database. Also notifies the appropriate model listeners.
  101. *
  102. * <p>
  103. * <strong>Important:</strong> Inspect ChangesetCollectionLocalServiceImpl 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.
  104. * </p>
  105. *
  106. * @param changesetCollectionId the primary key of the changeset collection
  107. * @return the changeset collection that was removed
  108. * @throws PortalException if a changeset collection with the primary key could not be found
  109. */
  110. @Override
  111. public com.liferay.changeset.model.ChangesetCollection
  112. deleteChangesetCollection(long changesetCollectionId)
  113. throws com.liferay.portal.kernel.exception.PortalException {
  114. return _changesetCollectionLocalService.deleteChangesetCollection(
  115. changesetCollectionId);
  116. }
  117. /**
  118. * @throws PortalException
  119. */
  120. @Override
  121. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  122. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  123. throws com.liferay.portal.kernel.exception.PortalException {
  124. return _changesetCollectionLocalService.deletePersistedModel(
  125. persistedModel);
  126. }
  127. @Override
  128. public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  129. return _changesetCollectionLocalService.dslQuery(dslQuery);
  130. }
  131. @Override
  132. public int dslQueryCount(
  133. com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  134. return _changesetCollectionLocalService.dslQueryCount(dslQuery);
  135. }
  136. @Override
  137. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  138. return _changesetCollectionLocalService.dynamicQuery();
  139. }
  140. /**
  141. * Performs a dynamic query on the database and returns the matching rows.
  142. *
  143. * @param dynamicQuery the dynamic query
  144. * @return the matching rows
  145. */
  146. @Override
  147. public <T> java.util.List<T> dynamicQuery(
  148. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  149. return _changesetCollectionLocalService.dynamicQuery(dynamicQuery);
  150. }
  151. /**
  152. * Performs a dynamic query on the database and returns a range of the matching rows.
  153. *
  154. * <p>
  155. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> 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, then the query will include the default ORDER BY logic from <code>com.liferay.changeset.model.impl.ChangesetCollectionModelImpl</code>.
  156. * </p>
  157. *
  158. * @param dynamicQuery the dynamic query
  159. * @param start the lower bound of the range of model instances
  160. * @param end the upper bound of the range of model instances (not inclusive)
  161. * @return the range of matching rows
  162. */
  163. @Override
  164. public <T> java.util.List<T> dynamicQuery(
  165. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  166. int end) {
  167. return _changesetCollectionLocalService.dynamicQuery(
  168. dynamicQuery, start, end);
  169. }
  170. /**
  171. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  172. *
  173. * <p>
  174. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> 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, then the query will include the default ORDER BY logic from <code>com.liferay.changeset.model.impl.ChangesetCollectionModelImpl</code>.
  175. * </p>
  176. *
  177. * @param dynamicQuery the dynamic query
  178. * @param start the lower bound of the range of model instances
  179. * @param end the upper bound of the range of model instances (not inclusive)
  180. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  181. * @return the ordered range of matching rows
  182. */
  183. @Override
  184. public <T> java.util.List<T> dynamicQuery(
  185. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  186. int end,
  187. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  188. return _changesetCollectionLocalService.dynamicQuery(
  189. dynamicQuery, start, end, orderByComparator);
  190. }
  191. /**
  192. * Returns the number of rows matching the dynamic query.
  193. *
  194. * @param dynamicQuery the dynamic query
  195. * @return the number of rows matching the dynamic query
  196. */
  197. @Override
  198. public long dynamicQueryCount(
  199. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  200. return _changesetCollectionLocalService.dynamicQueryCount(dynamicQuery);
  201. }
  202. /**
  203. * Returns the number of rows matching the dynamic query.
  204. *
  205. * @param dynamicQuery the dynamic query
  206. * @param projection the projection to apply to the query
  207. * @return the number of rows matching the dynamic query
  208. */
  209. @Override
  210. public long dynamicQueryCount(
  211. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  212. com.liferay.portal.kernel.dao.orm.Projection projection) {
  213. return _changesetCollectionLocalService.dynamicQueryCount(
  214. dynamicQuery, projection);
  215. }
  216. @Override
  217. public com.liferay.changeset.model.ChangesetCollection
  218. fetchChangesetCollection(long changesetCollectionId) {
  219. return _changesetCollectionLocalService.fetchChangesetCollection(
  220. changesetCollectionId);
  221. }
  222. @Override
  223. public com.liferay.changeset.model.ChangesetCollection
  224. fetchChangesetCollection(long groupId, String name) {
  225. return _changesetCollectionLocalService.fetchChangesetCollection(
  226. groupId, name);
  227. }
  228. @Override
  229. public com.liferay.changeset.model.ChangesetCollection
  230. fetchOrAddChangesetCollection(long groupId, String name)
  231. throws com.liferay.portal.kernel.exception.PortalException {
  232. return _changesetCollectionLocalService.fetchOrAddChangesetCollection(
  233. groupId, name);
  234. }
  235. @Override
  236. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
  237. getActionableDynamicQuery() {
  238. return _changesetCollectionLocalService.getActionableDynamicQuery();
  239. }
  240. /**
  241. * Returns the changeset collection with the primary key.
  242. *
  243. * @param changesetCollectionId the primary key of the changeset collection
  244. * @return the changeset collection
  245. * @throws PortalException if a changeset collection with the primary key could not be found
  246. */
  247. @Override
  248. public com.liferay.changeset.model.ChangesetCollection
  249. getChangesetCollection(long changesetCollectionId)
  250. throws com.liferay.portal.kernel.exception.PortalException {
  251. return _changesetCollectionLocalService.getChangesetCollection(
  252. changesetCollectionId);
  253. }
  254. @Override
  255. public com.liferay.changeset.model.ChangesetCollection
  256. getChangesetCollection(long groupId, String name)
  257. throws com.liferay.changeset.exception.NoSuchCollectionException {
  258. return _changesetCollectionLocalService.getChangesetCollection(
  259. groupId, name);
  260. }
  261. /**
  262. * Returns a range of all the changeset collections.
  263. *
  264. * <p>
  265. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> 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, then the query will include the default ORDER BY logic from <code>com.liferay.changeset.model.impl.ChangesetCollectionModelImpl</code>.
  266. * </p>
  267. *
  268. * @param start the lower bound of the range of changeset collections
  269. * @param end the upper bound of the range of changeset collections (not inclusive)
  270. * @return the range of changeset collections
  271. */
  272. @Override
  273. public java.util.List<com.liferay.changeset.model.ChangesetCollection>
  274. getChangesetCollections(int start, int end) {
  275. return _changesetCollectionLocalService.getChangesetCollections(
  276. start, end);
  277. }
  278. /**
  279. * Returns the number of changeset collections.
  280. *
  281. * @return the number of changeset collections
  282. */
  283. @Override
  284. public int getChangesetCollectionsCount() {
  285. return _changesetCollectionLocalService.getChangesetCollectionsCount();
  286. }
  287. @Override
  288. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
  289. getIndexableActionableDynamicQuery() {
  290. return _changesetCollectionLocalService.
  291. getIndexableActionableDynamicQuery();
  292. }
  293. /**
  294. * Returns the OSGi service identifier.
  295. *
  296. * @return the OSGi service identifier
  297. */
  298. @Override
  299. public String getOSGiServiceIdentifier() {
  300. return _changesetCollectionLocalService.getOSGiServiceIdentifier();
  301. }
  302. /**
  303. * @throws PortalException
  304. */
  305. @Override
  306. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  307. java.io.Serializable primaryKeyObj)
  308. throws com.liferay.portal.kernel.exception.PortalException {
  309. return _changesetCollectionLocalService.getPersistedModel(
  310. primaryKeyObj);
  311. }
  312. /**
  313. * Updates the changeset collection in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  314. *
  315. * <p>
  316. * <strong>Important:</strong> Inspect ChangesetCollectionLocalServiceImpl 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.
  317. * </p>
  318. *
  319. * @param changesetCollection the changeset collection
  320. * @return the changeset collection that was updated
  321. */
  322. @Override
  323. public com.liferay.changeset.model.ChangesetCollection
  324. updateChangesetCollection(
  325. com.liferay.changeset.model.ChangesetCollection
  326. changesetCollection) {
  327. return _changesetCollectionLocalService.updateChangesetCollection(
  328. changesetCollection);
  329. }
  330. @Override
  331. public ChangesetCollectionLocalService getWrappedService() {
  332. return _changesetCollectionLocalService;
  333. }
  334. @Override
  335. public void setWrappedService(
  336. ChangesetCollectionLocalService changesetCollectionLocalService) {
  337. _changesetCollectionLocalService = changesetCollectionLocalService;
  338. }
  339. private ChangesetCollectionLocalService _changesetCollectionLocalService;
  340. }