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