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