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     * <p>
019     * This class is a wrapper for {@link LockLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LockLocalService
024     * @generated
025     */
026    public class LockLocalServiceWrapper implements LockLocalService,
027            ServiceWrapper<LockLocalService> {
028            public LockLocalServiceWrapper(LockLocalService lockLocalService) {
029                    _lockLocalService = lockLocalService;
030            }
031    
032            /**
033            * Adds the lock to the database. Also notifies the appropriate model listeners.
034            *
035            * @param lock the lock
036            * @return the lock that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Lock addLock(
040                    com.liferay.portal.model.Lock lock)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _lockLocalService.addLock(lock);
043            }
044    
045            /**
046            * Creates a new lock with the primary key. Does not add the lock to the database.
047            *
048            * @param lockId the primary key for the new lock
049            * @return the new lock
050            */
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            public com.liferay.portal.model.Lock deleteLock(long lockId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _lockLocalService.deleteLock(lockId);
067            }
068    
069            /**
070            * Deletes the lock from the database. Also notifies the appropriate model listeners.
071            *
072            * @param lock the lock
073            * @return the lock that was removed
074            * @throws SystemException if a system exception occurred
075            */
076            public com.liferay.portal.model.Lock deleteLock(
077                    com.liferay.portal.model.Lock lock)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _lockLocalService.deleteLock(lock);
080            }
081    
082            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
083                    return _lockLocalService.dynamicQuery();
084            }
085    
086            /**
087            * Performs a dynamic query on the database and returns the matching rows.
088            *
089            * @param dynamicQuery the dynamic query
090            * @return the matching rows
091            * @throws SystemException if a system exception occurred
092            */
093            @SuppressWarnings("rawtypes")
094            public java.util.List dynamicQuery(
095                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _lockLocalService.dynamicQuery(dynamicQuery);
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns a range of the matching rows.
102            *
103            * <p>
104            * 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.
105            * </p>
106            *
107            * @param dynamicQuery the dynamic query
108            * @param start the lower bound of the range of model instances
109            * @param end the upper bound of the range of model instances (not inclusive)
110            * @return the range of matching rows
111            * @throws SystemException if a system exception occurred
112            */
113            @SuppressWarnings("rawtypes")
114            public java.util.List dynamicQuery(
115                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116                    int end) throws com.liferay.portal.kernel.exception.SystemException {
117                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
141                            orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _lockLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portal.model.Lock fetchLock(long lockId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _lockLocalService.fetchLock(lockId);
160            }
161    
162            /**
163            * Returns the lock with the primary key.
164            *
165            * @param lockId the primary key of the lock
166            * @return the lock
167            * @throws PortalException if a lock with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portal.model.Lock getLock(long lockId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _lockLocalService.getLock(lockId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _lockLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the locks.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of locks
191            * @param end the upper bound of the range of locks (not inclusive)
192            * @return the range of locks
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
196                    int end) throws com.liferay.portal.kernel.exception.SystemException {
197                    return _lockLocalService.getLocks(start, end);
198            }
199    
200            /**
201            * Returns the number of locks.
202            *
203            * @return the number of locks
204            * @throws SystemException if a system exception occurred
205            */
206            public int getLocksCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _lockLocalService.getLocksCount();
209            }
210    
211            /**
212            * Updates the lock in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param lock the lock
215            * @return the lock that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.Lock updateLock(
219                    com.liferay.portal.model.Lock lock)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _lockLocalService.updateLock(lock);
222            }
223    
224            /**
225            * Updates the lock in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param lock the lock
228            * @param merge whether to merge the lock 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.
229            * @return the lock that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.Lock updateLock(
233                    com.liferay.portal.model.Lock lock, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _lockLocalService.updateLock(lock, merge);
236            }
237    
238            /**
239            * Returns the Spring bean ID for this bean.
240            *
241            * @return the Spring bean ID for this bean
242            */
243            public java.lang.String getBeanIdentifier() {
244                    return _lockLocalService.getBeanIdentifier();
245            }
246    
247            /**
248            * Sets the Spring bean ID for this bean.
249            *
250            * @param beanIdentifier the Spring bean ID for this bean
251            */
252            public void setBeanIdentifier(java.lang.String beanIdentifier) {
253                    _lockLocalService.setBeanIdentifier(beanIdentifier);
254            }
255    
256            public void clear()
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    _lockLocalService.clear();
259            }
260    
261            public com.liferay.portal.model.Lock getLock(java.lang.String className,
262                    long key)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _lockLocalService.getLock(className, key);
266            }
267    
268            public com.liferay.portal.model.Lock getLock(java.lang.String className,
269                    java.lang.String key)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _lockLocalService.getLock(className, key);
273            }
274    
275            public com.liferay.portal.model.Lock getLockByUuid(java.lang.String uuid)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _lockLocalService.getLockByUuid(uuid);
279            }
280    
281            public boolean hasLock(long userId, java.lang.String className, long key)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _lockLocalService.hasLock(userId, className, key);
284            }
285    
286            public boolean hasLock(long userId, java.lang.String className,
287                    java.lang.String key)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return _lockLocalService.hasLock(userId, className, key);
290            }
291    
292            public boolean isLocked(java.lang.String className, long key)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _lockLocalService.isLocked(className, key);
295            }
296    
297            public boolean isLocked(java.lang.String className, java.lang.String key)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _lockLocalService.isLocked(className, key);
300            }
301    
302            public com.liferay.portal.model.Lock lock(long userId,
303                    java.lang.String className, long key, java.lang.String owner,
304                    boolean inheritable, long expirationTime)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _lockLocalService.lock(userId, className, key, owner,
308                            inheritable, expirationTime);
309            }
310    
311            public com.liferay.portal.model.Lock lock(long userId,
312                    java.lang.String className, java.lang.String key,
313                    java.lang.String owner, boolean inheritable, long expirationTime)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _lockLocalService.lock(userId, className, key, owner,
317                            inheritable, expirationTime);
318            }
319    
320            public com.liferay.portal.model.Lock lock(java.lang.String className,
321                    java.lang.String key, java.lang.String owner, boolean retrieveFromCache)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _lockLocalService.lock(className, key, owner, retrieveFromCache);
324            }
325    
326            public com.liferay.portal.model.Lock lock(java.lang.String className,
327                    java.lang.String key, java.lang.String expectedOwner,
328                    java.lang.String updatedOwner, boolean retrieveFromCache)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _lockLocalService.lock(className, key, expectedOwner,
331                            updatedOwner, retrieveFromCache);
332            }
333    
334            public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
335                    long expirationTime)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _lockLocalService.refresh(uuid, expirationTime);
339            }
340    
341            public void unlock(java.lang.String className, long key)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    _lockLocalService.unlock(className, key);
344            }
345    
346            public void unlock(java.lang.String className, java.lang.String key)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    _lockLocalService.unlock(className, key);
349            }
350    
351            public void unlock(java.lang.String className, java.lang.String key,
352                    java.lang.String owner, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    _lockLocalService.unlock(className, key, owner, retrieveFromCache);
355            }
356    
357            /**
358             * @deprecated Renamed to {@link #getWrappedService}
359             */
360            public LockLocalService getWrappedLockLocalService() {
361                    return _lockLocalService;
362            }
363    
364            /**
365             * @deprecated Renamed to {@link #setWrappedService}
366             */
367            public void setWrappedLockLocalService(LockLocalService lockLocalService) {
368                    _lockLocalService = lockLocalService;
369            }
370    
371            public LockLocalService getWrappedService() {
372                    return _lockLocalService;
373            }
374    
375            public void setWrappedService(LockLocalService lockLocalService) {
376                    _lockLocalService = lockLocalService;
377            }
378    
379            private LockLocalService _lockLocalService;
380    }