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