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