1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="LockLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link LockLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       LockLocalService
32   * @generated
33   */
34  public class LockLocalServiceWrapper implements LockLocalService {
35      public LockLocalServiceWrapper(LockLocalService lockLocalService) {
36          _lockLocalService = lockLocalService;
37      }
38  
39      public com.liferay.portal.model.Lock addLock(
40          com.liferay.portal.model.Lock lock)
41          throws com.liferay.portal.kernel.exception.SystemException {
42          return _lockLocalService.addLock(lock);
43      }
44  
45      public com.liferay.portal.model.Lock createLock(long lockId) {
46          return _lockLocalService.createLock(lockId);
47      }
48  
49      public void deleteLock(long lockId)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          _lockLocalService.deleteLock(lockId);
53      }
54  
55      public void deleteLock(com.liferay.portal.model.Lock lock)
56          throws com.liferay.portal.kernel.exception.SystemException {
57          _lockLocalService.deleteLock(lock);
58      }
59  
60      @SuppressWarnings("unchecked")
61      public java.util.List dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.kernel.exception.SystemException {
64          return _lockLocalService.dynamicQuery(dynamicQuery);
65      }
66  
67      @SuppressWarnings("unchecked")
68      public java.util.List dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.kernel.exception.SystemException {
71          return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
72      }
73  
74      @SuppressWarnings("unchecked")
75      public java.util.List dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
81              orderByComparator);
82      }
83  
84      public long dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return _lockLocalService.dynamicQueryCount(dynamicQuery);
88      }
89  
90      public com.liferay.portal.model.Lock getLock(long lockId)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException {
93          return _lockLocalService.getLock(lockId);
94      }
95  
96      public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
97          int end) throws com.liferay.portal.kernel.exception.SystemException {
98          return _lockLocalService.getLocks(start, end);
99      }
100 
101     public int getLocksCount()
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return _lockLocalService.getLocksCount();
104     }
105 
106     public com.liferay.portal.model.Lock updateLock(
107         com.liferay.portal.model.Lock lock)
108         throws com.liferay.portal.kernel.exception.SystemException {
109         return _lockLocalService.updateLock(lock);
110     }
111 
112     public com.liferay.portal.model.Lock updateLock(
113         com.liferay.portal.model.Lock lock, boolean merge)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return _lockLocalService.updateLock(lock, merge);
116     }
117 
118     public void clear()
119         throws com.liferay.portal.kernel.exception.SystemException {
120         _lockLocalService.clear();
121     }
122 
123     public com.liferay.portal.model.Lock getLock(java.lang.String className,
124         long key)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException {
127         return _lockLocalService.getLock(className, key);
128     }
129 
130     public com.liferay.portal.model.Lock getLock(java.lang.String className,
131         java.lang.String key)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         return _lockLocalService.getLock(className, key);
135     }
136 
137     public boolean hasLock(long userId, java.lang.String className, long key)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException {
140         return _lockLocalService.hasLock(userId, className, key);
141     }
142 
143     public boolean hasLock(long userId, java.lang.String className,
144         java.lang.String key)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return _lockLocalService.hasLock(userId, className, key);
148     }
149 
150     public boolean isLocked(java.lang.String className, long key)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException {
153         return _lockLocalService.isLocked(className, key);
154     }
155 
156     public boolean isLocked(java.lang.String className, java.lang.String key)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         return _lockLocalService.isLocked(className, key);
160     }
161 
162     public com.liferay.portal.model.Lock lock(long userId,
163         java.lang.String className, long key, java.lang.String owner,
164         boolean inheritable, long expirationTime)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return _lockLocalService.lock(userId, className, key, owner,
168             inheritable, expirationTime);
169     }
170 
171     public com.liferay.portal.model.Lock lock(long userId,
172         java.lang.String className, java.lang.String key,
173         java.lang.String owner, boolean inheritable, long expirationTime)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         return _lockLocalService.lock(userId, className, key, owner,
177             inheritable, expirationTime);
178     }
179 
180     public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
181         long expirationTime)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         return _lockLocalService.refresh(uuid, expirationTime);
185     }
186 
187     public void unlock(java.lang.String className, long key)
188         throws com.liferay.portal.kernel.exception.SystemException {
189         _lockLocalService.unlock(className, key);
190     }
191 
192     public void unlock(java.lang.String className, java.lang.String key)
193         throws com.liferay.portal.kernel.exception.SystemException {
194         _lockLocalService.unlock(className, key);
195     }
196 
197     public LockLocalService getWrappedLockLocalService() {
198         return _lockLocalService;
199     }
200 
201     private LockLocalService _lockLocalService;
202 }