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.portal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 /** 020 * Provides a wrapper for {@link TicketLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see TicketLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class TicketLocalServiceWrapper implements TicketLocalService, 028 ServiceWrapper<TicketLocalService> { 029 public TicketLocalServiceWrapper(TicketLocalService ticketLocalService) { 030 _ticketLocalService = ticketLocalService; 031 } 032 033 @Override 034 public com.liferay.portal.model.Ticket addDistinctTicket(long companyId, 035 java.lang.String className, long classPK, int type, 036 java.lang.String extraInfo, java.util.Date expirationDate, 037 com.liferay.portal.service.ServiceContext serviceContext) { 038 return _ticketLocalService.addDistinctTicket(companyId, className, 039 classPK, type, extraInfo, expirationDate, serviceContext); 040 } 041 042 @Override 043 public com.liferay.portal.model.Ticket addTicket(long companyId, 044 java.lang.String className, long classPK, int type, 045 java.lang.String extraInfo, java.util.Date expirationDate, 046 com.liferay.portal.service.ServiceContext serviceContext) { 047 return _ticketLocalService.addTicket(companyId, className, classPK, 048 type, extraInfo, expirationDate, serviceContext); 049 } 050 051 /** 052 * Adds the ticket to the database. Also notifies the appropriate model listeners. 053 * 054 * @param ticket the ticket 055 * @return the ticket that was added 056 */ 057 @Override 058 public com.liferay.portal.model.Ticket addTicket( 059 com.liferay.portal.model.Ticket ticket) { 060 return _ticketLocalService.addTicket(ticket); 061 } 062 063 /** 064 * Creates a new ticket with the primary key. Does not add the ticket to the database. 065 * 066 * @param ticketId the primary key for the new ticket 067 * @return the new ticket 068 */ 069 @Override 070 public com.liferay.portal.model.Ticket createTicket(long ticketId) { 071 return _ticketLocalService.createTicket(ticketId); 072 } 073 074 /** 075 * @throws PortalException 076 */ 077 @Override 078 public com.liferay.portal.model.PersistedModel deletePersistedModel( 079 com.liferay.portal.model.PersistedModel persistedModel) 080 throws com.liferay.portal.kernel.exception.PortalException { 081 return _ticketLocalService.deletePersistedModel(persistedModel); 082 } 083 084 /** 085 * Deletes the ticket from the database. Also notifies the appropriate model listeners. 086 * 087 * @param ticket the ticket 088 * @return the ticket that was removed 089 */ 090 @Override 091 public com.liferay.portal.model.Ticket deleteTicket( 092 com.liferay.portal.model.Ticket ticket) { 093 return _ticketLocalService.deleteTicket(ticket); 094 } 095 096 /** 097 * Deletes the ticket with the primary key from the database. Also notifies the appropriate model listeners. 098 * 099 * @param ticketId the primary key of the ticket 100 * @return the ticket that was removed 101 * @throws PortalException if a ticket with the primary key could not be found 102 */ 103 @Override 104 public com.liferay.portal.model.Ticket deleteTicket(long ticketId) 105 throws com.liferay.portal.kernel.exception.PortalException { 106 return _ticketLocalService.deleteTicket(ticketId); 107 } 108 109 @Override 110 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 111 return _ticketLocalService.dynamicQuery(); 112 } 113 114 /** 115 * Performs a dynamic query on the database and returns the matching rows. 116 * 117 * @param dynamicQuery the dynamic query 118 * @return the matching rows 119 */ 120 @Override 121 public <T> java.util.List<T> dynamicQuery( 122 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 123 return _ticketLocalService.dynamicQuery(dynamicQuery); 124 } 125 126 /** 127 * Performs a dynamic query on the database and returns a range of the matching rows. 128 * 129 * <p> 130 * 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.portal.model.impl.TicketModelImpl}. 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. 131 * </p> 132 * 133 * @param dynamicQuery the dynamic query 134 * @param start the lower bound of the range of model instances 135 * @param end the upper bound of the range of model instances (not inclusive) 136 * @return the range of matching rows 137 */ 138 @Override 139 public <T> java.util.List<T> dynamicQuery( 140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 141 int end) { 142 return _ticketLocalService.dynamicQuery(dynamicQuery, start, end); 143 } 144 145 /** 146 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 147 * 148 * <p> 149 * 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.portal.model.impl.TicketModelImpl}. 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. 150 * </p> 151 * 152 * @param dynamicQuery the dynamic query 153 * @param start the lower bound of the range of model instances 154 * @param end the upper bound of the range of model instances (not inclusive) 155 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 156 * @return the ordered range of matching rows 157 */ 158 @Override 159 public <T> java.util.List<T> dynamicQuery( 160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 161 int end, 162 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 163 return _ticketLocalService.dynamicQuery(dynamicQuery, start, end, 164 orderByComparator); 165 } 166 167 /** 168 * Returns the number of rows matching the dynamic query. 169 * 170 * @param dynamicQuery the dynamic query 171 * @return the number of rows matching the dynamic query 172 */ 173 @Override 174 public long dynamicQueryCount( 175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 176 return _ticketLocalService.dynamicQueryCount(dynamicQuery); 177 } 178 179 /** 180 * Returns the number of rows matching the dynamic query. 181 * 182 * @param dynamicQuery the dynamic query 183 * @param projection the projection to apply to the query 184 * @return the number of rows matching the dynamic query 185 */ 186 @Override 187 public long dynamicQueryCount( 188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 189 com.liferay.portal.kernel.dao.orm.Projection projection) { 190 return _ticketLocalService.dynamicQueryCount(dynamicQuery, projection); 191 } 192 193 @Override 194 public com.liferay.portal.model.Ticket fetchTicket(java.lang.String key) { 195 return _ticketLocalService.fetchTicket(key); 196 } 197 198 @Override 199 public com.liferay.portal.model.Ticket fetchTicket(long ticketId) { 200 return _ticketLocalService.fetchTicket(ticketId); 201 } 202 203 @Override 204 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 205 return _ticketLocalService.getActionableDynamicQuery(); 206 } 207 208 @Override 209 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 210 return _ticketLocalService.getIndexableActionableDynamicQuery(); 211 } 212 213 /** 214 * Returns the OSGi service identifier. 215 * 216 * @return the OSGi service identifier 217 */ 218 @Override 219 public java.lang.String getOSGiServiceIdentifier() { 220 return _ticketLocalService.getOSGiServiceIdentifier(); 221 } 222 223 @Override 224 public com.liferay.portal.model.PersistedModel getPersistedModel( 225 java.io.Serializable primaryKeyObj) 226 throws com.liferay.portal.kernel.exception.PortalException { 227 return _ticketLocalService.getPersistedModel(primaryKeyObj); 228 } 229 230 @Override 231 public com.liferay.portal.model.Ticket getTicket(java.lang.String key) 232 throws com.liferay.portal.kernel.exception.PortalException { 233 return _ticketLocalService.getTicket(key); 234 } 235 236 /** 237 * Returns the ticket with the primary key. 238 * 239 * @param ticketId the primary key of the ticket 240 * @return the ticket 241 * @throws PortalException if a ticket with the primary key could not be found 242 */ 243 @Override 244 public com.liferay.portal.model.Ticket getTicket(long ticketId) 245 throws com.liferay.portal.kernel.exception.PortalException { 246 return _ticketLocalService.getTicket(ticketId); 247 } 248 249 /** 250 * Returns a range of all the tickets. 251 * 252 * <p> 253 * 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.portal.model.impl.TicketModelImpl}. 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. 254 * </p> 255 * 256 * @param start the lower bound of the range of tickets 257 * @param end the upper bound of the range of tickets (not inclusive) 258 * @return the range of tickets 259 */ 260 @Override 261 public java.util.List<com.liferay.portal.model.Ticket> getTickets( 262 int start, int end) { 263 return _ticketLocalService.getTickets(start, end); 264 } 265 266 /** 267 * Returns the number of tickets. 268 * 269 * @return the number of tickets 270 */ 271 @Override 272 public int getTicketsCount() { 273 return _ticketLocalService.getTicketsCount(); 274 } 275 276 /** 277 * Updates the ticket in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 278 * 279 * @param ticket the ticket 280 * @return the ticket that was updated 281 */ 282 @Override 283 public com.liferay.portal.model.Ticket updateTicket( 284 com.liferay.portal.model.Ticket ticket) { 285 return _ticketLocalService.updateTicket(ticket); 286 } 287 288 @Override 289 public TicketLocalService getWrappedService() { 290 return _ticketLocalService; 291 } 292 293 @Override 294 public void setWrappedService(TicketLocalService ticketLocalService) { 295 _ticketLocalService = ticketLocalService; 296 } 297 298 private TicketLocalService _ticketLocalService; 299 }