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.model.Ticket addDistinctTicket(
035                    long companyId, java.lang.String className, long classPK, int type,
036                    java.lang.String extraInfo, java.util.Date expirationDate,
037                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
038                    return _ticketLocalService.addDistinctTicket(companyId, className,
039                            classPK, type, extraInfo, expirationDate, serviceContext);
040            }
041    
042            @Override
043            public com.liferay.portal.kernel.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.kernel.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.kernel.model.Ticket addTicket(
059                    com.liferay.portal.kernel.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.kernel.model.Ticket createTicket(long ticketId) {
071                    return _ticketLocalService.createTicket(ticketId);
072            }
073    
074            /**
075            * @throws PortalException
076            */
077            @Override
078            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
079                    com.liferay.portal.kernel.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.kernel.model.Ticket deleteTicket(
092                    com.liferay.portal.kernel.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.kernel.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.kernel.model.Ticket fetchTicket(
195                    java.lang.String key) {
196                    return _ticketLocalService.fetchTicket(key);
197            }
198    
199            @Override
200            public com.liferay.portal.kernel.model.Ticket fetchTicket(long ticketId) {
201                    return _ticketLocalService.fetchTicket(ticketId);
202            }
203    
204            @Override
205            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
206                    return _ticketLocalService.getActionableDynamicQuery();
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
211                    return _ticketLocalService.getIndexableActionableDynamicQuery();
212            }
213    
214            /**
215            * Returns the OSGi service identifier.
216            *
217            * @return the OSGi service identifier
218            */
219            @Override
220            public java.lang.String getOSGiServiceIdentifier() {
221                    return _ticketLocalService.getOSGiServiceIdentifier();
222            }
223    
224            @Override
225            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
226                    java.io.Serializable primaryKeyObj)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _ticketLocalService.getPersistedModel(primaryKeyObj);
229            }
230    
231            @Override
232            public com.liferay.portal.kernel.model.Ticket getTicket(
233                    java.lang.String key)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return _ticketLocalService.getTicket(key);
236            }
237    
238            /**
239            * Returns the ticket with the primary key.
240            *
241            * @param ticketId the primary key of the ticket
242            * @return the ticket
243            * @throws PortalException if a ticket with the primary key could not be found
244            */
245            @Override
246            public com.liferay.portal.kernel.model.Ticket getTicket(long ticketId)
247                    throws com.liferay.portal.kernel.exception.PortalException {
248                    return _ticketLocalService.getTicket(ticketId);
249            }
250    
251            /**
252            * Returns a range of all the tickets.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param start the lower bound of the range of tickets
259            * @param end the upper bound of the range of tickets (not inclusive)
260            * @return the range of tickets
261            */
262            @Override
263            public java.util.List<com.liferay.portal.kernel.model.Ticket> getTickets(
264                    int start, int end) {
265                    return _ticketLocalService.getTickets(start, end);
266            }
267    
268            /**
269            * Returns the number of tickets.
270            *
271            * @return the number of tickets
272            */
273            @Override
274            public int getTicketsCount() {
275                    return _ticketLocalService.getTicketsCount();
276            }
277    
278            /**
279            * Updates the ticket in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
280            *
281            * @param ticket the ticket
282            * @return the ticket that was updated
283            */
284            @Override
285            public com.liferay.portal.kernel.model.Ticket updateTicket(
286                    com.liferay.portal.kernel.model.Ticket ticket) {
287                    return _ticketLocalService.updateTicket(ticket);
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    }