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.document.library.kernel.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.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.document.library.kernel.model.DLSyncEvent addDLSyncEvent( 044 com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent) { 045 return _dlSyncEventLocalService.addDLSyncEvent(dlSyncEvent); 046 } 047 048 @Override 049 public com.liferay.document.library.kernel.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.document.library.kernel.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.document.library.kernel.model.DLSyncEvent deleteDLSyncEvent( 074 com.liferay.document.library.kernel.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.document.library.kernel.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 com.liferay.document.library.kernel.model.DLSyncEvent fetchDLSyncEvent( 094 long syncEventId) { 095 return _dlSyncEventLocalService.fetchDLSyncEvent(syncEventId); 096 } 097 098 /** 099 * Returns the d l sync event with the primary key. 100 * 101 * @param syncEventId the primary key of the d l sync event 102 * @return the d l sync event 103 * @throws PortalException if a d l sync event with the primary key could not be found 104 */ 105 @Override 106 public com.liferay.document.library.kernel.model.DLSyncEvent getDLSyncEvent( 107 long syncEventId) 108 throws com.liferay.portal.kernel.exception.PortalException { 109 return _dlSyncEventLocalService.getDLSyncEvent(syncEventId); 110 } 111 112 /** 113 * Updates the d l sync event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 114 * 115 * @param dlSyncEvent the d l sync event 116 * @return the d l sync event that was updated 117 */ 118 @Override 119 public com.liferay.document.library.kernel.model.DLSyncEvent updateDLSyncEvent( 120 com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent) { 121 return _dlSyncEventLocalService.updateDLSyncEvent(dlSyncEvent); 122 } 123 124 @Override 125 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 126 return _dlSyncEventLocalService.getActionableDynamicQuery(); 127 } 128 129 @Override 130 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 131 return _dlSyncEventLocalService.dynamicQuery(); 132 } 133 134 @Override 135 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 136 return _dlSyncEventLocalService.getIndexableActionableDynamicQuery(); 137 } 138 139 /** 140 * @throws PortalException 141 */ 142 @Override 143 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 144 com.liferay.portal.kernel.model.PersistedModel persistedModel) 145 throws com.liferay.portal.kernel.exception.PortalException { 146 return _dlSyncEventLocalService.deletePersistedModel(persistedModel); 147 } 148 149 @Override 150 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 151 java.io.Serializable primaryKeyObj) 152 throws com.liferay.portal.kernel.exception.PortalException { 153 return _dlSyncEventLocalService.getPersistedModel(primaryKeyObj); 154 } 155 156 /** 157 * Returns the number of d l sync events. 158 * 159 * @return the number of d l sync events 160 */ 161 @Override 162 public int getDLSyncEventsCount() { 163 return _dlSyncEventLocalService.getDLSyncEventsCount(); 164 } 165 166 /** 167 * Returns the OSGi service identifier. 168 * 169 * @return the OSGi service identifier 170 */ 171 @Override 172 public java.lang.String getOSGiServiceIdentifier() { 173 return _dlSyncEventLocalService.getOSGiServiceIdentifier(); 174 } 175 176 /** 177 * Performs a dynamic query on the database and returns the matching rows. 178 * 179 * @param dynamicQuery the dynamic query 180 * @return the matching rows 181 */ 182 @Override 183 public <T> java.util.List<T> dynamicQuery( 184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 185 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery); 186 } 187 188 /** 189 * Performs a dynamic query on the database and returns a range of the matching rows. 190 * 191 * <p> 192 * 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. 193 * </p> 194 * 195 * @param dynamicQuery the dynamic query 196 * @param start the lower bound of the range of model instances 197 * @param end the upper bound of the range of model instances (not inclusive) 198 * @return the range of matching rows 199 */ 200 @Override 201 public <T> java.util.List<T> dynamicQuery( 202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 203 int end) { 204 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery, start, end); 205 } 206 207 /** 208 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param dynamicQuery the dynamic query 215 * @param start the lower bound of the range of model instances 216 * @param end the upper bound of the range of model instances (not inclusive) 217 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 218 * @return the ordered range of matching rows 219 */ 220 @Override 221 public <T> java.util.List<T> dynamicQuery( 222 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 223 int end, 224 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 225 return _dlSyncEventLocalService.dynamicQuery(dynamicQuery, start, end, 226 orderByComparator); 227 } 228 229 /** 230 * Returns a range of all the d l sync events. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param start the lower bound of the range of d l sync events 237 * @param end the upper bound of the range of d l sync events (not inclusive) 238 * @return the range of d l sync events 239 */ 240 @Override 241 public java.util.List<com.liferay.document.library.kernel.model.DLSyncEvent> getDLSyncEvents( 242 int start, int end) { 243 return _dlSyncEventLocalService.getDLSyncEvents(start, end); 244 } 245 246 @Override 247 public java.util.List<com.liferay.document.library.kernel.model.DLSyncEvent> getDLSyncEvents( 248 long modifiedTime) { 249 return _dlSyncEventLocalService.getDLSyncEvents(modifiedTime); 250 } 251 252 @Override 253 public java.util.List<com.liferay.document.library.kernel.model.DLSyncEvent> getLatestDLSyncEvents() { 254 return _dlSyncEventLocalService.getLatestDLSyncEvents(); 255 } 256 257 /** 258 * Returns the number of rows matching the dynamic query. 259 * 260 * @param dynamicQuery the dynamic query 261 * @return the number of rows matching the dynamic query 262 */ 263 @Override 264 public long dynamicQueryCount( 265 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 266 return _dlSyncEventLocalService.dynamicQueryCount(dynamicQuery); 267 } 268 269 /** 270 * Returns the number of rows matching the dynamic query. 271 * 272 * @param dynamicQuery the dynamic query 273 * @param projection the projection to apply to the query 274 * @return the number of rows matching the dynamic query 275 */ 276 @Override 277 public long dynamicQueryCount( 278 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 279 com.liferay.portal.kernel.dao.orm.Projection projection) { 280 return _dlSyncEventLocalService.dynamicQueryCount(dynamicQuery, 281 projection); 282 } 283 284 @Override 285 public void deleteDLSyncEvents() { 286 _dlSyncEventLocalService.deleteDLSyncEvents(); 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 }