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