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