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