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    /**
018     * Provides a wrapper for {@link LockLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see LockLocalService
022     * @generated
023     */
024    public class LockLocalServiceWrapper implements LockLocalService,
025            ServiceWrapper<LockLocalService> {
026            public LockLocalServiceWrapper(LockLocalService lockLocalService) {
027                    _lockLocalService = lockLocalService;
028            }
029    
030            /**
031            * Adds the lock to the database. Also notifies the appropriate model listeners.
032            *
033            * @param lock the lock
034            * @return the lock that was added
035            * @throws SystemException if a system exception occurred
036            */
037            @Override
038            public com.liferay.portal.model.Lock addLock(
039                    com.liferay.portal.model.Lock lock)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _lockLocalService.addLock(lock);
042            }
043    
044            /**
045            * Creates a new lock with the primary key. Does not add the lock to the database.
046            *
047            * @param lockId the primary key for the new lock
048            * @return the new lock
049            */
050            @Override
051            public com.liferay.portal.model.Lock createLock(long lockId) {
052                    return _lockLocalService.createLock(lockId);
053            }
054    
055            /**
056            * Deletes the lock with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param lockId the primary key of the lock
059            * @return the lock that was removed
060            * @throws PortalException if a lock with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            @Override
064            public com.liferay.portal.model.Lock deleteLock(long lockId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _lockLocalService.deleteLock(lockId);
068            }
069    
070            /**
071            * Deletes the lock from the database. Also notifies the appropriate model listeners.
072            *
073            * @param lock the lock
074            * @return the lock that was removed
075            * @throws SystemException if a system exception occurred
076            */
077            @Override
078            public com.liferay.portal.model.Lock deleteLock(
079                    com.liferay.portal.model.Lock lock)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return _lockLocalService.deleteLock(lock);
082            }
083    
084            @Override
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _lockLocalService.dynamicQuery();
087            }
088    
089            /**
090            * Performs a dynamic query on the database and returns the matching rows.
091            *
092            * @param dynamicQuery the dynamic query
093            * @return the matching rows
094            * @throws SystemException if a system exception occurred
095            */
096            @Override
097            @SuppressWarnings("rawtypes")
098            public java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _lockLocalService.dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * 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.LockModelImpl}. 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.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @Override
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.LockModelImpl}. 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @Override
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
147                            orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            @Override
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _lockLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            /**
165            * Returns the number of rows that match the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @param projection the projection to apply to the query
169            * @return the number of rows that match the dynamic query
170            * @throws SystemException if a system exception occurred
171            */
172            @Override
173            public long dynamicQueryCount(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
175                    com.liferay.portal.kernel.dao.orm.Projection projection)
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return _lockLocalService.dynamicQueryCount(dynamicQuery, projection);
178            }
179    
180            @Override
181            public com.liferay.portal.model.Lock fetchLock(long lockId)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _lockLocalService.fetchLock(lockId);
184            }
185    
186            /**
187            * Returns the lock with the matching UUID and company.
188            *
189            * @param uuid the lock's UUID
190            * @param companyId the primary key of the company
191            * @return the matching lock, or <code>null</code> if a matching lock could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            @Override
195            public com.liferay.portal.model.Lock fetchLockByUuidAndCompanyId(
196                    java.lang.String uuid, long companyId)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _lockLocalService.fetchLockByUuidAndCompanyId(uuid, companyId);
199            }
200    
201            /**
202            * Returns the lock with the primary key.
203            *
204            * @param lockId the primary key of the lock
205            * @return the lock
206            * @throws PortalException if a lock with the primary key could not be found
207            * @throws SystemException if a system exception occurred
208            */
209            @Override
210            public com.liferay.portal.model.Lock getLock(long lockId)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return _lockLocalService.getLock(lockId);
214            }
215    
216            @Override
217            public com.liferay.portal.model.PersistedModel getPersistedModel(
218                    java.io.Serializable primaryKeyObj)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return _lockLocalService.getPersistedModel(primaryKeyObj);
222            }
223    
224            /**
225            * Returns the lock with the matching UUID and company.
226            *
227            * @param uuid the lock's UUID
228            * @param companyId the primary key of the company
229            * @return the matching lock
230            * @throws PortalException if a matching lock could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public com.liferay.portal.model.Lock getLockByUuidAndCompanyId(
235                    java.lang.String uuid, long companyId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _lockLocalService.getLockByUuidAndCompanyId(uuid, companyId);
239            }
240    
241            /**
242            * Returns a range of all the locks.
243            *
244            * <p>
245            * 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.LockModelImpl}. 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.
246            * </p>
247            *
248            * @param start the lower bound of the range of locks
249            * @param end the upper bound of the range of locks (not inclusive)
250            * @return the range of locks
251            * @throws SystemException if a system exception occurred
252            */
253            @Override
254            public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
255                    int end) throws com.liferay.portal.kernel.exception.SystemException {
256                    return _lockLocalService.getLocks(start, end);
257            }
258    
259            /**
260            * Returns the number of locks.
261            *
262            * @return the number of locks
263            * @throws SystemException if a system exception occurred
264            */
265            @Override
266            public int getLocksCount()
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _lockLocalService.getLocksCount();
269            }
270    
271            /**
272            * Updates the lock in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
273            *
274            * @param lock the lock
275            * @return the lock that was updated
276            * @throws SystemException if a system exception occurred
277            */
278            @Override
279            public com.liferay.portal.model.Lock updateLock(
280                    com.liferay.portal.model.Lock lock)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return _lockLocalService.updateLock(lock);
283            }
284    
285            /**
286            * Returns the Spring bean ID for this bean.
287            *
288            * @return the Spring bean ID for this bean
289            */
290            @Override
291            public java.lang.String getBeanIdentifier() {
292                    return _lockLocalService.getBeanIdentifier();
293            }
294    
295            /**
296            * Sets the Spring bean ID for this bean.
297            *
298            * @param beanIdentifier the Spring bean ID for this bean
299            */
300            @Override
301            public void setBeanIdentifier(java.lang.String beanIdentifier) {
302                    _lockLocalService.setBeanIdentifier(beanIdentifier);
303            }
304    
305            @Override
306            public void clear()
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _lockLocalService.clear();
309            }
310    
311            @Override
312            public com.liferay.portal.model.Lock getLock(java.lang.String className,
313                    long key)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _lockLocalService.getLock(className, key);
317            }
318    
319            @Override
320            public com.liferay.portal.model.Lock getLock(java.lang.String className,
321                    java.lang.String key)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _lockLocalService.getLock(className, key);
325            }
326    
327            @Override
328            public boolean hasLock(long userId, java.lang.String className, long key)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _lockLocalService.hasLock(userId, className, key);
331            }
332    
333            @Override
334            public boolean hasLock(long userId, java.lang.String className,
335                    java.lang.String key)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _lockLocalService.hasLock(userId, className, key);
338            }
339    
340            @Override
341            public boolean isLocked(java.lang.String className, long key)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _lockLocalService.isLocked(className, key);
344            }
345    
346            @Override
347            public boolean isLocked(java.lang.String className, java.lang.String key)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _lockLocalService.isLocked(className, key);
350            }
351    
352            @Override
353            public com.liferay.portal.model.Lock lock(long userId,
354                    java.lang.String className, long key, java.lang.String owner,
355                    boolean inheritable, long expirationTime)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    return _lockLocalService.lock(userId, className, key, owner,
359                            inheritable, expirationTime);
360            }
361    
362            @Override
363            public com.liferay.portal.model.Lock lock(long userId,
364                    java.lang.String className, java.lang.String key,
365                    java.lang.String owner, boolean inheritable, long expirationTime)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    return _lockLocalService.lock(userId, className, key, owner,
369                            inheritable, expirationTime);
370            }
371    
372            @Override
373            public com.liferay.portal.model.Lock lock(java.lang.String className,
374                    java.lang.String key, java.lang.String owner)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _lockLocalService.lock(className, key, owner);
377            }
378    
379            /**
380            * @deprecated As of 6.2.0, replaced by {@link #lock(String, String,
381            String)}
382            */
383            @Override
384            public com.liferay.portal.model.Lock lock(java.lang.String className,
385                    java.lang.String key, java.lang.String owner, boolean retrieveFromCache)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return _lockLocalService.lock(className, key, owner, retrieveFromCache);
388            }
389    
390            @Override
391            public com.liferay.portal.model.Lock lock(java.lang.String className,
392                    java.lang.String key, java.lang.String expectedOwner,
393                    java.lang.String updatedOwner)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _lockLocalService.lock(className, key, expectedOwner,
396                            updatedOwner);
397            }
398    
399            /**
400            * @deprecated As of 6.2.0, replaced by {@link #lock(String, String, String,
401            String)}
402            */
403            @Override
404            public com.liferay.portal.model.Lock lock(java.lang.String className,
405                    java.lang.String key, java.lang.String expectedOwner,
406                    java.lang.String updatedOwner, boolean retrieveFromCache)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _lockLocalService.lock(className, key, expectedOwner,
409                            updatedOwner, retrieveFromCache);
410            }
411    
412            @Override
413            public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
414                    long companyId, long expirationTime)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    return _lockLocalService.refresh(uuid, companyId, expirationTime);
418            }
419    
420            @Override
421            public void unlock(java.lang.String className, long key)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    _lockLocalService.unlock(className, key);
424            }
425    
426            @Override
427            public void unlock(java.lang.String className, java.lang.String key)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    _lockLocalService.unlock(className, key);
430            }
431    
432            @Override
433            public void unlock(java.lang.String className, java.lang.String key,
434                    java.lang.String owner)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    _lockLocalService.unlock(className, key, owner);
437            }
438    
439            /**
440            * @deprecated As of 6.2.0, replaced by {@link #unlock(String, String,
441            String)}
442            */
443            @Override
444            public void unlock(java.lang.String className, java.lang.String key,
445                    java.lang.String owner, boolean retrieveFromCache)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    _lockLocalService.unlock(className, key, owner, retrieveFromCache);
448            }
449    
450            /**
451             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
452             */
453            public LockLocalService getWrappedLockLocalService() {
454                    return _lockLocalService;
455            }
456    
457            /**
458             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
459             */
460            public void setWrappedLockLocalService(LockLocalService lockLocalService) {
461                    _lockLocalService = lockLocalService;
462            }
463    
464            @Override
465            public LockLocalService getWrappedService() {
466                    return _lockLocalService;
467            }
468    
469            @Override
470            public void setWrappedService(LockLocalService lockLocalService) {
471                    _lockLocalService = lockLocalService;
472            }
473    
474            private LockLocalService _lockLocalService;
475    }