/modules/apps/document-library/document-library-sync-api/src/main/java/com/liferay/document/library/sync/service/DLSyncEventLocalServiceWrapper.java

https://github.com/kiyoshilee/liferay-portal · Java · 328 lines · 148 code · 54 blank · 126 comment · 0 complexity · c266e0a34e24347e2a3facd44c69ef8e 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.document.library.sync.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link DLSyncEventLocalService}.
  18. *
  19. * @author Brian Wing Shun Chan
  20. * @see DLSyncEventLocalService
  21. * @generated
  22. */
  23. public class DLSyncEventLocalServiceWrapper
  24. implements DLSyncEventLocalService,
  25. ServiceWrapper<DLSyncEventLocalService> {
  26. public DLSyncEventLocalServiceWrapper(
  27. DLSyncEventLocalService dlSyncEventLocalService) {
  28. _dlSyncEventLocalService = dlSyncEventLocalService;
  29. }
  30. /**
  31. * Adds the dl sync event to the database. Also notifies the appropriate model listeners.
  32. *
  33. * @param dlSyncEvent the dl sync event
  34. * @return the dl sync event that was added
  35. */
  36. @Override
  37. public com.liferay.document.library.sync.model.DLSyncEvent addDLSyncEvent(
  38. com.liferay.document.library.sync.model.DLSyncEvent dlSyncEvent) {
  39. return _dlSyncEventLocalService.addDLSyncEvent(dlSyncEvent);
  40. }
  41. @Override
  42. public com.liferay.document.library.sync.model.DLSyncEvent addDLSyncEvent(
  43. String event, String type, long typePK) {
  44. return _dlSyncEventLocalService.addDLSyncEvent(event, type, typePK);
  45. }
  46. /**
  47. * Creates a new dl sync event with the primary key. Does not add the dl sync event to the database.
  48. *
  49. * @param syncEventId the primary key for the new dl sync event
  50. * @return the new dl sync event
  51. */
  52. @Override
  53. public com.liferay.document.library.sync.model.DLSyncEvent
  54. createDLSyncEvent(long syncEventId) {
  55. return _dlSyncEventLocalService.createDLSyncEvent(syncEventId);
  56. }
  57. /**
  58. * Deletes the dl sync event from the database. Also notifies the appropriate model listeners.
  59. *
  60. * @param dlSyncEvent the dl sync event
  61. * @return the dl sync event that was removed
  62. */
  63. @Override
  64. public com.liferay.document.library.sync.model.DLSyncEvent
  65. deleteDLSyncEvent(
  66. com.liferay.document.library.sync.model.DLSyncEvent dlSyncEvent) {
  67. return _dlSyncEventLocalService.deleteDLSyncEvent(dlSyncEvent);
  68. }
  69. /**
  70. * Deletes the dl sync event with the primary key from the database. Also notifies the appropriate model listeners.
  71. *
  72. * @param syncEventId the primary key of the dl sync event
  73. * @return the dl sync event that was removed
  74. * @throws PortalException if a dl sync event with the primary key could not be found
  75. */
  76. @Override
  77. public com.liferay.document.library.sync.model.DLSyncEvent
  78. deleteDLSyncEvent(long syncEventId)
  79. throws com.liferay.portal.kernel.exception.PortalException {
  80. return _dlSyncEventLocalService.deleteDLSyncEvent(syncEventId);
  81. }
  82. @Override
  83. public void deleteDLSyncEvents() {
  84. _dlSyncEventLocalService.deleteDLSyncEvents();
  85. }
  86. /**
  87. * @throws PortalException
  88. */
  89. @Override
  90. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  91. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  92. throws com.liferay.portal.kernel.exception.PortalException {
  93. return _dlSyncEventLocalService.deletePersistedModel(persistedModel);
  94. }
  95. @Override
  96. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  97. return _dlSyncEventLocalService.dynamicQuery();
  98. }
  99. /**
  100. * Performs a dynamic query on the database and returns the matching rows.
  101. *
  102. * @param dynamicQuery the dynamic query
  103. * @return the matching rows
  104. */
  105. @Override
  106. public <T> java.util.List<T> dynamicQuery(
  107. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  108. return _dlSyncEventLocalService.dynamicQuery(dynamicQuery);
  109. }
  110. /**
  111. * Performs a dynamic query on the database and returns a range of the matching rows.
  112. *
  113. * <p>
  114. * 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.document.library.sync.model.impl.DLSyncEventModelImpl</code>.
  115. * </p>
  116. *
  117. * @param dynamicQuery the dynamic query
  118. * @param start the lower bound of the range of model instances
  119. * @param end the upper bound of the range of model instances (not inclusive)
  120. * @return the range of matching rows
  121. */
  122. @Override
  123. public <T> java.util.List<T> dynamicQuery(
  124. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  125. int end) {
  126. return _dlSyncEventLocalService.dynamicQuery(dynamicQuery, start, end);
  127. }
  128. /**
  129. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  130. *
  131. * <p>
  132. * 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.document.library.sync.model.impl.DLSyncEventModelImpl</code>.
  133. * </p>
  134. *
  135. * @param dynamicQuery the dynamic query
  136. * @param start the lower bound of the range of model instances
  137. * @param end the upper bound of the range of model instances (not inclusive)
  138. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  139. * @return the ordered range of matching rows
  140. */
  141. @Override
  142. public <T> java.util.List<T> dynamicQuery(
  143. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  144. int end,
  145. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  146. return _dlSyncEventLocalService.dynamicQuery(
  147. dynamicQuery, start, end, orderByComparator);
  148. }
  149. /**
  150. * Returns the number of rows matching the dynamic query.
  151. *
  152. * @param dynamicQuery the dynamic query
  153. * @return the number of rows matching the dynamic query
  154. */
  155. @Override
  156. public long dynamicQueryCount(
  157. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  158. return _dlSyncEventLocalService.dynamicQueryCount(dynamicQuery);
  159. }
  160. /**
  161. * Returns the number of rows matching the dynamic query.
  162. *
  163. * @param dynamicQuery the dynamic query
  164. * @param projection the projection to apply to the query
  165. * @return the number of rows matching the dynamic query
  166. */
  167. @Override
  168. public long dynamicQueryCount(
  169. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  170. com.liferay.portal.kernel.dao.orm.Projection projection) {
  171. return _dlSyncEventLocalService.dynamicQueryCount(
  172. dynamicQuery, projection);
  173. }
  174. @Override
  175. public com.liferay.document.library.sync.model.DLSyncEvent fetchDLSyncEvent(
  176. long syncEventId) {
  177. return _dlSyncEventLocalService.fetchDLSyncEvent(syncEventId);
  178. }
  179. @Override
  180. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
  181. getActionableDynamicQuery() {
  182. return _dlSyncEventLocalService.getActionableDynamicQuery();
  183. }
  184. /**
  185. * Returns the dl sync event with the primary key.
  186. *
  187. * @param syncEventId the primary key of the dl sync event
  188. * @return the dl sync event
  189. * @throws PortalException if a dl sync event with the primary key could not be found
  190. */
  191. @Override
  192. public com.liferay.document.library.sync.model.DLSyncEvent getDLSyncEvent(
  193. long syncEventId)
  194. throws com.liferay.portal.kernel.exception.PortalException {
  195. return _dlSyncEventLocalService.getDLSyncEvent(syncEventId);
  196. }
  197. /**
  198. * Returns a range of all the dl sync events.
  199. *
  200. * <p>
  201. * 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.document.library.sync.model.impl.DLSyncEventModelImpl</code>.
  202. * </p>
  203. *
  204. * @param start the lower bound of the range of dl sync events
  205. * @param end the upper bound of the range of dl sync events (not inclusive)
  206. * @return the range of dl sync events
  207. */
  208. @Override
  209. public java.util.List<com.liferay.document.library.sync.model.DLSyncEvent>
  210. getDLSyncEvents(int start, int end) {
  211. return _dlSyncEventLocalService.getDLSyncEvents(start, end);
  212. }
  213. @Override
  214. public java.util.List<com.liferay.document.library.sync.model.DLSyncEvent>
  215. getDLSyncEvents(long modifiedTime) {
  216. return _dlSyncEventLocalService.getDLSyncEvents(modifiedTime);
  217. }
  218. /**
  219. * Returns the number of dl sync events.
  220. *
  221. * @return the number of dl sync events
  222. */
  223. @Override
  224. public int getDLSyncEventsCount() {
  225. return _dlSyncEventLocalService.getDLSyncEventsCount();
  226. }
  227. @Override
  228. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
  229. getIndexableActionableDynamicQuery() {
  230. return _dlSyncEventLocalService.getIndexableActionableDynamicQuery();
  231. }
  232. @Override
  233. public java.util.List<com.liferay.document.library.sync.model.DLSyncEvent>
  234. getLatestDLSyncEvents() {
  235. return _dlSyncEventLocalService.getLatestDLSyncEvents();
  236. }
  237. /**
  238. * Returns the OSGi service identifier.
  239. *
  240. * @return the OSGi service identifier
  241. */
  242. @Override
  243. public String getOSGiServiceIdentifier() {
  244. return _dlSyncEventLocalService.getOSGiServiceIdentifier();
  245. }
  246. @Override
  247. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  248. java.io.Serializable primaryKeyObj)
  249. throws com.liferay.portal.kernel.exception.PortalException {
  250. return _dlSyncEventLocalService.getPersistedModel(primaryKeyObj);
  251. }
  252. /**
  253. * Updates the dl sync event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  254. *
  255. * @param dlSyncEvent the dl sync event
  256. * @return the dl sync event that was updated
  257. */
  258. @Override
  259. public com.liferay.document.library.sync.model.DLSyncEvent
  260. updateDLSyncEvent(
  261. com.liferay.document.library.sync.model.DLSyncEvent dlSyncEvent) {
  262. return _dlSyncEventLocalService.updateDLSyncEvent(dlSyncEvent);
  263. }
  264. @Override
  265. public DLSyncEventLocalService getWrappedService() {
  266. return _dlSyncEventLocalService;
  267. }
  268. @Override
  269. public void setWrappedService(
  270. DLSyncEventLocalService dlSyncEventLocalService) {
  271. _dlSyncEventLocalService = dlSyncEventLocalService;
  272. }
  273. private DLSyncEventLocalService _dlSyncEventLocalService;
  274. }