001    /**
002     * Copyright (c) 2000-2012 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.portlet.softwarecatalog.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SCLicenseLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SCLicenseLocalService
026     * @generated
027     */
028    public class SCLicenseLocalServiceWrapper implements SCLicenseLocalService,
029            ServiceWrapper<SCLicenseLocalService> {
030            public SCLicenseLocalServiceWrapper(
031                    SCLicenseLocalService scLicenseLocalService) {
032                    _scLicenseLocalService = scLicenseLocalService;
033            }
034    
035            /**
036            * Adds the s c license to the database. Also notifies the appropriate model listeners.
037            *
038            * @param scLicense the s c license
039            * @return the s c license that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
043                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _scLicenseLocalService.addSCLicense(scLicense);
046            }
047    
048            /**
049            * Creates a new s c license with the primary key. Does not add the s c license to the database.
050            *
051            * @param licenseId the primary key for the new s c license
052            * @return the new s c license
053            */
054            public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
055                    long licenseId) {
056                    return _scLicenseLocalService.createSCLicense(licenseId);
057            }
058    
059            /**
060            * Deletes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param licenseId the primary key of the s c license
063            * @throws PortalException if a s c license with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteSCLicense(long licenseId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _scLicenseLocalService.deleteSCLicense(licenseId);
070            }
071    
072            /**
073            * Deletes the s c license from the database. Also notifies the appropriate model listeners.
074            *
075            * @param scLicense the s c license
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteSCLicense(
079                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _scLicenseLocalService.deleteSCLicense(scLicense);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _scLicenseLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _scLicenseLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
156                    long licenseId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _scLicenseLocalService.fetchSCLicense(licenseId);
159            }
160    
161            /**
162            * Returns the s c license with the primary key.
163            *
164            * @param licenseId the primary key of the s c license
165            * @return the s c license
166            * @throws PortalException if a s c license with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
170                    long licenseId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _scLicenseLocalService.getSCLicense(licenseId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _scLicenseLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the s c licenses.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of s c licenses
191            * @param end the upper bound of the range of s c licenses (not inclusive)
192            * @return the range of s c licenses
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _scLicenseLocalService.getSCLicenses(start, end);
199            }
200    
201            /**
202            * Returns the number of s c licenses.
203            *
204            * @return the number of s c licenses
205            * @throws SystemException if a system exception occurred
206            */
207            public int getSCLicensesCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _scLicenseLocalService.getSCLicensesCount();
210            }
211    
212            /**
213            * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param scLicense the s c license
216            * @return the s c license that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
220                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _scLicenseLocalService.updateSCLicense(scLicense);
223            }
224    
225            /**
226            * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param scLicense the s c license
229            * @param merge whether to merge the s c license with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the s c license that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
234                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
235                    boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _scLicenseLocalService.updateSCLicense(scLicense, merge);
238            }
239    
240            /**
241            * Returns the Spring bean ID for this bean.
242            *
243            * @return the Spring bean ID for this bean
244            */
245            public java.lang.String getBeanIdentifier() {
246                    return _scLicenseLocalService.getBeanIdentifier();
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    _scLicenseLocalService.setBeanIdentifier(beanIdentifier);
256            }
257    
258            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
259                    java.lang.String name, java.lang.String url, boolean openSource,
260                    boolean active, boolean recommended)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _scLicenseLocalService.addLicense(name, url, openSource, active,
264                            recommended);
265            }
266    
267            public void deleteLicense(long licenseId)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    _scLicenseLocalService.deleteLicense(licenseId);
271            }
272    
273            public void deleteLicense(
274                    com.liferay.portlet.softwarecatalog.model.SCLicense license)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    _scLicenseLocalService.deleteLicense(license);
277            }
278    
279            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
280                    long licenseId)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _scLicenseLocalService.getLicense(licenseId);
284            }
285    
286            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _scLicenseLocalService.getLicenses();
289            }
290    
291            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
292                    boolean active, boolean recommended)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _scLicenseLocalService.getLicenses(active, recommended);
295            }
296    
297            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
298                    boolean active, boolean recommended, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _scLicenseLocalService.getLicenses(active, recommended, start,
301                            end);
302            }
303    
304            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
305                    int start, int end)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _scLicenseLocalService.getLicenses(start, end);
308            }
309    
310            public int getLicensesCount()
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _scLicenseLocalService.getLicensesCount();
313            }
314    
315            public int getLicensesCount(boolean active, boolean recommended)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _scLicenseLocalService.getLicensesCount(active, recommended);
318            }
319    
320            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
321                    long productEntryId)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _scLicenseLocalService.getProductEntryLicenses(productEntryId);
324            }
325    
326            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
327                    long licenseId, java.lang.String name, java.lang.String url,
328                    boolean openSource, boolean active, boolean recommended)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _scLicenseLocalService.updateLicense(licenseId, name, url,
332                            openSource, active, recommended);
333            }
334    
335            /**
336             * @deprecated Renamed to {@link #getWrappedService}
337             */
338            public SCLicenseLocalService getWrappedSCLicenseLocalService() {
339                    return _scLicenseLocalService;
340            }
341    
342            /**
343             * @deprecated Renamed to {@link #setWrappedService}
344             */
345            public void setWrappedSCLicenseLocalService(
346                    SCLicenseLocalService scLicenseLocalService) {
347                    _scLicenseLocalService = scLicenseLocalService;
348            }
349    
350            public SCLicenseLocalService getWrappedService() {
351                    return _scLicenseLocalService;
352            }
353    
354            public void setWrappedService(SCLicenseLocalService scLicenseLocalService) {
355                    _scLicenseLocalService = scLicenseLocalService;
356            }
357    
358            private SCLicenseLocalService _scLicenseLocalService;
359    }