001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link Lock}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Lock
024     * @generated
025     */
026    public class LockWrapper implements Lock {
027            public LockWrapper(Lock lock) {
028                    _lock = lock;
029            }
030    
031            /**
032            * Gets the primary key of this lock.
033            *
034            * @return the primary key of this lock
035            */
036            public long getPrimaryKey() {
037                    return _lock.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this lock
042            *
043            * @param pk the primary key of this lock
044            */
045            public void setPrimaryKey(long pk) {
046                    _lock.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the uuid of this lock.
051            *
052            * @return the uuid of this lock
053            */
054            public java.lang.String getUuid() {
055                    return _lock.getUuid();
056            }
057    
058            /**
059            * Sets the uuid of this lock.
060            *
061            * @param uuid the uuid of this lock
062            */
063            public void setUuid(java.lang.String uuid) {
064                    _lock.setUuid(uuid);
065            }
066    
067            /**
068            * Gets the lock id of this lock.
069            *
070            * @return the lock id of this lock
071            */
072            public long getLockId() {
073                    return _lock.getLockId();
074            }
075    
076            /**
077            * Sets the lock id of this lock.
078            *
079            * @param lockId the lock id of this lock
080            */
081            public void setLockId(long lockId) {
082                    _lock.setLockId(lockId);
083            }
084    
085            /**
086            * Gets the company id of this lock.
087            *
088            * @return the company id of this lock
089            */
090            public long getCompanyId() {
091                    return _lock.getCompanyId();
092            }
093    
094            /**
095            * Sets the company id of this lock.
096            *
097            * @param companyId the company id of this lock
098            */
099            public void setCompanyId(long companyId) {
100                    _lock.setCompanyId(companyId);
101            }
102    
103            /**
104            * Gets the user id of this lock.
105            *
106            * @return the user id of this lock
107            */
108            public long getUserId() {
109                    return _lock.getUserId();
110            }
111    
112            /**
113            * Sets the user id of this lock.
114            *
115            * @param userId the user id of this lock
116            */
117            public void setUserId(long userId) {
118                    _lock.setUserId(userId);
119            }
120    
121            /**
122            * Gets the user uuid of this lock.
123            *
124            * @return the user uuid of this lock
125            * @throws SystemException if a system exception occurred
126            */
127            public java.lang.String getUserUuid()
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return _lock.getUserUuid();
130            }
131    
132            /**
133            * Sets the user uuid of this lock.
134            *
135            * @param userUuid the user uuid of this lock
136            */
137            public void setUserUuid(java.lang.String userUuid) {
138                    _lock.setUserUuid(userUuid);
139            }
140    
141            /**
142            * Gets the user name of this lock.
143            *
144            * @return the user name of this lock
145            */
146            public java.lang.String getUserName() {
147                    return _lock.getUserName();
148            }
149    
150            /**
151            * Sets the user name of this lock.
152            *
153            * @param userName the user name of this lock
154            */
155            public void setUserName(java.lang.String userName) {
156                    _lock.setUserName(userName);
157            }
158    
159            /**
160            * Gets the create date of this lock.
161            *
162            * @return the create date of this lock
163            */
164            public java.util.Date getCreateDate() {
165                    return _lock.getCreateDate();
166            }
167    
168            /**
169            * Sets the create date of this lock.
170            *
171            * @param createDate the create date of this lock
172            */
173            public void setCreateDate(java.util.Date createDate) {
174                    _lock.setCreateDate(createDate);
175            }
176    
177            /**
178            * Gets the class name of this lock.
179            *
180            * @return the class name of this lock
181            */
182            public java.lang.String getClassName() {
183                    return _lock.getClassName();
184            }
185    
186            /**
187            * Sets the class name of this lock.
188            *
189            * @param className the class name of this lock
190            */
191            public void setClassName(java.lang.String className) {
192                    _lock.setClassName(className);
193            }
194    
195            /**
196            * Gets the key of this lock.
197            *
198            * @return the key of this lock
199            */
200            public java.lang.String getKey() {
201                    return _lock.getKey();
202            }
203    
204            /**
205            * Sets the key of this lock.
206            *
207            * @param key the key of this lock
208            */
209            public void setKey(java.lang.String key) {
210                    _lock.setKey(key);
211            }
212    
213            /**
214            * Gets the owner of this lock.
215            *
216            * @return the owner of this lock
217            */
218            public java.lang.String getOwner() {
219                    return _lock.getOwner();
220            }
221    
222            /**
223            * Sets the owner of this lock.
224            *
225            * @param owner the owner of this lock
226            */
227            public void setOwner(java.lang.String owner) {
228                    _lock.setOwner(owner);
229            }
230    
231            /**
232            * Gets the inheritable of this lock.
233            *
234            * @return the inheritable of this lock
235            */
236            public boolean getInheritable() {
237                    return _lock.getInheritable();
238            }
239    
240            /**
241            * Determines whether this lock is inheritable.
242            *
243            * @return whether this lock is inheritable
244            */
245            public boolean isInheritable() {
246                    return _lock.isInheritable();
247            }
248    
249            /**
250            * Sets whether this {$entity.humanName} is inheritable.
251            *
252            * @param inheritable the inheritable of this lock
253            */
254            public void setInheritable(boolean inheritable) {
255                    _lock.setInheritable(inheritable);
256            }
257    
258            /**
259            * Gets the expiration date of this lock.
260            *
261            * @return the expiration date of this lock
262            */
263            public java.util.Date getExpirationDate() {
264                    return _lock.getExpirationDate();
265            }
266    
267            /**
268            * Sets the expiration date of this lock.
269            *
270            * @param expirationDate the expiration date of this lock
271            */
272            public void setExpirationDate(java.util.Date expirationDate) {
273                    _lock.setExpirationDate(expirationDate);
274            }
275    
276            public boolean isNew() {
277                    return _lock.isNew();
278            }
279    
280            public void setNew(boolean n) {
281                    _lock.setNew(n);
282            }
283    
284            public boolean isCachedModel() {
285                    return _lock.isCachedModel();
286            }
287    
288            public void setCachedModel(boolean cachedModel) {
289                    _lock.setCachedModel(cachedModel);
290            }
291    
292            public boolean isEscapedModel() {
293                    return _lock.isEscapedModel();
294            }
295    
296            public void setEscapedModel(boolean escapedModel) {
297                    _lock.setEscapedModel(escapedModel);
298            }
299    
300            public java.io.Serializable getPrimaryKeyObj() {
301                    return _lock.getPrimaryKeyObj();
302            }
303    
304            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
305                    return _lock.getExpandoBridge();
306            }
307    
308            public void setExpandoBridgeAttributes(
309                    com.liferay.portal.service.ServiceContext serviceContext) {
310                    _lock.setExpandoBridgeAttributes(serviceContext);
311            }
312    
313            public java.lang.Object clone() {
314                    return _lock.clone();
315            }
316    
317            public int compareTo(com.liferay.portal.model.Lock lock) {
318                    return _lock.compareTo(lock);
319            }
320    
321            public int hashCode() {
322                    return _lock.hashCode();
323            }
324    
325            public com.liferay.portal.model.Lock toEscapedModel() {
326                    return _lock.toEscapedModel();
327            }
328    
329            public java.lang.String toString() {
330                    return _lock.toString();
331            }
332    
333            public java.lang.String toXmlString() {
334                    return _lock.toXmlString();
335            }
336    
337            public long getExpirationTime() {
338                    return _lock.getExpirationTime();
339            }
340    
341            public boolean isExpired() {
342                    return _lock.isExpired();
343            }
344    
345            public boolean isNeverExpires() {
346                    return _lock.isNeverExpires();
347            }
348    
349            public Lock getWrappedLock() {
350                    return _lock;
351            }
352    
353            private Lock _lock;
354    }