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