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