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