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            /**
209            * Returns the Spring bean ID for this bean.
210            *
211            * @return the Spring bean ID for this bean
212            */
213            @Override
214            public java.lang.String getBeanIdentifier() {
215                    return _ticketLocalService.getBeanIdentifier();
216            }
217    
218            @Override
219            public com.liferay.portal.model.PersistedModel getPersistedModel(
220                    java.io.Serializable primaryKeyObj)
221                    throws com.liferay.portal.kernel.exception.PortalException {
222                    return _ticketLocalService.getPersistedModel(primaryKeyObj);
223            }
224    
225            @Override
226            public com.liferay.portal.model.Ticket getTicket(java.lang.String key)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _ticketLocalService.getTicket(key);
229            }
230    
231            /**
232            * Returns the ticket with the primary key.
233            *
234            * @param ticketId the primary key of the ticket
235            * @return the ticket
236            * @throws PortalException if a ticket with the primary key could not be found
237            */
238            @Override
239            public com.liferay.portal.model.Ticket getTicket(long ticketId)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _ticketLocalService.getTicket(ticketId);
242            }
243    
244            /**
245            * Returns a range of all the tickets.
246            *
247            * <p>
248            * 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.
249            * </p>
250            *
251            * @param start the lower bound of the range of tickets
252            * @param end the upper bound of the range of tickets (not inclusive)
253            * @return the range of tickets
254            */
255            @Override
256            public java.util.List<com.liferay.portal.model.Ticket> getTickets(
257                    int start, int end) {
258                    return _ticketLocalService.getTickets(start, end);
259            }
260    
261            /**
262            * Returns the number of tickets.
263            *
264            * @return the number of tickets
265            */
266            @Override
267            public int getTicketsCount() {
268                    return _ticketLocalService.getTicketsCount();
269            }
270    
271            /**
272            * Sets the Spring bean ID for this bean.
273            *
274            * @param beanIdentifier the Spring bean ID for this bean
275            */
276            @Override
277            public void setBeanIdentifier(java.lang.String beanIdentifier) {
278                    _ticketLocalService.setBeanIdentifier(beanIdentifier);
279            }
280    
281            /**
282            * Updates the ticket in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
283            *
284            * @param ticket the ticket
285            * @return the ticket that was updated
286            */
287            @Override
288            public com.liferay.portal.model.Ticket updateTicket(
289                    com.liferay.portal.model.Ticket ticket) {
290                    return _ticketLocalService.updateTicket(ticket);
291            }
292    
293            /**
294             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
295             */
296            @Deprecated
297            public TicketLocalService getWrappedTicketLocalService() {
298                    return _ticketLocalService;
299            }
300    
301            /**
302             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
303             */
304            @Deprecated
305            public void setWrappedTicketLocalService(
306                    TicketLocalService ticketLocalService) {
307                    _ticketLocalService = ticketLocalService;
308            }
309    
310            @Override
311            public TicketLocalService getWrappedService() {
312                    return _ticketLocalService;
313            }
314    
315            @Override
316            public void setWrappedService(TicketLocalService ticketLocalService) {
317                    _ticketLocalService = ticketLocalService;
318            }
319    
320            private TicketLocalService _ticketLocalService;
321    }