001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DLSyncEventLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLSyncEventLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class DLSyncEventLocalServiceWrapper implements DLSyncEventLocalService, 030 ServiceWrapper<DLSyncEventLocalService> { 031 public DLSyncEventLocalServiceWrapper( 032 DLSyncEventLocalService dlSyncEventLocalService) { 033 _dlSyncEventLocalService = dlSyncEventLocalService; 034 } 035 036 /** 037 * Adds the d l sync event to the database. Also notifies the appropriate model listeners. 038 * 039 * @param dlSyncEvent the d l sync event 040 * @return the d l sync event that was added 041 */ 042 @Override 043 public com.liferay.portlet.documentlibrary.model.DLSyncEvent addDLSyncEvent( 044 com.liferay.portlet.documentlibrary.model.DLSyncEvent dlSyncEvent) { 045 return _dlSyncEventLocalService.addDLSyncEvent(dlSyncEvent); 046 } 047 048 @Override 049 public com.liferay.portlet.documentlibrary.model.DLSyncEvent addDLSyncEvent( 050 java.lang.String event, java.lang.String type, long typePK) { 051 return _dlSyncEventLocalService.addDLSyncEvent(event, type, typePK); 052 } 053 054 /** 055 * Creates a new d l sync event with the primary key. Does not add the d l sync event to the database. 056 * 057 * @param syncEventId the primary key for the new d l sync event 058 * @return the new d l sync event 059 */ 060 @Override 061 public com.liferay.portlet.documentlibrary.model.DLSyncEvent createDLSyncEvent( 062 long syncEventId) { 063 return _dlSyncEventLocalService.createDLSyncEvent(syncEventId); 064 } 065 066 /** 067 * Deletes the d l sync event from the database. Also notifies the appropriate model listeners. 068 * 069 * @param dlSyncEvent the d l sync event 070 * @return the d l sync event that was removed 071 */ 072 @Override 073 public com.liferay.portlet.documentlibrary.model.DLSyncEvent deleteDLSyncEvent( 074 com.liferay.portlet.documentlibrary.model.DLSyncEvent dlSyncEvent) { 075 return _dlSyncEventLocalService.deleteDLSyncEvent(dlSyncEvent); 076 } 077 078 /** 079 * Deletes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners. 080 * 081 * @param syncEventId the primary key of the d l sync event 082 * @return the d l sync event that was removed 083 * @throws PortalException if a d l sync event with the primary key could not be found 084 */ 085 @Override 086 public com.liferay.portlet.documentlibrary.model.DLSyncEvent deleteDLSyncEvent( 087 long syncEventId) 088 throws com.liferay.portal.kernel.exception.PortalException { 089 return _dlSyncEventLocalService.deleteDLSyncEvent(syncEventId); 090 } 091 092 @Override 093 public void deleteDLSyncEvents() { 094 _dlSyncEventLocalService.deleteDLSyncEvents(); 095 } 096 097 /** 098 * @throws PortalException 099 */ 100 @Override 101 public com.liferay.portal.model.PersistedModel deletePersistedModel( 102 com.liferay.portal.model.PersistedModel persistedModel) 103 throws com.liferay.portal.kernel.exception.PortalException { 104 return _dlSyncEventLocalService.deletePersistedModel(persistedModel); 105 } 106 107 @Override 108 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 109 return _dlSyncEventLocalService.dynamicQuery(); 110 } 111 112 /** 113 * Performs a dynamic query on the database and returns the matching rows. 114 * 115 * @param dynamicQuery the dynamic query 116 * @return the matching rows 117 */ 118 @Override 119 public <T> java.util.List<T> dynamicQuery( 120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 121 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery); 122 } 123 124 /** 125 * Performs a dynamic query on the database and returns a range of the matching rows. 126 * 127 * <p> 128 * 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.portlet.documentlibrary.model.impl.DLSyncEventModelImpl}. 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. 129 * </p> 130 * 131 * @param dynamicQuery the dynamic query 132 * @param start the lower bound of the range of model instances 133 * @param end the upper bound of the range of model instances (not inclusive) 134 * @return the range of matching rows 135 */ 136 @Override 137 public <T> java.util.List<T> dynamicQuery( 138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 139 int end) { 140 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery, start, end); 141 } 142 143 /** 144 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 145 * 146 * <p> 147 * 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.portlet.documentlibrary.model.impl.DLSyncEventModelImpl}. 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. 148 * </p> 149 * 150 * @param dynamicQuery the dynamic query 151 * @param start the lower bound of the range of model instances 152 * @param end the upper bound of the range of model instances (not inclusive) 153 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 154 * @return the ordered range of matching rows 155 */ 156 @Override 157 public <T> java.util.List<T> dynamicQuery( 158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 159 int end, 160 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 161 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery, start, end, 162 orderByComparator); 163 } 164 165 /** 166 * Returns the number of rows matching the dynamic query. 167 * 168 * @param dynamicQuery the dynamic query 169 * @return the number of rows matching the dynamic query 170 */ 171 @Override 172 public long dynamicQueryCount( 173 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 174 return _dlSyncEventLocalService.dynamicQueryCount(dynamicQuery); 175 } 176 177 /** 178 * Returns the number of rows matching the dynamic query. 179 * 180 * @param dynamicQuery the dynamic query 181 * @param projection the projection to apply to the query 182 * @return the number of rows matching the dynamic query 183 */ 184 @Override 185 public long dynamicQueryCount( 186 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 187 com.liferay.portal.kernel.dao.orm.Projection projection) { 188 return _dlSyncEventLocalService.dynamicQueryCount(dynamicQuery, 189 projection); 190 } 191 192 @Override 193 public com.liferay.portlet.documentlibrary.model.DLSyncEvent fetchDLSyncEvent( 194 long syncEventId) { 195 return _dlSyncEventLocalService.fetchDLSyncEvent(syncEventId); 196 } 197 198 @Override 199 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 200 return _dlSyncEventLocalService.getActionableDynamicQuery(); 201 } 202 203 /** 204 * Returns the d l sync event with the primary key. 205 * 206 * @param syncEventId the primary key of the d l sync event 207 * @return the d l sync event 208 * @throws PortalException if a d l sync event with the primary key could not be found 209 */ 210 @Override 211 public com.liferay.portlet.documentlibrary.model.DLSyncEvent getDLSyncEvent( 212 long syncEventId) 213 throws com.liferay.portal.kernel.exception.PortalException { 214 return _dlSyncEventLocalService.getDLSyncEvent(syncEventId); 215 } 216 217 @Override 218 public java.util.List<com.liferay.portlet.documentlibrary.model.DLSyncEvent> getDLSyncEvents( 219 long modifiedTime) { 220 return _dlSyncEventLocalService.getDLSyncEvents(modifiedTime); 221 } 222 223 /** 224 * Returns a range of all the d l sync events. 225 * 226 * <p> 227 * 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.portlet.documentlibrary.model.impl.DLSyncEventModelImpl}. 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. 228 * </p> 229 * 230 * @param start the lower bound of the range of d l sync events 231 * @param end the upper bound of the range of d l sync events (not inclusive) 232 * @return the range of d l sync events 233 */ 234 @Override 235 public java.util.List<com.liferay.portlet.documentlibrary.model.DLSyncEvent> getDLSyncEvents( 236 int start, int end) { 237 return _dlSyncEventLocalService.getDLSyncEvents(start, end); 238 } 239 240 /** 241 * Returns the number of d l sync events. 242 * 243 * @return the number of d l sync events 244 */ 245 @Override 246 public int getDLSyncEventsCount() { 247 return _dlSyncEventLocalService.getDLSyncEventsCount(); 248 } 249 250 @Override 251 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 252 return _dlSyncEventLocalService.getIndexableActionableDynamicQuery(); 253 } 254 255 @Override 256 public java.util.List<com.liferay.portlet.documentlibrary.model.DLSyncEvent> getLatestDLSyncEvents() { 257 return _dlSyncEventLocalService.getLatestDLSyncEvents(); 258 } 259 260 /** 261 * Returns the OSGi service identifier. 262 * 263 * @return the OSGi service identifier 264 */ 265 @Override 266 public java.lang.String getOSGiServiceIdentifier() { 267 return _dlSyncEventLocalService.getOSGiServiceIdentifier(); 268 } 269 270 @Override 271 public com.liferay.portal.model.PersistedModel getPersistedModel( 272 java.io.Serializable primaryKeyObj) 273 throws com.liferay.portal.kernel.exception.PortalException { 274 return _dlSyncEventLocalService.getPersistedModel(primaryKeyObj); 275 } 276 277 /** 278 * Updates the d l sync event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 279 * 280 * @param dlSyncEvent the d l sync event 281 * @return the d l sync event that was updated 282 */ 283 @Override 284 public com.liferay.portlet.documentlibrary.model.DLSyncEvent updateDLSyncEvent( 285 com.liferay.portlet.documentlibrary.model.DLSyncEvent dlSyncEvent) { 286 return _dlSyncEventLocalService.updateDLSyncEvent(dlSyncEvent); 287 } 288 289 @Override 290 public DLSyncEventLocalService getWrappedService() { 291 return _dlSyncEventLocalService; 292 } 293 294 @Override 295 public void setWrappedService( 296 DLSyncEventLocalService dlSyncEventLocalService) { 297 _dlSyncEventLocalService = dlSyncEventLocalService; 298 } 299 300 private DLSyncEventLocalService _dlSyncEventLocalService; 301 }